Another question about controller pages
Ok so i've basically modified the contact controller that comes with the fuel package. If I just go to the url /contact nothing shows up (as expected). Now if I create a view file called contact.php then go to the url /contact, my main template appears with the contents of contact.php in there (again as expected).
Now if I go to the admin, add a contact page and give it the location "contact", click save, it asks if I want to import the contents of views/contact.php so I click yes. Then I change the text in the admin and click save, voila, no changes to the url /contact. I try clearing the cache and it doesn't help.
Any ideas on where i'm going wrong on this one?
Comments
<h1>Testing contact page</h1>
and then in the admin panel I added another line so it now looks like this.
<h1>Testing contact page</h1> <h2>YUP TESTING</h2>
When I make edits in the admin panel, they don't appear on the website and i'm not sure if I need some fuel variable or function in my view file or not.
If Admin(David) can help here - If I am right and you import a page, for it to be editable from admin, you would need to make sure that your view page has variables that will be picked up by admin? ie, set your layout up in my_fuel_layouts?
$page_init = array('location' => 'contact', 'render_mode' => 'cms');
Let me know if that does the trick.