News Feed
Jobs Feed
Sections




News Archive
Debuggable Blog:
Passing controller variables to your JavaScript
August 27, 2008 @ 11:15:57

Felix Geisendorfer shares another helpful tip for CakePHP users out there - this time dealing with controller variables and Javascript.

If your application requires JavaScript in order to work than you have probably been looking for an efficient way to pass CakePHP controller variables to your scripts. I already mentioned this technique in my talk at CakeFest this year, but here is the full explanation.

His method sets up a new function in the controller that automatically pushes PHP arrays out to a Javascript block in your application's layout. The widget system makes it a simple process.

0 comments voice your opinion now!
controller variables javascript cakephp framework


blog comments powered by Disqus

Similar Posts

EngineYard.com: Cloud Out Loud Podcast - "Lithium and Boating"

Kris Jordan's Blog: Towards RESTful PHP - 5 Basic Tips

Jurriaanpersyn.com: Ajax/PHP-powered Sudoku Helper

Arnold's Blog: Without a framework: (M)VC

Paul Jones' Blog: Solar and TypeKey Authentication


Community Events











Don't see your event here?
Let us know!


podcast testing conference phpunit framework zendframework2 functional unittest language example series release tool opinion interview community code development application introduction

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework