Reputation: 59
I am new to symfony, I want to run one already built project to localhost, so I put source code into localhost folder. But still getting error as follow:
Notice: Undefined variable: categorys in /opt/lampp/htdocs/haute-master/apps/admin/modules/category/templates/indexSuccess.php on line 12
Warning: Invalid argument supplied for foreach() in /opt/lampp/htdocs/haute-master/apps/admin/modules/category/templates/indexSuccess.php on line 12
Code at 12th line:
foreach ($categorys as $category):
Upvotes: 0
Views: 184
Reputation: 10890
Your template know nothing about $categorys
variable. Check your apps/admin/modules/category/actions/actions.class.php
, look for action which is run in this case and search for $this->categorys
because this is apparently missing
Upvotes: 1