Welcome Guest, Not a member yet? Register   Sign In
code Ignitor controller
#2

Hi mohan. The functions in your controller are executed when you browse a URL that calls them. Suppose your CodeIgniter folder is called ci, and the URL to your application is http://localhost/ci. The function view in the controller Page will execute when you browse http://localhost/ci/page/view. If you browse http://localhost/ci/page/view/aboutus, the view function will receive 'aboutus' as its $page argument.

This is the general behavior -- http://localhost/ci/controller/function/.../argument2...

I hope I understood your question, so please clarify if I didn't.
Hey, don't work without a PHP debugger. Several free IDEs have this features built in. Two are NetBeans and CodeLobster. Without a debugger, it's like you're driving with a blindfold on -- you are going to crash!
Reply


Messages In This Thread
code Ignitor controller - by mohan7310 - 08-13-2015, 02:35 AM
RE: code Ignitor controller - by RobertSF - 08-14-2015, 11:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB