Auto-Submit Dropdowns, With No Submit Button in CakePHP

<?php echo $this->Form->create('Drinks');echo $this->Form->input('drink',      array("onchange"=>"this.form.submit()",           "options"=> array(                "Tea"=>"Tea",            "Coffee"=>"Coffee",            "Juice"=>"Juice"            ),       'empty' => 'What would you like to have?'));           echo $this->Form->end(); ?>

Caching Queries in CakePHP

Configure Cache in app/Config/bootstrap.phpCache::config('long', array(    'engine' => 'File',    'duration' => '+1 hours',    'probability' => 100,    'path' => CACHE . 'long' . DS,));cache file will be written in apptmpcachelongIn controller (ArticlesController)public function latest_news ($limit=NULL) {    $data…

Full text searching in CakePHP

public function search(){    $query = $this->request->data['Articles']['search'];    $escapedQuery = $this->Article->getDataSource()->value($query);    $data = $this->Paginator->paginate('Article',        array("MATCH (Article.title) AGAINST ($escapedQuery)")                    );                    $this->set('articles', $data);    } 

jQuery/AJAX file upload in CakePHP 2.x

In view: /Articles/admin_add.ctp <style>#image_preview{    display:none;    }</style><!-- to display form --><?php echo $this->Form->create('ArticleImage', array("id"=>"uploadimage",'type'=>'file')); ?><div id="image_preview"><img id="previewing" src="noimage.png" /></div><div id="selectImage"><label>Select Your Image</label><br/><?php echo $this->Form->input('image', array('id'=>'file','type'=>'file')); ?>     </div><?php echo $this->Form->submit('upload', array('type'=>'submit',"value"=>"Upload", "class"=>"submit" )); ?>     <div id="message"></div>   <?php echo…