'config' key is not time, config key is config_name, you have to create
custom config with Cache::config() or use 'default' config
--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2011/12/16 heohni <[email protected]>

> Hi,,
>
>
> so you mean like this:
> <?php echo $this->element('tabelle', array(), array('cache' =>
> array('config' => '+1 day', 'key' => 'tab'))); ?>
>
> Funny, but this is hiding the complete output, my page is empty?
>
>
>
> On 16 Dez., 16:35, Tilen Majerle <[email protected]> wrote:
> > 3rd parameter in element for cake 2.0 is for options, 2nd is just for
> > variables
> >
> > and there is not 'time' key for cache
> >
> > use $this->element('elementName', array(), array('cache' =>
> array('config'
> > => 'your_cache_config', 'key' => 'you cache key'));
> >
> > --
> > Lep pozdrav, Tilen Majerlehttp://majerle.eu
> >
> > 2011/12/16 José Lorenzo <[email protected]>
> >
> >
> >
> >
> >
> >
> >
> > > Is that in CakePHP 2.0?
> >
> > > --
> > > Our newest site for the community: CakePHP Video Tutorials
> > >http://tv.cakephp.org
> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > > others with their CakePHP related questions.
> >
> > > To unsubscribe from this group, send email to
> > > [email protected] For more options, visit this
> group
> > > athttp://groups.google.com/group/cake-php
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to