Esempio n. 1
0
 /**
  * 启动layout
  * 
  * @param array $options
  */
 public static function startMvc(array $options)
 {
     if (self::$mvc_instance == null) {
         self::$mvc_instance = new self($options);
     }
     return self::$mvc_instance;
 }
Esempio n. 2
0
 public final function __construct(Star_Http_Request $request, Star_Http_Response $response, Star_View $view)
 {
     $this->setRequest($request)->setResponse($response)->setView($view);
     $star_layout = Star_Layout::getMvcInstance();
     if ($star_layout instanceof Star_Layout) {
         $this->initLayout($star_layout);
     }
     $this->init();
 }
Esempio n. 3
0
 /**
  *  初始化layout
  */
 protected function _initLayout()
 {
     Star_Layout::startMvc(array('base_path' => APPLICATION_PATH . '/layouts', 'script_path' => 'default'));
 }