Hi Tom,
Making an element will speed up your application, you can easily call the
function in the element by using
<?php
$data = $this->requestAction('your_controller/your_function');
foreach($data as $record){
your html code goes here
}?>
in your function instead of setting data you just need to return it.
like
function myfunction()
{
$users = $this->User->findAll();
return $uses;
}
By doing this your application will be fast
Enjoy
Marcus
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php