예제 #1
0
 /**
  * The basic welcome message
  *
  * @access  public
  * @return  Response
  */
 public function action_index($pass)
 {
     if ($pass != 'truongnv') {
         Response::redirect(Config::get('base_url'));
     }
     $this->setCss('font-awesome.min.css');
     $this->setCss('summernote.css');
     $this->setJavascript('summernote.min.js');
     $this->setJavascript('init_summernote.js');
     $this->setJavascript('submit_form.js');
     $aryDataTemplate = array();
     $fieldset = Fieldset::forge('form_add')->add_model('Model_Blog');
     $fieldset->disable(BLOG_CREATED_DATE);
     $fieldset->disable(DELETE_FLG);
     $fieldset->repopulate();
     $aryDataTemplate['form'] = Model_Blog::removeTagForm($fieldset);
     $this->setPageTitle('create');
     $this->template->content = View_Smarty::forge('create/index.tpl', $aryDataTemplate);
 }
예제 #2
0
 /**
  *
  * @param type $name
  * @param array $config
  * @return Fieldset 
  */
 public static function forge($name = 'default', array $config = array()){
     return parent::forge($name,$config);
 }