19 lines
253 B
PHP
19 lines
253 B
PHP
|
<?php
|
||
|
|
||
|
namespace b8\Form\Element;
|
||
|
use b8\Form\Input,
|
||
|
b8\View;
|
||
|
|
||
|
class Button extends Input
|
||
|
{
|
||
|
public function validate()
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
protected function _onPreRender(View &$view)
|
||
|
{
|
||
|
parent::_onPreRender($view);
|
||
|
$view->type = 'button';
|
||
|
}
|
||
|
}
|