I have a custom mvc app which has an index controller and an index model.The url for controllers in this app is $url[0]. The system is designed to redirect to index when the value for controller($url[0] is empty. e.g., When the url is http://localhost/Test/
The system should automatically redirect to the index.
However, when i include a model method in the controller i get the following error:
Notice: Undefined property: Index::$model in Fatal error: Call to a member function userList() on a non-object