Category Covered

cakephp bake on ubuntu  

How to setup cakephp bake on ubuntu? Don’t worry just follow the instruction.   sudo apt-get install cakephp-scripts   Before doing that please make sure that your tmp directory in app is writable   1. sudo gedit /etc/environment   File will be opened with a text editor and with a content similar below for cakephp baking environment settings. PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:  
By: Tech writer  |   Total Read: 813  |   Read more..

CakePHP bake Command  

 Cakephp bake setup on windows. Follow the image for setting up the environment variable for cake bake.   Environment variable path setup on cakephp bake is very important   My pc Environment variable is like that so be careful about it. You will be needed to set the bold path for the baking.   Dont use any space after or before comma(,)   %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\  
By: Tech writer  |   Total Read: 2883  |   Read more..

Integrating CakePHP with Twillio  

How you will integrate twillio on cakephp? Here i am going to write step by step. Step1: Download the twillio from the below link and extract it to projectName/app/vendor Directly you may download from the given links https://github.com/twilio/twilio-php/archive/master.zip or https://github.com/twilio/twilio-php<  
By: Tech writer  |   Total Read: 2244  |   Read more..

How can i see my mysql store procedure results?  

 CALL areslog_shanghai.albumItems;  
By: Tech writer  |   Total Read: 0  |   Read more..

Cakephp containable conditions in pagination  

cakephp containable with complex condition, limit on related model. $this->paginate = array( 'limit' => 20, 'order' => array('NiteParty.date' => 'ASC'), 'contain' => array( 'Item' => array( 'conditions' => array( 'Item.id' => 3 ), 'limit' => 2, ), 'NitePartyPicture' => array( 'limit' => 3, ) ) ); $niteparties = $this->paginat  
By: Tech writer  |   Total Read: 2152  |   Read more..

Cakephp login is not working on internet explorer  

If you see that your cakephp login is not working on internet explorer then modify the following information.   /app/Config/core.php Configure::write('Session', array( 'defaults' => 'php', 'cookieTimeout' => 0, 'cookie' => 'newNameSESSION', ));  
By: Tech writer  |   Total Read: 1101  |   Read more..

Send mail in cakephp2  

If you want to send mail using cakephp 2.x version then this tutorial will help you. Add the following line App::uses('CakeEmail', 'Network/Email');   Use the following code on your function   $email = new CakeEmail(); $email->from(array('noreply@'.env('SERVER_NAME') => 'Sales Tracking Software')); $email->to($user['User']['username']); $email->subject('Reset password Mail'); $email->template('recoverpassword')  
By: Tech writer  |   Total Read: 1006  |   Read more..

How to allow sub folder on cakephp by htaccess  

I have a project on main domain which is developed using cakephp framework and now i want to add another sub folder for testing another project which is devloped in smarty technology. Here is the htaccess of the main project <IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/  
By: Tech writer  |   Total Read: 873  |   Read more..

CakePHP Display multiple fields in a single drop down find list  

I want to show two fields value on the dropdown of cakephp which are retriving by find list query. For example i want to show first_name and last_name in my select dropdown.   Then use the folloing tested code.   $users= $this->User->find('all', array('conditions'=> array('User.is_doctor'=>1), 'fields'=>array('User.id', 'User.first_name', 'User.last_name')));   $users = Set::combine($users, '{n}.User.id', array  
By: Tech writer  |   Total Read: 1725  |   Read more..

unbindModel not working on cakephp paginate  

On cakephp 1.2 or cakephp 1.3 you will see that your unbindmodel is not working on paginate.  Model->unbindModel() works only for the very next next operation of the model. So it works perfectly for find query. but paginate has more than one operation so it does not work. But it does not mean that it will not work. Like the following query send false as a second parameter.  $this->DoctorAppointment->Customer->unbindMode  
By: Tech writer  |   Total Read: 1709  |   Read more..
Top 15 Posts
Google+