Archived
1
0
Fork 0

Kommentarsfixar, påbörjad bootstrap och inloggning

This commit is contained in:
Fredric N 2010-08-02 18:37:36 +02:00
parent f0198ab85b
commit 11d3a3d6e3
4 changed files with 44 additions and 5 deletions

View file

@ -11,7 +11,12 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
*/
protected function _initView()
{
// We really should add something here ?
$view = new Zend_View();
$view->setEncoding('UTF-8');
return $view;
}
/**
@ -27,4 +32,12 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
}
/**
* Setup a sweet and simple database
* connection
*/
protected function _initDatabase()
{
// Oh, my!
}
}

View file

@ -0,0 +1,27 @@
<?php
/**
* Description of AuthController
*
*/
class AuthController extends Zend_Controller_Action
{
/**
* Let the user connect with a world of
* possibilities
*/
public function loginAction()
{
// Do authentication magic
}
/**
* This baby makes sure the user is
* no longer connected to the site
*/
public function logoutAction()
{
// Destroy the magic!
}
}

View file

@ -4,8 +4,7 @@ class IndexController extends Zend_Controller_Action
{
public function indexAction()
{
echo 'indexAction()';
// Here be dragons
}
}
}

View file

@ -11,10 +11,10 @@ set_include_path(implode(PATH_SEPARATOR, array(
)));
/* Zend_Application */
// Zend_Application
require_once 'Zend/Application.php';
/* Create application, bootstrap, and run */
// Create application, bootstrap, and run
$application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . '/configs/application.ini'