> > You don't say how the requestAction fails. What is the error you get?
>
> I found that the requestAction method works if caching is disabled,
> but when caching is enabled requestAction will return the contents of
> the /tmp/cache/views/home.php rather then calling the controller's
> action.
>
> So there is no error but the view is rendered but has the contents of
> home.php inserted into where the requestAction is called. This seems
> to only work under these circumstances.
>
> 1) Caching must be enabled.
> 2) The /tmp/cache/views/home.php file must exist.
> 3) requestAction must be called with an array
>
> When I debug the view I find that the call to the requestAction does
> not return. Cake renders the contents of home.php and then exists.
Can you post a ticket with a test case for that please.
Given your description it explains something I've seen, and you can
work around it by calling Configure::write('Cache.check', false);
before your request action call (and resetting afterwards as
appropriate).
AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment