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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:34:42+00:00 2026-05-22T18:34:42+00:00

since I am using the ZendFramework again, I started to "extend" the QuickStart application.

  • 0

since I am using the ZendFramework again, I started to "extend" the QuickStart application.
I use the ZendX jQuery component as View Helper.
I have one Controller MonsterController this has two actions besides indexAction:

addAction

attackAction

Both take params via _getParam($param, $default).
An example query for addAction would be /monster/add/dragon/health/100/attackDamage/23.
attackAction just takes an Id.

The actual problem is, that if I call any of them I get an "Application Error".
There is no stack trace or anything else than a plain page with "Application Error".
Which should not happen.

The interesting thing is that, addAction actually perfoms an action adding the desired monster to the db, but attackAction just does nothing.

public function attackAction()
{
    $id = $this->_getParam("id", null);
    $mapper = new Application_Model_MonsterMapper();
    $monster = new Application_Model_Monster(array("Id" => $id, "health" => 1));
    $mapper->save($monster);
}

public function addAction()
{
    $monster = new Application_Model_Monster();
    $monster->setName($this->_getParam("name", ""))
            ->setHealth($this->_getParam("health", 0))
            ->setAttackDamage($this->_getParam("attackDamage", 0));
    $mapper = new Application_Model_MonsterMapper();
    $mapper->save($monster);
}

public function save(Application_Model_Monster $model)
{
    $data = array(
            'name' => $model->getName(),
            'health' => $model->getHealth(),
            'attackDamage' => $model->getAttackDamage()
                    );
    if (null === ($id = $model->getId())) {
        unset($data['id']);
        $this->getDbTable()->insert($data);
    } else {
        $this->getDbTable()->update($data, array('id = ?' => $id));
    }
}
  • 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-22T18:34:43+00:00Added an answer on May 22, 2026 at 6:34 pm

    Go to application\configs and you’ll see there interesting file:

    application.ini
    

    Ctrl+F in it by “error” and you understand what to do next.

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

Sidebar

Related Questions

Ever since I started using .NET, I've just been creating Helper classes or Partial
Since I have started using this site, I keep hearing about the Boost library.
Since I've started using NetBeans, I've learned of some powerful ways to abstract away
I'm using ADO.NET dataservices in a Silverlight application and since the silverlight libraries don't
I've been using Winforms since .NET 1.1 and I want to start learning WPF.
We are team of few Delphi developers who have been using VSS since years
I was using an mxml class but since i need to pass some properties
I´m using Transaction Binding=Explicit Unbind in the connection string as recommended here since I´m
I've been using usenet searches since about 1995 to get programming information, mostly for
Ever since the publication of Enterprise Integration Patterns people have been using the notation

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.