02-24-2012, 01:19 AM
[eluser]PhilTem[/eluser]
Well, as @pickupman mentioned, you don't NEED HMVC, but if you want to have your site a little more structured (and have code easily reusable) then HMVC will be the right thing for you.
Otherwise, to get your admin-controller working, you have to put it into ./application/controllers with whatever name you prefer.
Before using HMVC, I had a folder admin within the controllers folder where I put all admin-controllers. That way you have basic/public controllers separated from admin-controllers very easily. Just put a controller called index inside the admin-folder and it will handle the default actions when www.example.com/admin is called.
Well, as @pickupman mentioned, you don't NEED HMVC, but if you want to have your site a little more structured (and have code easily reusable) then HMVC will be the right thing for you.
Otherwise, to get your admin-controller working, you have to put it into ./application/controllers with whatever name you prefer.
Before using HMVC, I had a folder admin within the controllers folder where I put all admin-controllers. That way you have basic/public controllers separated from admin-controllers very easily. Just put a controller called index inside the admin-folder and it will handle the default actions when www.example.com/admin is called.