simple-mvc-framework/v2 — pull request #82 by QsmaPL (2014-11-12 14:12:55+00:00)
Title: Small footer edit

I've added foreach for js, this eliminate unnecessary retyping:

in controller we can use this:

$data['js'] = array(
'http://mysite.com/a.js',
'http://mysite.com/b.js',
'http://mysite.com/c.js',
'http://mysite.com/d.js',
);

or

$data['js'] = array(
DIR . 'js/main.js',
DIR . 'js/test.js',
);

or

$data['js'] = array(
\helpers\url::get_template_path() . 'js/main.js',
\helpers\url::get_template_path() . 'js/test.js',
);