Can I pass URL variables to the index function of a controller ? |
[eluser]suba[/eluser]
can pass variable to the index function. example: your url is www.example.com/test/45 you can get url value via two ways. 1 Code: $this->url->segment(n);// n means 1,2,3,4,etc., Code: class Test extends Controller in your view page Code: <html> |
Messages In This Thread |
Can I pass URL variables to the index function of a controller ? - by El Forum - 06-18-2010, 04:54 PM
Can I pass URL variables to the index function of a controller ? - by El Forum - 06-18-2010, 09:35 PM
Can I pass URL variables to the index function of a controller ? - by El Forum - 06-18-2010, 10:01 PM
Can I pass URL variables to the index function of a controller ? - by El Forum - 06-19-2010, 01:50 AM
Can I pass URL variables to the index function of a controller ? - by El Forum - 06-19-2010, 05:46 AM
|