Hi Again [EMAIL PROTECTED],
I'm not sure if the DIV is expecting a variable as such as I am using
the Render function. I guess the Render function expects a variable
OR a view to render; which is what I thought I was doing from the code
I provided above.
I'm a little stumped now! :o)
Is it act
OK. Here's an idea. In the example I quoted from the manual, the
view code is returned into the $userTable variable.
What you would do with it then is echo/print it into your view.
What variable is the code inside the expecting
in your project/add.thtml?
If it included something like It might
OK, I have been playing with this.
My projects controller is this:
##
params['data']))
{
if ($this->Project->save($this->params['data']))
{
$this->set('tasks',
$this->requestA
Renderring a view of a different Controller is the same as rendering a
view of the same controller. (Using AJAX helper).
[EMAIL PROTECTED], my first thought when I see your approach is: it violates
MVC.
However, upon further look I think it actually make sense since there
is no use in duplicatin
I see. I wonder if requestAction could help you there?
The cake manual page seems to infer that it might do what you want.
Here's an excerpt from http://manual.cakephp.org/chapter/controllers
If you have an often used element in your application that is not
static, you might want to use request
Thanks for the reply [EMAIL PROTECTED]
I had actually based my logic on that tutorial. In the tutorial they
are rendering a view of the same object; the ToDo view.
What I was trying to do was a render a view of another object.
Does this require a different approach?
Thanks,
jamieh...
--~--~
Hello,
I found this tutorial to be pretty good.
http://grahambird.co.uk/cake/tutorials/ajax.php
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@goog
Hi,
I am reasonably new to CakePHP and have been trying to figure out how
to create a multi step AJAX form.
I have a model called "users" and a model called "projects".
>From /users/add/ i would like to update the div containing the "add
user" form with that of /projects/add/.
I have tried thi