Esempio n. 1
0
 /**
  * 初始化函数
  * @param string $pageTitle page标题(一系列页面标题)
  * @param string $controlFile 控制文件
  * @param array $config
  * @return CmsView
  */
 public static function init($pageTitle = null, $controlFile = null, $config = null)
 {
     if (!isset(self::$selfObject)) {
         self::$selfObject = new CmsView();
     }
     $cmsView = self::$selfObject;
     if ($cmsView instanceof CmsView) {
         if (!empty($pageTitle)) {
             $cmsView->setPageTitle($pageTitle);
         }
         if (!empty($controlFile)) {
             $cmsView->setControlFile($controlFile);
         }
         if (!empty($config)) {
             $cmsView->loadConfig($config);
         }
     }
     return $cmsView;
 }
Esempio n. 2
0
 function richTask()
 {
     $this->cms->setActionTitle("查看插件");
     $this->cms->normalScene(array(), "tpl/admin/form.php", CmsView::TYPE_FORM | CmsView::TYPE_JQUERY | CmsView::TYPE_EDITOR);
 }