Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

$js->object()

#1

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);

Reported by Sean Templeton · January 29th, 2010 @ 11:38 PM

State: new
Milestone: DojoCake 1.3.2
Assigned to: Sean Templeton Sean Templeton

Activity

No comments yet.

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.