Why my latte templates in modules folder don't inherit generic @layout.latte?
- FeBus982
- Member | 6
Hello,
I have some problems with template and layout.
My directory structure is:
App
|--XxxModule
| |--presenters
| . |--templates
| . | |--Yyy
| . | . |--default.latte
| . |--YyyPresenter.php
|
|
|--presenters
|--templates
| |--@layout.latte
|
|--BasePresenter.php
If I create @layout.latte in directory XxxModule/presenters/templates it's used correctly, but the global one is completely ignored.
The old structure was working in nette 2.2 (with templates folder at same level of presenters folder) .
Did I miss something on migration instructions? I can't find anything about this…
Last edited by FeBus982 (2015-04-29 14:42)
- FeBus982
- Member | 6
Mo modifications :/
My BasePresenter
<?php
namespace App\Presenters;
use Nette;
/**
* Base presenter for all application presenters.
*/
abstract class BasePresenter extends Nette\Application\UI\Presenter
{
/**
* @var Nette\Database\Context
* @inject
*/
public $database;
}
Anyway thank you for info, I can debug a little knowing how nette search for layouts ;)
Last edited by FeBus982 (2015-04-30 09:06)