APC as cache engine = segmentation fault

2009-02-01 Thread webjay
I'm using CakePHP on a Joyent Accelerator with APC. Everything looks good as long as I don't enable APC as cache engine. Cache::config('default', array( 'engine' = 'Apc', 'duration' = 3600, 'probability' = 100 )); Any hints on what could be wrong? Thx, Jacob

Caching views like elements

2009-02-01 Thread webjay
Does anyone have a solution for caching views with keys? One could create an element that gets the content and is cached based on the key: http://book.cakephp.org/view/561/Caching-Elements --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: $this-Auth-user not refreshing after edit

2009-01-03 Thread webjay
Here's how I do it: private function reload () { $this-Auth-login($this-User-read()); } So just call $this-reload() from your controller. -- View this message in context:

$this-User-save() skips validation?

2007-12-30 Thread webjay
I get a password from a form and saves it in the database. No problem there. My problem is that I want validation to happen. I.e to check that the username is 6 or more chars. _snippet from model_ var $validate = array( 'email' = VALID_EMAIL, 'username' =

Re: 1.2, AuthComponent: Call to a member function isAuthorized() on a non-object

2007-12-29 Thread webjay
You probably have $this-Auth-isAuthorized() somewhere, like I had. Try with $this-isAuthorized() which was my solution to the same problem. Earlier in 1.2 it worked with $this-Auth-isAuthorized() /Jacob --~--~-~--~~~---~--~~ You received this message because you

Empty delimiter error at revision 1.2.5693

2007-09-25 Thread webjay
Hello group. I have the latest cake, which should have this error fixed, but I get this: Warning (2): stristr() [function.stristr]: Empty delimiter. [CORE/cake/ libs/controller/components/auth.php, line 778] Any idea why? I don't see this on my dev machine with the same cake version. Regards,

I need to send signup mails from 2 controllers, so where should I put my sendSignupMail function?

2007-09-04 Thread webjay
Hello. I need to send signup mails from 2 controllers, so where would you recommend I put my sendSignupMail function? Regards, Jacob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this