I took the tutorial about building an ajax to-do list
(http://grahambird.co.uk/cake/tutorials/ajax.php -  it seems to be down
now..) and all works great. I even made some modifications to make it
degrade in case there's no JS.

What i want now, is to be able to present those views in a certain div,
in the main layout.to transform it to an element.

Any ideas about how could I do that? I created an element out of the
main Tasks/index.thtml and I feed $this->controller->Task->findAll() to
it, in the main layout
$this->renderElement('tlist',array('data'=>$this->controller->Task->findAll()));..
and it renders the list ok, that's it. nothing else works.


--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to