To bake in cake php do the following steps.
1. Download the cakephp 2.x version and copy its folder in C:\xampp\htdocs
2. Rename your cakephp 2.x foder according to your project.
3. Configure your cakephp
for core.php
first fix the error of Security.salt and Security.cipherSeed in C:\xampp\htdocs\cakephp-2.10.8\app\Config\core.php
while changing any value from Security.salt and changing any digit from Security.cipherSeed.
for database configuration
first rename database.php.default file to database.php.
then configure your database like 'datasource' => 'Database/Postgres' and rest credentials
4. Write your url in browser and check its connection establised or not.
5. Go to MyComputer/Properties/ or Control Panel\All Control Panel Items\System
6. Click on Advance System Setting
7. Click on Environment variables
8. Go to Path and Double click on it or Single Click on Path and Click on Edit button
9. And add new path to it like C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\xampp\php;C:\xampp\htdocs\cakephpblog\app\Console
10. Open CMD
11. Assign path of your project like C:\xampp\htdocs\cakephpblog\app
12. Then write cake bake all
13. It will ask for Possible Modelsbased on your database
14. Then give y for yes
15. Again give y for yes
16. Your "Bake All complete" message come on your screen
17. Now add your database name to your URL and easily update your database.
18. Thank You
1. Download the cakephp 2.x version and copy its folder in C:\xampp\htdocs
2. Rename your cakephp 2.x foder according to your project.
3. Configure your cakephp
for core.php
first fix the error of Security.salt and Security.cipherSeed in C:\xampp\htdocs\cakephp-2.10.8\app\Config\core.php
while changing any value from Security.salt and changing any digit from Security.cipherSeed.
for database configuration
first rename database.php.default file to database.php.
then configure your database like 'datasource' => 'Database/Postgres' and rest credentials
4. Write your url in browser and check its connection establised or not.
5. Go to MyComputer/Properties/ or Control Panel\All Control Panel Items\System
6. Click on Advance System Setting
7. Click on Environment variables
8. Go to Path and Double click on it or Single Click on Path and Click on Edit button
9. And add new path to it like C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\xampp\php;C:\xampp\htdocs\cakephpblog\app\Console
10. Open CMD
11. Assign path of your project like C:\xampp\htdocs\cakephpblog\app
12. Then write cake bake all
13. It will ask for Possible Modelsbased on your database
14. Then give y for yes
15. Again give y for yes
16. Your "Bake All complete" message come on your screen
17. Now add your database name to your URL and easily update your database.
18. Thank You
No comments:
Post a Comment