The most basic functions class you can develop with bake if you are using cakePHP framework.
First do following in your PHP for Cake :
- Change the config file of php/php.ini : register_globals = On
- Enable mod rewrite in apache/conf/httpd.conf : remove # from begining,
LoadModule rewrite_module modules/mod_rewrite.so
Following easy steps to get the bake “myproject” is name :
- Define database configuration in myproject/app/config/
in dateabase.php (that you get on new downloaded files)
- Then set the system path variable:
;c:\xampp\php;c:\xampp\htdocs\myproject\cake\console\
you can find it
- My Computer [properties]
– Advanced
— Environment Variables
—- System Variables
Find for Path and append above path as per your folder.
Now run on command prompt
cd c:\xampp\htdocs\myproject\
c:\xampp\htdocs\myproject\>cake\console\cake bake
It simply run the bake file and menu ridden program comes you can make model, view and controller by following the simple questions.
Hope this help you out..
