Re: Adding new routes from a controller. (Cake 1.2)

2007-12-07 Thread Chris Hawes
Ok, I've cracked it, I have put the code in the applications app/ config/routes.php file. The code is as follows: $Configure =& Configure::getInstance(); $Folder =& new Folder(); $Folder->cd($Configure->pluginPaths[0]); $plugins = $Folder->ls(); foreach (

Adding new routes from a controller. (Cake 1.2)

2007-12-07 Thread Chris Hawes
Hello, The application I am currently developing will make the use of plugins. Currently in the app/app_controller.php beforeFilter (which is probably the wrong place) I get a list of plugins. I then check to see if a config file exists for the plugin, and execute the file. I would also like to