On Wed, Feb 11, 2009 at 10:35 AM, Corey Crawford
<[email protected]> wrote:
>
> Hmm I think I see what you are saying, but I don't think that'll work
> in an ajax request ... since it won't refresh the view, I need to
> return only the html that's changed, not have the whole page refresh.
> But this gives me an idea that I'll play with ..
Sorry, I forgot something, actually
$this->layout = false;
$this->set('new_param', $new_param);
$this->viewPath = 'elements';
/*
OR:
$this->viewPath = 'elements'.DS.'some_other_dir';
*/
$this->render('search_element_1');
This will force Cake to use only the element to render the view.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---