Help with planning a CI project - 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: Help with planning a CI project (/showthread.php?tid=27995) |
Help with planning a CI project - El Forum - 02-28-2010 [eluser]theprodigy[/eluser] Quote:echo auto_typography($post_data['title']);shouldn't that be Code: echo auto_typography($title); Help with planning a CI project - El Forum - 02-28-2010 [eluser]theprodigy[/eluser] oh wait, never mind. Change that to echo auto_typography($page_data['title']); echo auto_typography($page_data['body']); Help with planning a CI project - El Forum - 02-28-2010 [eluser]invision[/eluser] Thanks again. That's removed the first error, but it now doesn't recognise 'title' or 'body'. Code: A PHP Error was encountered and Code: A PHP Error was encountered Thanks again for the help Help with planning a CI project - El Forum - 02-28-2010 [eluser]invision[/eluser] Hmm, even with that change, I still seem to be getting the errors. Could it be with my SQL table? Help with planning a CI project - El Forum - 02-28-2010 [eluser]theprodigy[/eluser] right after you call your model function Code: $data['page_data'] = $this->MPages->getPageBySlug($slug); Code: echo $this->db->last_query(); and paste the output here Help with planning a CI project - El Forum - 02-28-2010 [eluser]invision[/eluser] Code: SELECT * FROM (`pages`) WHERE `slug` = '$2' LIMIT 1Array ( ) Thanks again for the help. Help with planning a CI project - El Forum - 02-28-2010 [eluser]theprodigy[/eluser] show me your routes.php setup Help with planning a CI project - El Forum - 02-28-2010 [eluser]invision[/eluser] Code: $route['default_controller'] = "page"; Help with planning a CI project - El Forum - 02-28-2010 [eluser]theprodigy[/eluser] try putting parenthesis around the any statements: $route['page/(:any)/(:any)'] = "page/pages/$2"; Help with planning a CI project - El Forum - 02-28-2010 [eluser]invision[/eluser] Woo-hoooooo! Thanks theprodigy, it's working And just to be super super annoying. If I wanted to have a page which was just aboutus/ what would I do? This would be the main About Us page, before you get into Location etc. |