Getting a URL segment and calling a function inside a Controller |
[eluser]PhilTem[/eluser]
Maybe it will help you to look at CI Routing Controller _remap and to know the basic procedural logic of CI: Assume you have an URI, then the router will determine the controller. Then, CI checks there is a file named like your controller in ./application/controllers PLUS the class inside that file has the same name (this is possible after including the file). Furthermore, it will check if there is a _remap()-method in your controller. It is called if it exists. If there is no _remap()-function, CI will look for the "thing" you provided as the second URI-argument which is assumed to be a controller's method. If there is no method called like your second URI-argument, a 404 will be shown. That means: You don't have a '990' method in your 'call' controller => there's a 404. Solutions: Read the two links above and do either some routing or remapping. Cheers and good luck! |
Messages In This Thread |
Getting a URL segment and calling a function inside a Controller - by El Forum - 06-21-2012, 10:59 AM
Getting a URL segment and calling a function inside a Controller - by El Forum - 06-21-2012, 11:20 AM
Getting a URL segment and calling a function inside a Controller - by El Forum - 06-21-2012, 11:48 AM
|