#1 new
Sean Templeton

$js->object()

Reported by Sean Templeton | January 29th, 2010 @ 11:38 PM | in DojoCake 1.3.2

object($data, $options = array())
Converts values into JSON. There are a few differences between this method and JavascriptHelper::object(). Most notably there is no affordance for stringKeys or q options found in the JavascriptHelper. Furthermore $js->object(); cannot make script tags.

Options:
•prefix - String prepended to the returned data.
•postfix - String appended to the returned data.
Example Use:
$json = $js->object($data);

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Dojo Cake is a library of CakePHP helpers and controllers to make the process of adding Dojo to CakePHP more easy. The library includes helpers for widgets and XHR connections.
Dojo Cake was developed to make the process of making ajax applications in CakePHP as easy as making the application itself, making Web 2.0 applications in CakePHP a piece of cake (pun intended). With a growing number of widgets, and support for basic ajax and xhr connections, Dojo Cake aims to be a powerful link between clientside programming and server-side programming.
The project is hosted on google code at http://dojocake.googlecode.com

Shared Ticket Bins

People watching this ticket

Pages