20 lines
286 B
PHP
20 lines
286 B
PHP
<?php
|
|
|
|
namespace PHPCensor\Form\Element;
|
|
|
|
use PHPCensor\Form\Input;
|
|
use PHPCensor\View;
|
|
|
|
class Text extends Input
|
|
{
|
|
/**
|
|
* @param View $view
|
|
*/
|
|
protected function onPreRender(View &$view)
|
|
{
|
|
parent::onPreRender($view);
|
|
|
|
$view->type = 'text';
|
|
}
|
|
}
|