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:
parent
cc45c499ed
commit
ec03b7b2f8
|
|
@ -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 ::
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue