Q1 : how to print query of find cakephp? ans: $log = $this->getDataSource()->getLog(false, false); debug($log); Q2: Socket transport “ssl” in PHP not enabled? ans: Rename php.ini-production to php.ini (in C:\xampp\php\ folder) Edit php.ini and uncomment extension_dir=ext. Also uncomment extension=php_openssl.dll. Q3.…
Tag: cake php
condition in find function cakephp
How to get data on condition that start time only have current year data:
CakePHP cake bake command
step 1: set path to environment variable. like: C:\xampp\php;C:\xampp\htdocs\yourproject\lib\cake\console\; step 2: open command prompt and type cd C:\xampp\htdocs\yourproject\app and press enter. step 3: now type cake bake now you can see the options there. you can continue accordingly.