If knowledge is power, then sharing knowledge is ultimate powertrip
Latest Updates
You are here: Home >> 2011 >> February

Monthly Archives: February 2011

cakephp include javascript file in view

You probably know that if you have $scripts_for_layout in your site’s layout, then you can do a Cakephp include javascript file in view. For example, if you’d like to include ‘myScript.js’ from some view you would add the following code: $javascript->link(‘myScript’, false); Basically the second param (false), will tell CakePHP not to include the file in-line, but rather where the ... Read More »

Scroll To Top