zend framework - How to solve this error in pimcore CMS -
fatal error: call member function getgoals() on non-object
controller:
{ $newslist = new object\homepage\listing(); }
view:
{<?= homepage->getgoals(); ?>}
i guess doing wrong way, because don't understand fundamental of mvc. believe doon't want list of homepage objects.
there several ways check code: 1. sure have object field "goals" 2. use documentation list of objects
for example.
controller:
// list of news objects $newslist = new object\news\listing(); $this->view->news = $newslist ;
view:
<?=$this->news->getname()?>
or
<?=$this->news->getgoal()?>
if create field.
Comments
Post a Comment