template['module'] = "directories"; //$this->load->helper('dashboard'); $this->load->model($this->template['module'], 'directories_model', 'directory', true); $this->template['breadcrumb'][] = array( 'title' => 'Отрасли', 'uri' => 'directory' ); $this->template['title'] = 'Отрасли'; $this->template['meta_keywords'] = 'Отрасли'; $this->template['meta_description'] = 'Отрасли'; } function index(){ $this->load->library('branch'); if ($_=$this->branch->get_count_company_by_branch()){ $this->template['branches']=$_; } $this->layout->load($this->template, 'list_of_branches'); } function get_company_by_branch(){ $branch_id=$this->uri->segment(3); $this->load->library('branch'); $_=$this->branch->get_branch_by_id($branch_id); if ($_=$this->branch->get_branch_by_id($branch_id)){ $view='brach_details'; $this->template['branch'] = $_; $this->template['breadcrumb'][] = array( 'title' => $_, 'uri' => 'directory/brach/'.$branch_id ); $this->template['title'] = 'Отрасли'; $this->load->model('company', 'company_model', 'company', true); $__=$this->company->get_company_by_branch_id($branch_id); $this->template['companies'] = $__; }else{ $view='404'; } $this->layout->load($this->template, $view); } } ?> 404 Page Not Found

404 Page Not Found

The page you requested was not found.