CodeIgniter-Skeleton
CodeIgniter-Skeleton copied to clipboard
_load_script() function load script before html tags
Hi, the _loas_script() function of MY_controller is loading script at the beginning of file and is not executed.
Hi,
The _load_script
function simply echos the script so you can not use it in the same block with the template
load_view
function which will echo a whole page.
Please take a look at https://github.com/anvoz/CodeIgniter-Skeleton/blob/master/application/modules/addons/data/validate_js/controllers/form_validation_example.php This function will usually be called inside a pagelet.