start to create install template

This commit is contained in:
Manuel Raynaud
2013-09-02 17:27:11 +02:00
parent 347d3050f3
commit 384b0cd355
5 changed files with 48 additions and 3 deletions

View File

@@ -41,17 +41,17 @@ class BaseInstallController extends BaseController
$parser = $this->container->get("thelia.parser");
// Define the template thant shoud be used
$parser->setTemplate("install/default");
$parser->setTemplate("install");
return $parser;
}
public function render($templateName, $args)
public function render($templateName, $args = array())
{
return new Response($this->renderRaw($templateName, $args));
}
public function renderRaw($templateName, $args)
public function renderRaw($templateName, $args = array())
{
$data = $this->getParser()->render($templateName, $args);

View File

@@ -31,4 +31,8 @@ use Thelia\Install\BaseInstall;
*/
class InstallController extends BaseInstallController {
public function index()
{
$this->render("index.html");
}
}