CakePHP 2 : Query to datetime field with date condition only
function visitorCount($date) { return $this->Visitorcounter->find(‘count’, array( ‘conditions’ => array(‘DATE(Visitorcounter.created)’ => $date) )); }
function visitorCount($date) { return $this->Visitorcounter->find(‘count’, array( ‘conditions’ => array(‘DATE(Visitorcounter.created)’ => $date) )); }
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 $this->Form->end(); ?> <script>$(document).ready(function (e) {$(“#uploadimage”).on(‘submit’,(function(e) {e.preventDefault();$(“#message”).empty(); $.ajax({url: “<?php echo Router::url (array(‘controller’ => ‘Articles’, ‘action’ =>’image_upload’), […]
The Internet Archive Software Collection is the largest vintage and historical software library in the world, providing instant access to millions of programs, CD-ROM images, documentation and multimedia. The collection includes a broad range of software related materials including shareware, freeware, video news releases about software titles, speed runs of […]
According to the sitepoint.com survey, the most promising frameworks for 2014 seem to be: Laravel Phalcon Symfony2 Yii and CodeIgniter seem to be sharing 4th place.CakePHP, Aura and Zend framework 2 share 5th place.Source: http://www.sitepoint.com/best-php-frameworks-2014
WriteFrom short lists to lengthy research, no matter what form your writing takes, Evernote keeps you focused on moving those ideas from inspiration to completion. CollectEasily gather everything that matters. Clip web articles, capture handwritten notes, and snap photos to keep the physical and digital details of your projects with […]
Develop and test entire web application using a single environment. With support for the latest browser technology specs such as HTML5, CSS3, JavaScript, Ruby, Rails, PHP and Python. Core Features HTML, CSS, and JavaScript Code Assist Aids in authoring of HTML, CSS, JavaScript, PHP, and Ruby. Supports the latest HTML5 […]