18 lines
288 B
PHP
Executable file
18 lines
288 B
PHP
Executable file
<?php
|
|
|
|
namespace b8\Form\Element;
|
|
use b8\View;
|
|
|
|
class Url extends Text
|
|
{
|
|
public function render($viewFile = null)
|
|
{
|
|
return parent::render(($viewFile ? $viewFile : 'Text'));
|
|
}
|
|
|
|
protected function _onPreRender(View &$view)
|
|
{
|
|
parent::_onPreRender($view);
|
|
$view->type = 'url';
|
|
}
|
|
} |