Calling a model from a controller from the 404 route [migrated]
- by IrishRob
Got a problem here where I can’t seem to load a method from a model after the page has been redirected after encountering a 404.
Model name: Category_Model
Method name: get_category_menu()
In my routes, I’ve updated the 404 over-ride to: $route[‘404_override’] = ‘whoops’;
I’ve also got my controller Whoops that reads…
<?php
class Whoops…