示例#1
0
文件: view.php 项目: pnixx/boot
 /**
  * Получаем инстанс
  * @static
  * @return Boot_View
  */
 public static function getInstance()
 {
     if (!self::$_instance instanceof Boot_View) {
         self::$_instance = new Boot_View();
     }
     return self::$_instance;
 }
示例#2
0
文件: boot.php 项目: pnixx/boot
 /**
  * Инициализируем вьюху
  * @return string
  */
 private function init_view()
 {
     //Запускаем инстанс
     return Boot_View::getInstance()->run();
 }
示例#3
0
文件: layout.php 项目: pnixx/boot
 /**
  * Генерация CSS
  * @param $name
  * @return string
  */
 public function stylesheet_link_tag($name)
 {
     return Boot_View::getInstance()->stylesheet_link_tag($name);
 }
示例#4
0
文件: controller.php 项目: pnixx/boot
 public function _render($name)
 {
     return Boot_View::getInstance()->render($name);
 }