Archived
1
0
Fork 0
This repository has been archived on 2026-05-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
fiktivkod/application/Bootstrap.php

43 lines
No EOL
836 B
PHP

<?php
/**
* Bootstrap this shit
*/
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
/**
* Setup view object
*
* return Zend_View $view
*/
protected function _initView()
{
// We really should add something here ?
$view = new Zend_View();
$view->setEncoding('UTF-8');
return $view;
}
/**
* Configure the front controller
*/
protected function _initFront()
{
// Get front controller
$frontController = Zend_Controller_Front::getInstance();
// Set modules directory
$frontController->addModuleDirectory(APPLICATION_PATH . '/modules');
}
/**
* Setup a sweet and simple database
* connection
*/
protected function _initDatabase()
{
// Oh, my!
}
}