public function action_crop($id){ echo Asset::js('jquery.imgareaselect.min.js'); }
Asset::js('jquery.imgareaselect.min.js');
public function action_bla() { // this doesn't output anything Asset::js('jquery.imgareaselect.min.js', array(), 'head'); }And then in your view, request the group
Asset::render('head');
Harro Verton wrote on Friday 13th of May 2011:And then in your view, request the groupAsset::render('head');
You should not use echo or print. It will generate output on the spot, while views are rendered at the end. Also, once you start caching, you won't cache anything you echo...
ecoh Asset::render('head');
It looks like you're new here. If you want to get involved, click one of these buttons!