예제 #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
 protected function htmlField(Setting $setting, $name, $value)
 {
     return Nano::helper()->ui()->textareaField($name, $setting->title, $value, self::CSS, $setting->description);
 }
예제 #4
0
 public function captureEnd()
 {
     Nano::helper()->placeholder()->stop(self::PLACEHOLDER);
 }