Showing posts with label CakePHP. Show all posts
Showing posts with label CakePHP. Show all posts
Monday, November 21, 2011
Setting year range of Date drop down in CakePHP
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.
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.
Thursday, November 10, 2011
CakePHP 2.0.2
CakePHP 2.0.2 stable version has been released very quickly after the release of version 2.0.
A fix for a regression was introduced in 2.0.1 and then soon 2.0.2 version was released after fixing the bug that was introduced in the 2.0.1 version, regarding the calculation of Content Length header.
Quick Look on the new features introduced in CakePHP 2.0:
1. Dropped PHP 4 support. Have efactored all the code to be strictly compliant with PHP 5.2+
2. HTML 5 form inputs support in form helper.
3. Default look taked the advantage of new CSS 3 features.
4. Now you can more easily protect your apps against Cross Site Request Forgery and form tampering attacks.
5. Completely refactored Auth system. It is now easier to configure and plug in our own implementations for external login services or our permissions system.
6. Support for injecting our own objects to act as CakePHP libraries, such as component, helpers and behaviors, no more excuses for modifying core files.
7.New Error and Exception handlers provide easier to configure.
8. Version already comes with a complete working ecosystem of well known and new plugins: DebugKit, AclExtras, MongoDb, MongoCake etc.
Hats off to the developers...
To know more details CLICK HERE
QuickApps CMS
QuickApps CMS is a free open source Content Management System built with CakePHP v2.0 MVC framework. It has many features of Drupal like modularization, node architecture, Content Types system creation etc. It can handle simple static websites.
For demo
http://demo.quickapps.es/admin
user: admin
password: demo123
Official Site
http://cms.quickapps.es/
Subscribe to:
Posts (Atom)