Access paramater in onStart method in the partial

Variables passed in parameter partils not accessed in onStart method in the partial.

With merged vars before render partial, stays like this::

```php
function onStart() {
   $this['param'];
}
```
This commit is contained in:
Breno Douglas Araujo Souza 2016-02-17 12:51:49 -02:00 committed by Samuel Georges
parent cc45c499ed
commit ec03b7b2f8

View File

@ -753,7 +753,7 @@ class Controller
public function renderPartial($name, $parameters = [], $throwException = true)
{
$vars = $this->vars;
$this->vars = array_merge($this->vars, $parameters);
/*
* Alias @ symbol for ::
*/