i think i found the answer.

this bug has been fixed in cache.php version 6212.

this was the added line (253):

Router::setRequestInfo(array($this->params, array(\'base\' => $this-
>base, \'webroot\' => $this->webroot)));

at the 7031 version, this fix sacrificed on the altar of refactoring.
if i put back the missing line, my application works well with view
cache.

gbk

On jún. 18, 13:43, "gbk *" <[EMAIL PROTECTED]> wrote:
> some more info:
>
> i've got the same problem with generated links like this:
>
> <?php e($html->link(__('logout', true), "/users/logout"));?>
>
> after view caching (ctrl+r in firefox) the base prefix had gone from
> the url, so i've got /users/logout instead of /devel/users/logout.
>
> without view cache the urls generated well.
>
> On jún. 18, 09:32, "gbk *" <[EMAIL PROTECTED]> wrote:
>
> > hi,
>
> > i'm using the 1.2. rc1 version of cake.
>
> > i've got the following layout:
>
> > <div id="header">
> >         <cake:nocache>
> >                 <?=$this->element('searches/searchbox')?>
> >                 <?=$this->element('menu/topmenu')?>
> >         </cake:nocache>
> > </div>
> > <div id="content">
> >     <?=$content_for_layout ?>
> > </div>
>
> > my view cache config in books controller:
>
> > var $cacheAction = array ('books/view/' => '+1 hour');
>
> > the view cache has generated correctly in the tmp folder after the
> > first request (/devel/books/view/374):
> > <div id="header">
>
> >                 <?=$this->element('searches/searchbox')?>
> >                 <?=$this->element('menu/topmenu')?>
>
> > </div>
>
> > after the first request my searchbox form (this is in the searchbox
> > element):
> > <form controller="search" id="SearchIndexForm" method="post" action="/
> > devel/searches">
>
> > after a browser refresh:
> > <form controller="search" id="SearchIndexForm" method="post" action="/
> > searches/">
>
> > the devel prefix had gone. is it a bug or my mistake? please help me.
>
> > thank you,
>
> > gbk
--~--~---------~--~----~------------~-------~--~----~
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