hello all,

i'm currently working on a new sf project and would like to have the
form helper automatically generate a new parameter for class that is
defined by input type, as I have a large data set and doing so by
hand  would be time consuming and difficult.  Looking though the
symfony helper code, one of the functions I would like to overload is
input_tag, where the code existing is:

function input_tag($name, $value = null, $options = array())
{
  return tag('input', array_merge(array('type' => 'text', 'name' =>
$name, 'id' => get_id_from_name($name, $value), 'value' => $value),
_convert_options($options)));
}

I know I could write something along the lines of

function input_tag($name, $value = null, $options = array())
{
  $options['class'] = "inputbox";
  return tag('input', array_merge(array('type' => 'text', 'name' =>
$name, 'id' => get_id_from_name($name, $value), 'value' => $value),
_convert_options($options)));
}

and that would handle the change without having to modify the
scaffolding files generated.  I know this  breaks the concept though.
Is there a place where a modification like this _should_ go?  I don't
want to go modifying the actual symfony project files themselves if I
can help it.

Thanks,
Shannon


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to