First I tried:Fatal error: Uncaught exception 'Zend\View\Exception\RuntimeException' with message 'No base path provided' in \vendor\zendframework\zendframework\library\Zend\View\Helper\BasePath.php on line 38
Code: Select all
'service_manager' => array(
'invokables' => array(
'request' => 'Application\Http\Request',
),
),
Code: Select all
public function onBootstrap(MvcEvent $e)
{
$serviceManager = $e->getApplication()->getServiceManager();
$serviceManager->setAllowOverride(true)
->setInvokableClass('request', 'Application\Http\Request')
->setAllowOverride(false);
}
Would anyone please be kind enough to point me in the right direction?

I have already extended Zend\Http\Request with "getInstanceParam()" and "setInstanceParam()" functions and just wish to plug-it-in but I am open to alternative options.