コード例 #1
0
ファイル: C.php プロジェクト: studio-v/nano
 public final function __construct(Nano_Dispatcher $dispatcher)
 {
     $this->dispatcher = $dispatcher;
     $this->helper = Nano::helper();
     $this->plugins = new SplObjectStorage();
     $this->plugins->addAll(Nano::config('plugins'));
 }
コード例 #2
0
ファイル: Render.php プロジェクト: studio-v/nano
 public static function file($fileName, array $variables = array(), $throw = true)
 {
     if (!file_exists($fileName)) {
         if ($throw) {
             throw new Exception('View ' . $fileName . ' not exists');
         }
         return null;
     }
     extract($variables);
     $helper = Nano::helper();
     ob_start();
     include $fileName;
     $result = ob_get_contents();
     ob_end_clean();
     return $result;
 }
コード例 #3
0
ファイル: SettingHelper.php プロジェクト: studio-v/nano
 protected function htmlField(Setting $setting, $name, $value)
 {
     return Nano::helper()->ui()->textareaField($name, $setting->title, $value, self::CSS, $setting->description);
 }
コード例 #4
0
ファイル: ScriptsHelper.php プロジェクト: studio-v/nano
 public function captureEnd()
 {
     Nano::helper()->placeholder()->stop(self::PLACEHOLDER);
 }