Create a folder(js) in the root directory. Copy the mootools.js to that folder.
In the header tag of your view pages include the js in the html code just like the traditional method.
Start writing mootools code in your view pages.
There is a possibility based on the settings of the url control with htaccess to eliminate index.php from the url.
Htaccess Tip
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|css|captcha)
RewriteRule ^(.*)$ /index.php/$1 [L]
Add the js folder in the highlighted line:
RewriteCond $1 !^(index\.php|images|robots\.txt|css|captcha|js)

No comments:
Post a Comment