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
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
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:
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' =
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
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,
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