Controller not working as expected |
[eluser]StefanAlexandru[/eluser]
Hi everyone, I am new to CI, and I am trying to build up a classified site , so I've just encountered a problem which I couldn't understand. So here is my code : Controller : Code: <?php Model: Code: class General extends CI_Model { So, when I am calling the controller like this : http://www.domain.net/subdomain/ads/10/ I am getting a 404 error, but if I make a new function, not putting all the code in the index function, everything is working fine. So my question is : Why I can't perform that actions in the index function of the controller ? It wouldn't be a real problem but it's for seo purposes to have Code: http://www.domain.net/subdomain/ad/10/ Code: http://www.domain.net/subdomain/ads/function/10/ Thanks in advance and sorry for my bad english. |
Messages In This Thread |
Controller not working as expected - by El Forum - 07-21-2011, 10:34 AM
Controller not working as expected - by El Forum - 07-21-2011, 10:38 AM
Controller not working as expected - by El Forum - 07-21-2011, 11:04 AM
Controller not working as expected - by El Forum - 07-21-2011, 11:57 AM
Controller not working as expected - by El Forum - 07-21-2011, 12:01 PM
|