hi Jesse, > I was looking for a way to circumvent putting a "Router::connect...." > for each static page I have. Some of my sites have 100-150 static > pages. I'm looking for a way to dynamically build the routes for all > the pages. > > My script I wrote does work, I was just looking for input from others > on ways to optimize my code a little, or to make sure I was using best > practices.
One other thing, as Router:: is a static class, you should be able to create the routes from within the component. Also, perhaps, although this is routing related, this should be done in bootstrap instead? hth, Jon -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
