25 lines
676 B
PHP
Executable File
25 lines
676 B
PHP
Executable File
<?php
|
|
namespace Rails\ActionController\Response;
|
|
|
|
use Rails\ActionView;
|
|
|
|
# TODO
|
|
class Lambda extends Base
|
|
{
|
|
private $_template;
|
|
|
|
public function _render_view()
|
|
{
|
|
# Include helpers.
|
|
ActionView\ViewHelpers::load();
|
|
$layout = !empty($this->_params['layout']) ? $this->_params['layout'] : false;
|
|
$this->_template = new ActionView\Template(['lambda' => $this->_params['lambda']], ['layout' => $layout]);
|
|
$this->_template->setLocals(\Rails::application()->controller()->locals());
|
|
$this->_template->renderContent();
|
|
}
|
|
|
|
public function _print_view()
|
|
{
|
|
return $this->_template->content();
|
|
}
|
|
} |