#6328: $Form Helper Documentation Update
--------------------------+-------------------------------------------------
    Reporter:  mrkevans   |          Type:  Bug          
      Status:  new        |      Priority:  Low          
   Milestone:  1.2.x.x    |     Component:  Documentation
     Version:  1.2 Final  |      Severity:  Normal       
    Keywords:             |   Php_version:  n/a          
Cake_version:             |  
--------------------------+-------------------------------------------------
 == Problem: ==
 '''I was trying to use'''
 {{{
 $form->input("birthdate", array("timeFormat"=>"NONE",
 "attributes"=>array("minYear"=>"1900")));

 }}}

 Attempting to disable the time select boxes and also to start the year at
 1900.

 Specifying
 {{{
 "timeFormat"=>"NONE"
 }}}
  worked.
 Specifying
 {{{
 "attributes"=>array("minYear"=>"1900")
 }}}
  did not.


 == Solution: ==

 Specify
 {{{
 "minYear"=>"1900"
 }}}
  without the "attributes" array.


 == Issue: ==

 Why would i assume that all the associative array elements of the
 attributes parameter in the dateTime() functions could now be directly
 accessed as individual options to be passed to the input() options
 parameter array?

 I think it would be helpful to indicate in the input function doc, that
 any of the parameters for the functions that input wraps, and all of those
 parameters subsequent associative array elements should/can be directly
 passed as an associative element in the options parameter array of the
 input() func.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/6328>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

  • [CakePHP : The Rapid Dev... CakePHP : The Rapid Development Framework for PHP

Reply via email to