19 lines
253 B
PHP
Executable file
19 lines
253 B
PHP
Executable file
<?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';
|
|
}
|
|
} |