Configuration of Cakephp, install cakephp

Configure Cakephp, install cakephp, install new cakephp, firststep of cakephp,first part of cake php,basic congiguration of cake php.

Configuration of Cakephp,Installation of cakephp.

step:1 first download cakephp click <a href=””>Download</a>
step:2 After download it past on webroot or htdoc folder, and change the name of project, here is democakephp.
step:3 Now run project http://localhost/democakephp/

step:4 go to APP->Config->core.php open core.php and change and add some extra any word.

Configure::write('Security.salt', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mijkhkhj');
Configure::write('Security.cipherSeed', '76859309657453542496749683645jljkkj');

step:5 go to APP->Config->database.php.default and remove default now new path APP->Config->database.php and open database.php

public $default = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => 'localhost', ////////////////host name
'login' => 'root',        //////////////user
'password' => '',        /////////////password
'database' => 'cakephp',////////////database name
'prefix' => '',
'encoding' => 'utf8',

step:6 create database cakephp and create users table
step:7 go routes.php  and

Router::connect('/', array('controller' => 'users', 'action' => 'index'));//controller name users and action name index

step :8 Create controller app->Controller->UsersController.php and past this code.

step 9: create action index in Userscontroller.php

class UsersController extends AppController {

public function index() {



step 10: now gp to app->View->Users->index.ctp and create index.ctp and past

<h1>Welecome Users</h1>

step:11 run the project it show Welecome users




Share Button

About admin

Leave a Reply

Your email address will not be published. Required fields are marked *


Author: pramod kumar kumawat Mob: 9269727062
Free WordPress Themes - Download High-quality Templates