Hugilore111
Member
Hello
from what class inherit a class
I inherit from a class forum
but comes Null
Then insert into a template forum_list where I want to show off your property
and I receive Null
If you insert a different location, the property is shown
but I should like the picture
from what class inherit a class
I inherit from a class forum
but comes Null
Code:
<?php
class MyClass_ForumMyclass_ControllerPublic_MyIndex extends XFCP_MyClass_ForumMyclass_ControllerPublic_MyIndex
{
public function actionIndex()
{
$parent =parent::actionIndex();
////my code
$viewParams = array(
'monster' => $monster,
);
$parent->params += $viewParams;
return $parent;
}
}
Then insert into a template forum_list where I want to show off your property
Code:
{xen:helper dump,$monster}
and I receive Null
If you insert a different location, the property is shown
but I should like the picture