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(); }
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(); }
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(); }
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")); }
public function get_head_sections() { return array_merge(parent::get_head_sections()); }