Thanks for replying, but I comment the

$this->cacheAction = true;  in the testmenu method, the view stop
generating in the cache folder. Any Idea why is it so, thanks



www.generics.ws


On May 2, 9:23 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Fri, May 2, 2008 at 9:18 AM, robert123 <[EMAIL PROTECTED]> wrote:
>
> >  hi, thanks this is the code
>
> >  <?php
>
> >  class CategoriesController extends AppController
> >  {
>
> >     var $name = 'Categories';
> >  var $uses = array('Category','Image');
>
> >     var $components = array('Files');
>
> >     var $helpers = array('Tree','Form','Cache');
>
> >         var $cacheAction = array('testmenu'=>'600000');
>
> >         function testmenu()
> >         {
> >                 $this->cacheAction = true;
> >                 $this->layout='blank';
> >                 $this->Category->recursive = 0;
> >                 $this->set('data', $this->Category-
> >  >findAll("Category.parent_id = '0' and Category.active = '1'",
> >  array('name'), 'Category.sort'));
> >                 $this->render();
>
> >         }
>
> You set $this->cacheAction to be an array...then set it to true in testmenu().
>
> I'm guessing this isn't what you intended.
>
> --
> Chris Hartjes
> Internet Loudmouth
> Motto for 2008: "Moving from herding elephants to handling snakes..."
> @TheKeyBoard:http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
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