Hi guys!
This is my first post in the forum.
First, congratulations to Phalcom Team by this fast and promising framework, we are testing this excellent work for our future applications.
I have a doubt... (well...a lot of them :) ) about the label of items forms.
It's possible set the label using the constructor class??, I mean:
$form = new Form(); $form ->add(new Text('name_in_database', array( 'maxlength' => 255, 'placeholder' => 'Write your name, please', 'required' => 'required', 'label' => Name )));
Because, that not work. I must set the label in this way:
$form = new Form(); $form ->add(new Text('name_in_database', array( 'maxlength' => 255, 'placeholder' => 'Write your name, please', 'required' => 'required' ))); $form ->get('name_in_database')->setLabel('Name');
That works.
Thanks very much!