database connection in cakephp

database connection in cakephp

1. Open app / config / database.php 


<?php
public $default 
= array(
        
'datasource' => 'Database/Mysql',
        
'persistent' => false,
        
'host' => 'localhost',
        
'login' => 'user',
        
'password' => '',  // here password
        
'database' => 'cakephp'// its my database name
        
'prefix' => '',
        
//'encoding' => 'utf8',
    
); ?>



Comments

  1. I was seeking for cake php programmer and set down up on your mail and i should state thanks for distributing such helpful information.

    ReplyDelete

Post a Comment

If you Satisfied , Please Leave a comment

Popular posts from this blog

Call PHP Function In JavaScript Using Ajax

List of Post Category Wise in wordpress