Problem to echo out the result of array
Hi! There
I wrote one line code something like this and add function afterfind
in my AppModel:
pr($this->Course->find('all',array('fields'=>array('SUM(totalday) AS
Total'),
'group'=>array('staff_id')
)
));
I will get the result like this:
Array
(
[0] => Array
(
[Course] => Array
(
[Total] => 6
)
)
[1] => Array
(
[Course] => Array
(
[Total] => 2
)
)
)
The question is, how can I echo this result in index action?
--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home