$js_files = array( 'js/jquery-ui-1.10.0/jquery-1.9.0.js', 'js/jquery-ui-1.10.0/ui/jquery-ui.js', 'js/ckeditor/ckeditor.js', ); $http_root = Configure::read('HTTP_ROOT'); foreach($js_files as $js_file) :?>