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 6595367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:55:53+00:00 2026-05-25T17:55:53+00:00

Initial Problem protected function _initMail() { $this->bootstrap(‘mail’); } in my Bootstrap.php Fails with a:

  • 0

Initial Problem
protected function _initMail()
{
$this->bootstrap(‘mail’);
}
in my Bootstrap.php
Fails with a:

Uncaught exception ‘Zend_Application_Bootstrap_Exception’ with message
‘Circular resource dependency detected’

Solution: Don’t call a Ressource within its own bootstrap method (e.g. mail => _initMail).

The Question: How to simplify setting up resources in the config to have less config code in the controller?

So far I get $bootstrap->getResource(‘mail’) to return something that looks like a bit like what I tried to achieve.
It returns an instance of Zend_Mail_Transport_Sendmail (nearly emtpy, without any attributes set).
The goal would be to have Zend_Mail::’s static properties to be set to the values defined in the config

This seems to be a general question about how to ACTUALLY bootstrap Zend resources, since no where is properly documentad how to bootstrap certain resources.
I simply followed the standard (and bootstrap view example).

My application.ini seems to be configured to handle the information needed for Mail configuration:

resources.view[] = 
autoloaderNamespaces[] = "ZSC_"
wall.upload = APPLICATION_PATH "/uploads"
wall.uploadTemporary = APPLICATION_PATH "/temp"

resources.mail.transport.type = sendmail
;resources.mail.transport.host = "smtp.udag.de"
;resources.mail.transport.auth = login
;resources.mail.transport.username = nix
;resources.mail.transport.password = nix
resources.mail.transport.register = true ; True by default

resources.mail.defaultFrom.email = "support@conexco.de"
resources.mail.defaultFrom.name = "Mr Conexco Support"
  • 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-05-25T17:55:53+00:00Added an answer on May 25, 2026 at 5:55 pm

    Actually, $this->bootstrap('mail'); is calling the _initMail() method. So, you have a method calling itself infinitely, that’s why you are getting the “Circular resource dependency” error message.

    The calls to the _initXXX() methods are already handled by $application->bootstrap() in your index.php file, you only need to use them explicitly if you have dependencies between methods (i.e., mail depending on something else).

    Hope that helps,

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

Sidebar

Related Questions

I'll like to combine both my initial problem which leads me to this one
[Update]: my initial example doesn't reflect my problem. Updated the sample, hopfully it is
Additional questions regarding SilentGhost's initial answer to a problem I'm having parsing Twitter RSS
My problem is like this. I have a XMLUtility class public class XmlUtility {
While my initial problem counting the running number of rows in a table has
Basically, the initial problem is I need to make a boolean value serialize as
I find this as a funny little problem. I think the reason lies behind
This problem has been bugging me for the last week or so and now
Initial Problem I was using yaml_db in a Rails project, but it seems the
I'm having this wierd problem with HttpClient on Android. If I try to connect

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.