Skip to main content

Timeline for CodeIgniter nav/menu insecurities

Current License: CC BY-SA 3.0

4 events
when toggle format what by license comment
Oct 27, 2012 at 23:13 comment added Viktor Okay, now _get_nav() will return $this->config->item('collection_nav'). This array value is loaded from a CI config file.
Oct 27, 2012 at 19:29 comment added Viktor Thanks a bunch for the really detailed answer, by the way! I will give you the correct answer if no one goes into detail about how I've done wrong MVC-wise.
Oct 27, 2012 at 19:29 comment added Viktor So: I've updated my code a bit! I haven't really solved how to do the active view thing yet. And the nav arrays are still built in the controller, but I am thinking of either doing it your way (JSON) or by using some config file in CodeIgniter. Otherwise, I think I've fixed all your comments. The reason for the index() method (or is it called function inside a class too?) is that when the controller is called without a specific view it should map to my view view. I.e., visiting www.mysite.com/collection/ should map to www.mysite.com/collection/view/. Well, how do you like my improved code?
Oct 26, 2012 at 16:16 history answered mseancole CC BY-SA 3.0