Example #1
0
 /**
  * Prints out the current tag
  *
  * @return string An input file tag
  */
 public function render()
 {
     // Maximum file size
     $hidden = $this->maxSize ? HtmlInput::hidden('MAX_FILE_SIZE', $this->maxSize) : null;
     return parent::render() . $hidden;
 }
Example #2
0
 public function testCanUseXhtmlStandards()
 {
     Tag::$config['doctype'] = 'xhtml';
     $field = Input::hidden('foo', 'bar');
     $this->assertContains(' />', $field->render());
 }