1
Wir verwenden:
- Zend_Controller_Front
- kein Zend_Application
- kein Zend_Application_BootstrapLast application.ini
Wir wollen application.ini verwenden.
require_once("Zend/Controller/Front.php");
class Forum4Php_Bootstrap {
protected $_dispatcher;
public function __construct() {
$this->_dispatcher = Zend_Controller_Front::getInstance();
}
public function runApp() {
$this->_dispatcher->addModuleDirectory(FORUM_FOR_PHP_ROOT_DIR."/application/modules");
$this->_dispatcher->dispatch();
}
}
Gibt es einen Weg?
Wenn ich db Verbindung config in application.ini haben, wird es die Datenbankverbindung machen? –
Nicht, wenn Sie nicht Zend_Application und das Db-Modul verwenden. Scheint so, als ob du einen benutzerdefinierten Bootstrap erstellst, also musst du einen Db Adapter manuell erstellen. – typeoneerror