Pop\Form\Element::output PHP Method

output() public method

Method to render the child and its child nodes.
public output ( ) : string
return string
    public function output()
    {
        echo $this->render();
    }

Usage Example

コード例 #1
0
ファイル: ElementTest.php プロジェクト: nicksagona/PopPHP
 public function testRender()
 {
     $e = new Element('text', 'email');
     $element = $e->render(true);
     $e->setErrorPre(true);
     $element = $e->render(true);
     ob_start();
     $e->output();
     $output = ob_get_clean();
     $this->assertContains('<input', $element);
     $this->assertContains('<input', $output);
 }
All Usage Examples Of Pop\Form\Element::output