Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8296299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:56:19+00:00 2026-06-08T14:56:19+00:00

I currently have the following setup in my module. public function onBootstrap( EventInterface $e

  • 0

I currently have the following setup in my module.

public function onBootstrap( EventInterface $e )
   {

      // You may not need to do this if you're doing it elsewhere in your
      // application
      $eventManager   = $e->getApplication()->getEventManager();

      $serviceManager = $e->getApplication()->getServiceManager();

      $moduleRouteListener = new ModuleRouteListener();
      $moduleRouteListener->attach( $eventManager );

      //TODO think about moving this to somewhere more appropriate
      $renderer = $serviceManager->get( 'Zend\View\Renderer\PhpRenderer' );
      $renderer->headTitle( 'uDare' )->setSeparator( ' - ' );

   }

Is there a better way to do this or some other event that I should attach to?

I ask this because I’m hitting a problem when trying to use the Doctrine2ORMModule.

When I access the web page on my localhost all works fine. But when I run

./vendor/bin/doctrine-module --verbose 

on the command line I get an error saying the following

PHP Fatal error:  Uncaught exception 'Zend\ServiceManager\Exception\ServiceNotFoundException' 
with message 'Zend\ServiceManager\ServiceManager::get was unable to 
fetch or create an instance for Zend\View\Renderer\PhpRenderer' 
in /Library/WebServer/Documents/udare/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:407
Stack trace:
#0 /Library/WebServer/Documents/udare/modules/Web/Module.php(56): Zend\ServiceManager\ServiceManager->get('Zend\View\Rende...')
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T14:56:21+00:00Added an answer on June 8, 2026 at 2:56 pm

    A good place for this probably would be in your layout.phtml.

    If you need it to be configurable you could

    1. Put it in your layout.phtml
    2. Write your own view-helper acting as an adapter to this one
    3. creating a custom factory for the headTitle view helper
    4. wait until all view helpers are configurable by the service-manager – not only some of them. Have a look at Zend\Mvc\Service\ViewHelperManagerFactory to get an idea about this.

    I haven’t tested 3. & 4. – I prefer 1. as this is a view/phprenderer specific issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing some testing with WCF and we currently have the following Server setup
I currently have the following row in my table: course_data: user_id days <-- This
I have currently the following setup: An object graph of all requests read from
I have the following jsfiddle setup: http://jsfiddle.net/zZDqH/ Currently it is just a button that
I have the following setup: SD card Mount Receiver (MountReceiver.java) public IntentFilter getIntentFilter() {
Currently I have the following fulltext index setup: fulltext on: Number - Name -
I've recently started using ctags on my projects. I currently have the following setup:
Currently I have following XML: <Rowsets> <Rowset> <Row> <DrilldownDepth>0</DrilldownDepth> <ScheduleWeek>---</ScheduleWeek> <ABC>---</ABC> <PQR>1500</PQR> <XYZ>15000</XYZ> <Quant>285</Quant>
I currently have the following controller method in a Rails app: def index @entries
I currently have the following SQL query that lists all the names of all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.