Hey guys I’m new in Zend Framework.
I’m trying to create a connection and get the rows of a table, I make this in bootstrap.php
$this->bootstrap('db');
$m_routes = new Apartat() ;
It returns me this error: Fatal error: Class ‘Apartat’ not found in
I’m trying to follow ZF quickstart but I’m lost
-
I make models/Apartat.php
<?php class Application_Model_Apartat { protected $_comment; protected $_created; protected $_email; protected $_id; } -
I make models/ApartatMapper.php
<?php class Application_Model_ApartatMapper { } -
I make models/DbTabe/Apartat.php
<?php class Application_Model_DbTable_Guestbook extends Zend_Db_Table_Abstract { protected $_name = 'guestbook'; }
Previously I defined the connection parameters in application.ini
What else do I need? or what do I do wrong?
Your class name is
Application_Model_Apartatso you have to write