Welcome Guest, Not a member yet? Register   Sign In
Router
#1

Hello everybody.
I want to replace CI 2.1 to CI 3.1
But i have a problem. I can't transfer to the function an argument from router.

Router:
PHP Code:
$route['default_controller'] = 'pages/show/ukr'

"ukr" - i can't transfer to the function in the class.!?
Class:
PHP Code:
class Pages extends CI_Controller{
    
    
public function __construct(){
      parent::__construct();
      $this->load->model('pages_model');
    }
    
    
public function show($page_id){   
      $data
=array();
      $data['main_info']=$this->pages_model->get($page_id);
        $name='pages/mainpage';
        $this->display_lib->user_page($data,$name);                          
    
}

What is it.!? Huh
This is as it should be?
Reply


Messages In This Thread
Router - by Ljubin - 09-21-2016, 10:09 AM
RE: Router - by cartalot - 09-21-2016, 11:15 AM
RE: Router - by Ljubin - 09-21-2016, 01:31 PM
RE: Router - by InsiteFX - 09-21-2016, 11:40 AM
RE: Router - by Ljubin - 09-21-2016, 01:44 PM
RE: Router - by cartalot - 09-21-2016, 02:35 PM
RE: Router - by wolfgang1983 - 09-21-2016, 05:40 PM
RE: Router - by Ljubin - 09-23-2016, 01:35 PM
RE: Router - by wolfgang1983 - 09-23-2016, 04:26 PM
RE: Router - by Ljubin - 09-24-2016, 02:27 AM
RE: Router - by mwhitney - 09-26-2016, 01:36 PM
RE: Router - by InsiteFX - 09-23-2016, 02:37 PM
RE: Router - by InsiteFX - 09-27-2016, 04:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB