I am trying to render an AJAX element instead of a view into a DIV using
this in the user_controller:
It was working perfect when I was using the view file but I rather use the
element
$this->viewPath = 'elements';
// tried this
//$this->viewPath = '/elements';
// tried this
// $this->viewPath = '../elements';
$this->render('/user/update_preferences');
views
+ users
-add.ctp
- edit.ctp
- oher views
- (originally i had update_preferences.ctp here and it rendered as
normal in the AJAX DIV)
+ elements
- user /
- user/update_preferences.ctp
But its not working. I even try to render elements that do not exist and all
it is doing is just loading the page i am on into the div....
if ($this->RequestHandler->isAjax() || $this->RequestHandler->isXml()) {
Configure::write('debug', 2);
}
Ideas?
Thanks
Dave
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---