User Guide (Static Page) Documentation Clarification Please |
Hello everyone,
While I have been using PHP for quite some time, I am totally new to CodeIgniter so please forgive my ignorance. I have downloaded and installed CodeIgniter and am running it on MAMP. I am working my way through the documentation and am following the instructions for a static page. I have come to this section: https://codeigniter.com/user_guide/tutor...controller It reads (3rd paragraph): Quote:In order to load those pages, you’ll have to check whether the requested page actually exists: It then provides some sample code: Code: public function view($page = 'home') My question is, WHERE does that code go? Does it go in the applications/controllers/Pages.php file? The instructions don't really tell you where that is supposed to go. Again, I know that this is probably really stupid question, but like I said, I am spanking new to CodeIgniter ... however, feel free to make fun of me |
Messages In This Thread |
User Guide (Static Page) Documentation Clarification Please - by kuler - 09-21-2017, 06:26 AM
RE: User Guide (Static Page) Documentation Clarification Please - by rtenny - 09-21-2017, 08:12 AM
RE: User Guide (Static Page) Documentation Clarification Please - by donpwinston - 09-21-2017, 08:15 AM
RE: User Guide (Static Page) Documentation Clarification Please - by kuler - 09-21-2017, 08:32 AM
RE: User Guide (Static Page) Documentation Clarification Please - by rtenny - 09-22-2017, 03:37 AM
RE: User Guide (Static Page) Documentation Clarification Please - by Raymien - 09-28-2017, 12:33 PM
|