" The Zend Framework is designed on the principle that each class is stored as a separate file, where the filename reflects the classname."
If so I need to create php file for each table class that I use butin the tutorial they use all the table classes in the same script:
Zend Framework: Documentation
PHP Code:
Example 10.72. Declaring a table class with schema
<?php
// First alternative:
class Bugs extends Zend_Db_Table_Abstract
{
protected $_schema = 'bug_db';
protected $_name = 'bugs';
}
// Second alternative:
class Bugs extends Zend_Db_Table_Abstract
{
protected $_name = 'bug_db.bugs';
}
// If schemas are specified in both $_name and $_schema, the one
// specified in $_name takes precedence:
class Bugs extends Zend_Db_Table_Abstract
{
protected $_name = 'bug_db.bugs';
protected $_schema = 'ignored';
}
Where should I put the tables classes?
I see that there is a models directory in application, for what it use? where do I use it?