In my app I have two diverse Bundles, BaseBundle
and UserBundle
.
When I'm in one of the controllers of UserBundle
, how can I access the functions available in BaseBundle
?
I'm in UserBundle
and I'm trying to do something like:
$property['x'] = $this->calculateNumber(array($propertyX->indexX, $propertyY->indexY));
This is the error I get:
Attempted to call method "calculateNumber" on class "Example\UserBundle\Controller\DefaultController".
500 Internal Server Error - UndefinedMethodException