#6000: FormHelper
----------------------------------+-----------------------------------------
    Reporter:  oh4real            |         Owner:              
        Type:  Bug                |        Status:  closed      
    Priority:  Medium             |     Milestone:  1.2.x.x     
   Component:  Helpers            |       Version:  1.2 Final   
    Severity:  Normal             |    Resolution:  needmoreinfo
    Keywords:  form helper input  |   Php_version:  PHP 5       
Cake_version:  1.2.0.7962         |  
----------------------------------+-----------------------------------------
Comment (by oh4real):

 I've discovered the problem. It's from a change in
 cake/libs/view/helper.php and cake/libs/view/helpers/form.php code.  I
 downloaded the latest RC 1.2.1.8004 and still there, so I started
 following the error message in detail...
 [[BR]][[BR]]
 The error message I get when pointing my APP/webroot/index.php to the
 latest Cake 1.2 core vs. 1.2.0.7296 is:
 [[BR]]
 {{{
 Warning (512): Method FormHelper::__initInputField does not exist
 [CORE\cake\libs\view\helper.php, line 143]
 Helper::call__() - CORE\cake\libs\view\helper.php, line 143
 Overloadable::__call() - CORE\cake\libs\overloadable_php5.php, line 52
 FormHelper::__initInputField() - [internal], line ??
 FormHelper::hidden() - APP\views\helpers\form.php, line 948
 FormHelper::create() - APP\views\helpers\form.php, line 202
 include - APP\views\elements\checker_query.ctp, line 10
 }}}
 [[BR]]
 I didn't "see" it at first, but now I do. For some reason, as of 5 months
 ago, I had an APP\views\helpers\form.php. According to SVN I just added it
 - I have no idea why as it is identical to 7296's
 CORE\cake\libs\view\helpers\form.php. I may have dragged it as a
 'template' for a new helper I created.
 [[BR]][[BR]]
 Anyway, 7296's form.php calls the method
 {{{
 $this->__initInputField();
 }}}
 but in the RC2 && 1.2.1.8004 version, the CORE files listed above have
 {{{
 function _initInputField()
 }}}
 See the diff? I didn't, but now I do. If I change 8004's single underscore
 initInputField to double-underscore initInputField, all is right in the
 world again.  I plan to investigate (briefly) why I added my
 APP/*/form.php and then delete it. I notice y'all made the change at
 7623:7639.
 [[BR]]
 
[https://trac.cakephp.org/log/branches/1.2.x.x/cake/libs/view/helpers/form.php?rev=7639&stop_rev=7623]
 [[BR]][[BR]]
 Anyway, just wanted to update y'all in case it helps if anyone else has a
 ticket issue with Form inputs because they made a custom form.php.  I
 guess changes between single & double underscore can be pretty dramatic to
 customized stuff...
 [[BR]][[BR]]
 Keep up the good work,
 oh4real

-- 
Ticket URL: <https://trac.cakephp.org/ticket/6000#comment:4>
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to