Open
Description
when i try use twig in my project i get problem with render diffrent action
- try
loader engine
'.twig' => function($view, $di) {
@mkdir(APP_PATH . '/cache/twig/' . APP_ENV);
$options = array();
// if (APP_ENV == 'prod')
// $options = array('cache' => APP_PATH . '/cache/twig/' . APP_ENV );
return new TwigEngine($view, $di, $options);
}
main view path: view/admin/index.php
<div class="container">
{% block content %}{% endblock %}
</div>
action view path: view/admin/login/index.php
{% extends "index.twig" %}
{% block content %}
test
{{ form() }}
{{ form.render('logon') }}
{{ endForm() }}
{% endblock %}
on this try nothing render null
try second a change only the main view
<div class="container">
{{ content() }}
</div>
this try end render but only text input was render by a string not as it should
a that moment i try use a stadard volt