Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #313 from pine3ree/ent-substitute
ENT_SUBSTITUTE is defined since php 5.4
- Loading branch information
8864ae5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sugestão:
Linha 196
public function layout($name, array $data = array())
{
$this->layoutName = $name;
$this->layoutData = array_merge($this->data, $data);
}
Isso facilita a vida quando usamos o layout("template::site"); ?>
Se tivermos declarado algum $data quando usamos o render() no controlador, isso mescla o data e resolve. Ou faz merge, ou cria um outro método, por favor...