Showing posts with label CakePHP. Show all posts
Showing posts with label CakePHP. Show all posts
Monday, April 6, 2015
Sunday, April 14, 2013
Integrating CKEditor with CakePHP
CKEditor is the web text editor used in web applications to convert your textarea to Rich TextArea.
Here we explain how to integrate CakePHP 2.x with CKEditor (version 4.1)
Download CKEditor and extract the files to app/webroot/js/ckeditor
Here we explain how to integrate CakePHP 2.x with CKEditor (version 4.1)
Download CKEditor and extract the files to app/webroot/js/ckeditor
Ending Form without a button in CakePHP
The FormHelper outputs a submit button when a string is supplied as the first parameter to
end().Hence if u want to end a form without a button, do as below:
<?php echo $this->Form->end(); ?>Wednesday, December 26, 2012
Setting year range of Date drop down in CakePHP 1.3
Setting range of year in Date drop down in CakePHP.
There may be situations where you need to change the default values displayed in the year dropdown of Date field. Use minYear, maxYear for specifying the range.
<?php
echo $this->Form->input('dob', array('minYear' => '1950','maxYear' => date('Y')-15));
?>
In the above example 'dob' is the field name.
Subscribe to:
Posts (Atom)