Adding logic to the controller
I am going thru tutorial in Codeigniter and in the Tutorial − Static pages, I am unable to understand the last sentence ...In order to load those pages, you'll have to check whether the requested page actually exists in the part adding logic to the controller. A code is given under the sentence and I don't know what to do with it. Can someone explain please?
As far as i understand you need to check if a view exists before loading it via the controller
Thank u very much. I will check it.
Basically what they're saying is add code to your controller so that you can see it's working. For example, your welcome controller (the default) has code within the index() method and by loading that, you can see it output on your browser. That shows it's working.
Thanks so much. I have understood this.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread