If you use the function __construct() in your classes you must call parent::__construct();
Fix those errors and see what happens
--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/
On 5/3/06, Michael Yevdokimov <[EMAIL PROTECTED]> wrote:
Controller events_controller.php looks like:
class EventsController extends AppController
{
var $name = 'Events';
var $uses = array('event');
function __construct()
{
$this->pageTitle = "Events";
$this->viewPath = 'events';
}
function index()
{
$this->render('index');
}
}
Model event.php looks like:
class Event extends AppModel
{
var $name = 'Event';
function __construct()
{
//
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---