Welcome Guest, Not a member yet? Register   Sign In
$this->input->get() - what to link to??
#2

[eluser]cahva[/eluser]
If your server is running php as a module in apache, set these in config.php
Code:
$config['uri_protocol']    = "PATH_INFO";

$config['enable_query_strings'] = TRUE;

..thats it! Now you can use for example $this->input->get('some_data') for example:

url: yoursite.com/foo?some_data=value1&some_other_data=valueA
Code:
Class Foo extends Controller {
    
    function __construct()
    {
        parent::__construct();
    }

    function index()
    {
        echo $this->input->get('some_data').' '.$this->input->get('some_other_data');
    }

}


Messages In This Thread
$this->input->get() - what to link to?? - by El Forum - 10-19-2010, 07:19 PM
$this->input->get() - what to link to?? - by El Forum - 10-19-2010, 07:36 PM
$this->input->get() - what to link to?? - by El Forum - 10-19-2010, 08:12 PM
$this->input->get() - what to link to?? - by El Forum - 10-20-2010, 01:10 AM
$this->input->get() - what to link to?? - by El Forum - 10-20-2010, 03:29 AM
$this->input->get() - what to link to?? - by El Forum - 10-20-2010, 03:59 AM
$this->input->get() - what to link to?? - by El Forum - 10-20-2010, 10:27 AM
$this->input->get() - what to link to?? - by El Forum - 10-20-2010, 10:46 AM
$this->input->get() - what to link to?? - by El Forum - 10-20-2010, 11:00 AM
$this->input->get() - what to link to?? - by El Forum - 10-20-2010, 12:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB