At first we have to copy all the JavaScript file inside D:\xampp\htdocs\cakephp\app\webroot\js
Here we use jquery and jquery UI javascript file and css file.
We now copy all the css file inside D:\xampp\htdocs\cakephp\app\webroot\css
Leter we will load this css and java script file.
Now Create a controller articles_controller.php inside D:\xampp\htdocs\cakephp\app\controllers
And write bellow code
To load JavaScript helper we write this code
Here we use jquery and jquery UI javascript file and css file.
We now copy all the css file inside D:\xampp\htdocs\cakephp\app\webroot\css
Leter we will load this css and java script file.
Now Create a controller articles_controller.php inside D:\xampp\htdocs\cakephp\app\controllers
And write bellow code
01 02 03 04 05 06 07 08 09 10 11 12 13 14 | <?php class ArticlesController extends AppController { var $uses =null; var $name = 'Articles' ; var $helpers = array ( 'Html' , 'Form' , 'Javascript' ); function index() { $this ->set( 'page_heading' , 'Jquery Tab' ); } } ?> |
1 | var $helpers = array('Html','Form','Javascript'); |