Welcome Guest, Not a member yet? Register   Sign In
Form Helper: input image
#2

[eluser]j√°quer[/eluser]
I did come in looking for just this, but I believe your code got cut off. It's supposed to be:

Code:
function form_img($data = '', $src = '', $extra = '')
{
  $defaults = array('type' => 'image', 'name' => (( ! is_array($data)) ? $data : ''), 'src' => $src);

  return "<input "._parse_form_attributes($data, $defaults).$extra." />";
}

And to help people that don't know how to apply this, you have to create an "application/helpers/MY_form_helper.php" with the above code.


Messages In This Thread
Form Helper: input image - by El Forum - 03-19-2010, 02:14 AM
Form Helper: input image - by El Forum - 03-23-2010, 12:45 AM
Form Helper: input image - by El Forum - 03-23-2010, 01:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB