Can't call URL controller/function/ |
[eluser]gregor4711[/eluser]
Hi, I'm new in CI and I have a problem with the call of functions from my controller. As I understand I can call functions directly like 'www.my_side/my_controller/myfunction/value1/value2' in firefox direcly. But only the index function as default function from the controller works. In my setup I can't call the function test directly in firefox as an url, why? Yes, I set the default controller in route.php and base_url in config file. I have no .htaccess file Thanks for any advise Gregor ##################### Code: class Pangaea extends Controller {
[eluser]pistolPete[/eluser]
Do you get any error message? Try www.my_side/index.php/my_controller/myfunction/value1/value2 .
[eluser]gregor4711[/eluser]
Hi pistolPete, it works, thaks. I forgot the index.php in the url string. Cheerio Gregor |
Welcome Guest, Not a member yet? Register Sign In |