Steps To Setup cakephp
- Download cake php from http://cakephp.org/
- Extract This and paste this folder in xampp's htdoc/or wamp servers www folder
- Now its Time to configure the cakePhp
but firstly run this folder by localhost u will find some errors
Cake's Database Configuration
First you need to make a copy of the
database.php.default
configuration file found incake_directory/app/config
. Make sure you make a copy inside the same folder, after that just take off the .default and you have you blank configuration file. Using you favorite text or code editor, open it up, and after scrolling down a bit, you should see:
class DATABASE_CONFIG
{
var $default = array('driver' => 'mysql',
'connect' => 'mysql_connect',
'host' => 'localhost',
'login' => 'user',
'password' => 'password',
'database' => 'project_name',
'prefix' => '');
var $test = array('driver' => 'mysql',
'connect' => 'mysql_connect',
'host' => 'localhost',
'login' => 'user',
'password' => 'password',
'database' => 'project_name-test',
'prefix' => '');
}
{
var $default = array('driver' => 'mysql',
'connect' => 'mysql_connect',
'host' => 'localhost',
'login' => 'user',
'password' => 'password',
'database' => 'project_name',
'prefix' => '');
var $test = array('driver' => 'mysql',
'connect' => 'mysql_connect',
'host' => 'localhost',
'login' => 'user',
'password' => 'password',
'database' => 'project_name-test',
'prefix' => '');
}
First off, you probably notice there is actually two database setups there. This is because cake can actually handle more than just one database at a time, you can even add more than two. For our purposes, however, we need only one, so you can delete the second one. Most of the stuff should be pretty straight forward, with our complete database config file looking like so:
class DATABASE_CONFIG
{
var $default = array('driver' => 'mysql',
'connect' => 'mysql_connect',
'host' => 'localhost',
'login' => 'root',
'password' => '',
'database' => 'cakephp',
'prefix' => '');
}
{
var $default = array('driver' => 'mysql',
'connect' => 'mysql_connect',
'host' => 'localhost',
'login' => 'root',
'password' => '',
'database' => 'cakephp',
'prefix' => '');
}
If you open up your cake app in a browser you will see the default cake page, with two extra messages letting you know that you database is setup and connectible. This is really good news, and means that we are pretty much ready to start building our first app. But that is for the next tutorial. For now you can take a break, and be glad your cake app is ready to be built. That's it for this one, but don't forget that when you need some programming assistance, just Switch On The Code.
After Applying this Errors Related to database will remove just check
Still a problem in Run Ckephp with Salt.Security and
cipherSeed
Try this
Now your cake php setup is completed and it will work perfect
Lets enjoy with Cake php
If still You have any problem please contact me on dadhich.priyank@gmail.com
|
correct ans i just needed this
ReplyDelete