Hi There, I am trying to create my own input so I can use some of my own custom controls, i.e. a date picker. I've got this in my MyFormHelper.php.
class MyFormHelper extends Helper{
public function myInput($fieldName, $options = array()) {
$this->setEntity($fieldName);
and the rest of the function is a direct copy from the Forms helper input
code.
I can use this in my view, like echo $this->Form->myInput('field'); and I
don't get an error. But I get a text box, all by its lonesome. No label
with it. See attached image.
I assume I'm missing something in my function or I need additional
functions. I was thinking of copying the entire formhelper class into my
own, but don't want to go over board.
Thanks - David
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php
<<attachment: ScreenShot325.jpg>>
