Yeah but will I have a connection to the database in beforeFIlter()?

On Aug 19, 9:05 pm, Jeremy Burns | Class Outfit
<[email protected]> wrote:
> What, you mean like beforeFilter()?
>
> Jeremy Burns
> Class Outfit
>
> [email protected]http://www.classoutfit.com
>
> On 19 Aug 2010, at 18:14, Zippoxer wrote:
>
>
>
> > Let's say I have a little game that when you're sleeping, you lose
> > access to a specific controller.
> > But this controller has like 7 actions and I don't want to write the
> > "if($this->is_sleeping()) return;" code in each action.
> > So I need to create a function in the controller that will run before
> > any action in the controller.
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 
> > athttp://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

Reply via email to