mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
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)
|
public function renderPartial($name, $parameters = [], $throwException = true)
|
||||||
{
|
{
|
||||||
$vars = $this->vars;
|
$vars = $this->vars;
|
||||||
|
$this->vars = array_merge($this->vars, $parameters);
|
||||||
/*
|
/*
|
||||||
* Alias @ symbol for ::
|
* Alias @ symbol for ::
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user