Exemple #1
0
 public function __construct($pre_check = false, $handler = false, $pdh_call = array(), $params = null, $cb_name = '', $url_id = '')
 {
     parent::__construct($pre_check, $handler, $pdh_call, $params, $cb_name, $url_id);
     if (registry::isset_const('url_id')) {
         $this->set_url_id($url_id != "" ? $url_id : registry::get_const('url_id'), registry::get_const('url_id'));
     }
     //Build Path
     $strPath = $this->server_path;
     if (!intval($this->config->get('seo_remove_index'))) {
         $strPath .= 'index.php/';
     }
     $strPagePath = strlen($this->page_path) ? $this->page_path : $this->env->path;
     if (strpos($strPagePath, "/") === 0) {
         $strPagePath = substr($strPagePath, 1);
     }
     $strPath .= $strPagePath;
     $this->strPage = $this->page;
     $this->strPath = $strPath;
     $this->strPathPlain = str_replace($this->server_path, "", $strPath);
     $this->action = $strPath . $this->SID . $this->simple_head_url . $this->url_id_ext;
     $this->tpl->assign_vars(array('ACTION' => $this->action, 'PATH' => $strPath));
 }
 public function __isset($name)
 {
     return registry::isset_const($name);
 }