Exemplo n.º 1
0
 /**
  * 运行应用程序
  * @param string $app 应用程序名称
  * @param string $do 动作名称
  */
 public static function run($app = NULL, $do = NULL, $args = NULL, $prefix = "do_")
 {
     iPHP::$iTPL->_iTPL_VARS = array('VERSION' => iCMS_VER, 'API' => iCMS_API, 'UI' => iCMS_UI, 'UI_URL' => iCMS_UI_URL, 'SAPI' => iCMS_API_URL, 'APPID' => array('ARTICLE' => iCMS_APP_ARTICLE, 'CATEGORY' => iCMS_APP_CATEGORY, 'TAG' => iCMS_APP_TAG, 'PUSH' => iCMS_APP_PUSH, 'COMMENT' => iCMS_APP_COMMENT, 'PROP' => iCMS_APP_PROP, 'MESSAGE' => iCMS_APP_MESSAGE, 'FAVORITE' => iCMS_APP_FAVORITE, 'USER' => iCMS_APP_USER));
     return iPHP::run($app, $do, $args, $prefix);
 }