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?