Example #1
0
 /**
  * Includes the form of the Model in the Model's scope after adding css/js
  * @param  \Model       $o
  * @return \Sky\Page   $this
  */
 public function form(\Model $o)
 {
     $css = $o->getFormPath('css');
     if (\file_exists_incpath($css)) {
         $this->css[] = '/' . $css;
     }
     $js = $o->getFormPath('js');
     if (\file_exists_incpath($js)) {
         $this->js[] = '/' . $js;
     }
     $o->includeForm();
     return $this;
 }