"Create basic pages" tutorial, got stuck with "news model"
Hi,
I have discovered FUEL Cms few days ago and I really got impressed with it. I have to say thank you for the work you did. I really hope I will be able to get Fuel CMS known better and will be able to create some projects with it
I have started with simple tutorial, which is located here:
http://www.getfuelcms.com/user_guide/general/creating-pagesHowever, I am encoutering problem in the very end of the tutorial with news model. I am able to create and edit news in admin backend.
View with news is also loaded and shown normally after accessing :
http://localhost/fuelcms/news/However, after accessing the detail of news:
http://localhost/fuelcms/news/my-firstI got 404 error...
Fuel is trying to find page in views/news/my-first.php and it obviously does not find it ...
Is there any chance that error could be in the last part of tutorial, where I should create a file news.php in _variables folder with following content?
<?php
$var['news'] = array('view' => 'news');
?>
Or whereelse could be the problem? Thanks for any hint
Comments
$pages['news/:any'] = array('view' => 'news');
I am going to follow the rest of tutorials and training stuff, so this was probably not my last "I got lost" post in this forum ) I hope I will be soon able to post one in "What Have You Built With FUEL CMS?"
$pages['news/:any'] = array('view' => 'news');
to the Creating Pages tutorial, because without that the example not works. Or only just me?
After that i changed the news variables file from
$vars['news'] = array('view' => 'news');
to:
$vars['view'] = 'news';
and it suddenly worked. Is the tutorial wrong or am i doing something wrong?