This is a problem that I cannot figure out after hours of googling, the Zend Framework documentation didn’t explain what i needed to know.
I have a file: /application/controllers/RegisterController.php
class RegisterController extends Zend_Controller_Action
{
}
How do I point this file to use classes from: /application/models/User.php
class Application_Model_User
{
}
The code works great when the file is named Register.php
What configurations do i need to make to point a controller to a specific model?
In your bootstrap, you can start by declaring your namespace:
Your model: /application/models/User.php
Then in you controller: /application/controllers/RegisterController.php