Thanks for all answers, but now I read the article an add this to my code:
1. <?php echo $javascript->codeBlock("
2. var arrTempo = 'echo $javascript->Object($jstimes)';
3. var arrImagens = 'echo $javascript->Object($jssigns)';
4. var dirImagem = '" . $html->url('/img') . "';
5. var filme = '" . $this->controller->webroot .
$movies[0]['File']['fspath'] . "';
6. "); ?>
And return:
*Notice*: Undefined property: JavascriptHelper::$Object in xxx line 3
*Notice*: Undefined property: JavascriptHelper::$Object in xxx line 4
What I'm missing ?
Thanks.
2007/6/13, Dr. Tarique Sani <[EMAIL PROTECTED]>:
>
> On 6/14/07, clarkvr <[EMAIL PROTECTED]> wrote:
> >
> >
> > Please, can anyone give an example, I'm trying without sucess.
>
>
>
> I knew someone would ask again :)
>
> http://www.sanisoft.com/blog/2007/06/04/php-array-to-json-in-cakephp/
>
> HTH
>
> T
>
> --
> =============================================================
> Cheesecake-Photoblog: http://cheesecake-photoblog.org
> PHP for E-Biz: http://sanisoft.com
> =============================================================
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---