Static Pages |
(07-08-2015, 12:50 PM)Dracula Wrote:(07-08-2015, 09:55 AM)christaliise Wrote: I am studying the "Static Pages" in the CodeIgniter Tutorial. I'm stuck what appears to be a simple problem. Thanks Dracula, I had added the code to Pages.php but not in the same form as you indicated, however I've now changed it. Is there some reason for the code that you submitted being different by including - public function__construct() - than the code in the Tutorial and a reason why the coding you submitted not being in the box below this line "Create a file at application/controllers/Pages.php with the following code."? I had also added the code to routes.php but I'm confused with "Remove all other code that sets any element in the $route array." I don't know what code will set an element in the $route array, but I guessed that this line - $route['default_controller'] = 'welcome'; - should be deleted, and the 2 added lines inserted to above $route['404_override'] = '';. In any event I still get the XAMPP "Welcome Page" coming up in my browser, despite my numerous and varying attempts. The URL keeps reverting to http://localhost/xampp/ |
Messages In This Thread |
Static Pages - by christaliise - 07-08-2015, 09:55 AM
RE: Static Pages - by Dracula - 07-08-2015, 12:50 PM
RE: Static Pages - by christaliise - 07-09-2015, 02:27 AM
RE: Static Pages - by Dracula - 07-09-2015, 02:45 AM
RE: Static Pages - by christaliise - 07-09-2015, 09:35 AM
RE: Static Pages - by Dracula - 07-09-2015, 09:46 AM
RE: Static Pages - by christaliise - 07-09-2015, 06:31 PM
RE: Static Pages - by christaliise - 07-17-2015, 08:46 AM
|