Hello,
For studying, I have started to work on a project which uses ZFramework.. I have set up the files and started the user registration.. Some of my doubts on this sections are:
1. Where will I write the common functions for the project ? (such as functions.php )
2. I have created a Model for some common functions and tried to call it from Controller But it returns a fatal error. The code is:
$functions = new Livefunctions();
$this->view->days = $functions->getDays();
The class "Livefunctions is available in the path:
application/models/Livefunctions.php
Code:
class Livefunctions extends Zend_Db_Table_Abstract
{
public function getDays($month='', $year='')
{
}
}
Error is:
Fatal error: Class 'Livefunctions' not found in D:\xampp\htdocs\live\application\controllers\IndexController.php on line 10