You can use app/config/bootstrap.php. But I think that making custom
routes (and checking in beforeFilter() ) would be better.

On Oct 30, 5:11 am, Adwin  Wijaya <[EMAIL PROTECTED]> wrote:
> can we check or format the url before doing the routing ?
> if we havewww.example.com/userid/controllers
>
> i want to check first, whether the user exist on the db or not ... if
> it is exist then it will save the userid on the session tracking and
> then use the controller but if the userid is not exist on the
> database, we simply redirect thewww.example.com/controller/
>
> how to do this ?
> which file I should place this checking ?
>
> thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to