On Fri, Jan 25, 2013 at 7:07 AM, LDSign <[email protected]> wrote: > Thank you :) Thats a good starting point, but how do I check there if > the redirect will be successfull?
It depends on what these URLs are pointing to. Are they all defined in routes.php? Check Router::routes and compare. Do you have static pages? Parse the $url (array or string) and check that the ctp file exists. Are your pages instead in the DB? Again, parse $url and check if the target exists. If doing the latter, you really should have a cache file containing all your page routes and have Router connect to them all, so this should be covered by the first option. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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]. Visit this group at http://groups.google.com/group/cake-php?hl=en.
