jquery UI tab in cake php

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
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');      
       }
}
?>
To load JavaScript helper we write this code
1
var $helpers = array('Html','Form','Javascript');

1 Comment

Cakephp: Creating and Sending Parameters Between Controller and View

Cakephp Step By Step Tutorial: We still wok with our first application at cakephp. But we will build controller and view better. Create parameters in controller and send it to view. It will make our application more flexible.
Create a new file books_controller.php within D:\xampp\htdocs\cakephp\app\controllers. Overwrite become like this:
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
    class BooksController extends AppController {
        var $Books = 'Books';
        var $uses=null;
       function index() {
          $this->set('page_heading', 'Packt Book Store');
          $book  = array (
                   'book_title'   => 'Object Oriented Programming
                                                        with PHP5',
                   'author'     => 'Hasin Hayder',
                   'isbn'        => '1847192564',
                   'release_date' => 'December 2007'
                  );
          $this->set($book);
          $this->pageTitle = 'Welcome to the Packt Book Store!';

Leave a comment

Cakephp: Installation


Cake php Step By Step Tutorial: We will learn how to install Cakephp. We will install to our local computer. Before follow this instruction, please download Cake php at www.cakephp.com.
1. Open your root web server.
2. Put cakephp downloaded.
copy zip file in htdocs folder
3. Extract it, you will get a folder named liked “cakephp-cakephp-1.3.1-0-g0180daa“.
4. For simple

Leave a comment