Ion Auth : Keeping it organized. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Ion Auth : Keeping it organized. (/showthread.php?tid=40927) |
Ion Auth : Keeping it organized. - El Forum - 04-22-2011 [eluser]austintbiggs[/eluser] I’m trying to keep my views organized into subfolders [views/auth, views/admin, etc..] and so I’m trying to get my “admin.php” controller to (I guess) “extend” ion auth; by simply calling it’s functions and adding my own from a separate controller (dashboard.php). How would I do this without putting views/auth into views/dashboard? Thanks. Ion Auth : Keeping it organized. - El Forum - 04-22-2011 [eluser]Ben Edmunds[/eluser] You should extend the controller class. Phil Sturgeon has a good article on this here: http://philsturgeon.co.uk/blog/2010/02/CodeIgniter-Base-Classes-Keeping-it-DRY |