Monday, May 31, 2010

Re: another timeline helper question

I don understand the example part http://bakery.cakephp.org/leafs/view/81

where the view is used to render the json.

<?php // /app/main_activities/ajax_timeline.ctp
$xpaths = array(
'title' => '/title',
'start' => '/from',
'end' => '/to',
'color' => '/color'
);
echo $timeline->renderJSON($data['SubActivity'],array(),$xpaths);
?>

The path "/app/main_activities/ajax_timeline.ctp" doesn't make sense
too.

On May 31, 12:07 pm, Bryan Lim <ytbr...@gmail.com> wrote:
> Hi all,
>
> how do I get $data fromhttp://bakery.cakephp.org/leafs/view/81
>
> cakephp is complaining undefined variable data.
>
> I am new to both php and cakephp.
>
> need help!
>
> /b

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en

No comments: