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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:27:59+00:00 2026-05-31T10:27:59+00:00

Hi all I have a quick question about the construction of objects in PHP.

  • 0

Hi all I have a quick question about the construction of objects in PHP. I’m currently using the Zend framework to make a small test application to familiarize myself with the Zend way of doing things. However I have come across an error that is unfamiliar to me. In my controller I create the object $student like so:

$student = new Application_Model_Student();

However doing this causes my page to dump a 500 error and no debugging output. My constructor for this model doesn’t actually do anything but print “Hello Creation” out. Here’s my code for the model:

<?php

class Application_Model_Student
{

    protected $_lastName;
    protected $_firstName;
    protected $_email;
    protected $_concentration;
    protected $_yearEntered;

    public function __construct()
    {
          print "Hello Creation";
    }

}
?>

Is there something wrong with my constructor? Or something in the way that I call it?

  • 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-31T10:28:00+00:00Added an answer on May 31, 2026 at 10:28 am

    Ensure that you have set you APPLICATION_ENV to 'development' so that you can see the error message.

    If you still get a white screen, then there’s a syntax error in code before this file. turn on error_reporting and error_logging in your php.ini file and look in the error log file created.

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

Sidebar

Related Questions

I have a quick question about using logical operators in an if statement. Currently
Folks, I had a quick question about Amazon EC2, I have been recently using
A quick question about best practice with PHP classes. I have seen people use
I have quick question about jQuery plugins, hope somebody out there has some advice.
Have a quick question about what would be the best way to implement iterators
I have a quick question about adding Zend_Dojo_Form into Zend_layouts. I have a Zend_Dojo_Form
I just have a quick question about how to generate id's on-the-fly for HTML
Hey all, quick question about Silverlight Resource Dictionaries. So in resource dictionary number 1,
I still have a question about Enumerations. Here's a quick sketch of the situation.
Quick question about cursors (in particular Oracle cursors). Let's say I have a table

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.