Hi,
Supposing that you need modernizr and jquery application wide.
class ControllerBase extends Controller
{
// assets are in public/css and public/js
public function initialize()
{
$this->assets
->collection('headerCss')
->addCss('css/normalize.css')
->addCss('css/foundation.min.css')
;
$this->assets
->collection('footer')
->addJs('js/modernizr')
->addJs('js/jquery.min.js');
}
In a given controller you've got a newAction for displaying your form.
public function newAction()
{
$this->assets
->collection('footer')
->addJs('js/tinymce/tinymce.min.js')
->addJs('js/ajaxupload.js')
;
}
In you main layout view:
<head>
{{ assets.outputCss('headerCss') }}
</head>
<body>
// ....
// code
{{ assets.outputJs('footer') }}
</body>
</html>