zen of coding

Blend PHP and JavaScript in CakePHP

I guess it’s no big secret that you can easily serve JavaScript files with some PHP content, by using something like: <script type="text/javascript" src="myscript.php"></script> Let’s take a quick look at how this applies to CakePHP and what (hopefully) useful tricks you can accomplish by employing the following techniques… First, we’d[…]

Read More »
%d bloggers like this: