Posts

Showing posts with the label CakePhp

database connection in cakephp

database connection in cakephp 1. O pen 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',      ); ?>

CakePHP Framework for XAMPP and WAMP

for run cakephp freamwork on XAMPP server change xampp/apache/conf/httpd.conf LoadModule rewrite_module modules/mod_rewrite.so remove # befor it for tutorial http://www.sitepoint.com/application-development-cakephp/ 1. download cakephp 2. app//Config/database.php // for database connection  3.  app//Config/core.php     line no : 187 // copy this cod or any other number value  Configure::write('Security.salt', '375698373538389654213024796542158345345435328930');   line no: 192  // copy this code or any other alphanumeric value   Configure::write('Security.cipherSeed', 'tyda1212dDSEASASdWayYui4deasd121212121sdsaEdrMnh');  4.Now go to  MOdel Folder and create " post.php " page  (page...