Differentiating between pages and modules - 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: Differentiating between pages and modules (/showthread.php?tid=29614) |
Differentiating between pages and modules - El Forum - 04-15-2010 [eluser]sunnyd[/eluser] Hi Guys, The current cms is am writing is using Matchbox for the modules. At the moment, I amble to to dynamically create pages and have them loaded. But when I try to load a particular module, I get a 404 error. I have 3 tables in places. I have a menus table, a pages table and a modules table. In my routes file, in order to load pages, I have: Code: $route['(:any)'] = 'pages/$1'; I do have my page controller setup to load the pages according the page slug. And on a previous post, I was given a _reap function which made things a bit easier. now I am trying top load modules and every time I try to load a module, I get a 404 error.... Can anyone help? Thanks |