News Section data not showing | database connection - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: News Section data not showing | database connection (/showthread.php?tid=60988) |
News Section data not showing | database connection - El Forum - 08-20-2014 [eluser]Unknown[/eluser] Hi , I'm new to the CI and currently following the user guide . followed the static page create section and now when i followed this : Code: https://ellislab.com/codeigniter/user-guide/tutorial/news_section.html it's appeared nothing in Quote:http://localhost/CodeIgniter_2.2.0/index.php/news These are the pages : news_model.php locate in \Application\model Code: <?php in controllers : news.php Code: <?php in config\routes.php Code: $route['default_controller'] = "welcome"; also i set the autoload.php to Code: $autoload['libraries'] = array('database'); using XAMPP - phpmyadmin and database created with given query . config\database.php Code: $active_group = 'default'; glad if anyone can help with this PS : followed Create News :https://ellislab.com/codeigniter/user-guide/tutorial/create_news_items.html and it's successfully done News Section data not showing | database connection - El Forum - 08-21-2014 [eluser]Unknown[/eluser] I've found the same problem too. News Section data not showing | database connection - El Forum - 08-21-2014 [eluser]InsiteFX[/eluser] It is because you are not following the instructions! Code: public function index() Read the User Guide again all the way and you will see. News Section data not showing | database connection - El Forum - 08-21-2014 [eluser]Unknown[/eluser] [quote author="InsiteFX" date="1408625778"]It is because you are not following the instructions! Code: public function index() Read the User Guide again all the way and you will see. [/quote] Thanks found it i |