Yup, it does. You made a good point earlier about links and redirects. It opens up a can of worms if you always wanted certain urls to go to a non-prefix action (logout is a good/bad example; bad because it should generally be in an element so only ever written a very small number of times, but good because you always want it to go to /users/logout). If you had loads of $this->Html->links and $this->redirects in your site that each had to handle a range of prefixes, you have an admin nightmare when you want to add new prefixes. It would be much easier to handle it once inside a route. I've started doing this now, but am not convinced it's the best/right way.
Really happy to be educated. Jeremy Burns Class Outfit [email protected] http://www.classoutfit.com On 6 Dec 2010, at 18:32, cricket wrote: > On Mon, Dec 6, 2010 at 10:48 AM, Tilen Majerle <[email protected]> > wrote: >> or like that....i just want to tell u, that u need to define $prefix :D > > I think Jeremy may have been referring to the same way that we can use > the pre-defined uuid, year, etc. in our routes (I'd post a link but, > as usual, I can't find the correct page in the docs). The code block > he mentions, using $prefix, appears to me to suggest that we can > simply include $prefix in our own code. I think a better form would be > something along the lines of "<PREFIX>" or similar, because the > example isn't necessarily code that we will use but is explaining > which routes that are configured for is behind the scenes, based on > configured prefixes. Because the example shows a variable, $prefix, > for clarity it should also show the control part of the loop (where > $prefix is defined), not just the interior. Because it doesn't, it > would be better to use something more abstract. > > Does that seem about right, Jeremy? > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > 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 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
