예제 #1
0
 public function real_page()
 {
     $attributes = APF::get_instance()->get_request()->get_attributes();
     foreach ((array) $attributes as $key => $value) {
         $this->assign_data($key, $value);
     }
     parent::real_page();
 }
예제 #2
0
 public function execute()
 {
     $this->apf = APF::get_instance();
     $this->request = $this->apf->get_request();
     $this->response = $this->apf->get_response();
     /* set all attributes to page */
     $attributes = $this->request->get_attributes();
     foreach ($attributes as $key => $value) {
         $this->assign_data($key, $value);
     }
     parent::execute();
 }
예제 #3
0
 public function execute()
 {
     $this->apf = APF::get_instance();
     $this->request = $this->apf->get_request();
     $this->response = $this->apf->get_response();
     $attributes = $this->request->get_attributes();
     if (!empty($attributes)) {
         foreach ($attributes as $key => $value) {
             $this->assign_data($key, $value);
         }
     }
     parent::execute();
 }
예제 #4
0
 public static function use_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_styles(), array($path . 'common.js', "http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js", "http://cdn.bootcss.com/twitter-bootstrap/3.0.3/js/bootstrap.min.js"));
 }
예제 #5
0
파일: CMS.php 프로젝트: emilymwang8/cms
 public function get_head_sections()
 {
     return array_merge(parent::get_head_sections());
 }