Cache Class for Console.

View: New views
1 Messages — Rating Filter:   Alert me  

Cache Class for Console.

by Dérico Filho :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,


I wanted to do this:

class LocalShell extends Shell {
        function gc(){
                Cache::write('test','hello world','short');
        }
}

where "short" is one of my cache configurations.

But the console returns:
PHP Fatal error:  Call to a member function init() on a non-object in /
mnt/dados3/xpgplus/www.123i.xpg.com.br/cake/libs/cache.php on line 195

Fatal error: Call to a member function init() on a non-object in /mnt/
dados3/xpgplus/www.123i.xpg.com.br/cake/libs/cache.php on line 195

What am I doing wrong?

Thanks
Dérico Filho
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@...
To unsubscribe from this group, send email to cake-php+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---