Hello,
I start working with codeigniter.
I have one Controller (called Pages default one) that contains all my functions.
I would like to split the file in several Controller to group by application section (House, Resident, Rentals, Utilities)
How can I achieve that?
I created server files at the same level that the main controller
....Controller
........Pages.php
........House.php
........Resident.php
........Rentals.php
........Utilities.php
It think that my main issue is about the url invoked by the views...
i.e. my navigation (views/templates/navigation.php) use the function name (logical) as href (<a href="rentals">...)
rentals being a function within Pages.php; if I move the rentals function within Rentals.php; I have of course a 404.
For information, my Routes.php contains the following
$route['default_controller'] = 'pages/index';
$route['(:any)'] = 'pages/$1';
I hope I am clear