CodeIgniter-Skeleton icon indicating copy to clipboard operation
CodeIgniter-Skeleton copied to clipboard

_load_script() function load script before html tags

Open aliasdoc opened this issue 10 years ago • 1 comments

Hi, the _loas_script() function of MY_controller is loading script at the beginning of file and is not executed.

aliasdoc avatar May 10 '14 18:05 aliasdoc

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.

anvoz avatar May 10 '14 19:05 anvoz