Kommentarsfixar, påbörjad bootstrap och inloggning
This commit is contained in:
parent
f0198ab85b
commit
11d3a3d6e3
4 changed files with 44 additions and 5 deletions
|
|
@ -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!
|
||||
}
|
||||
}
|
||||
27
application/modules/default/controllers/AuthController.php
Normal file
27
application/modules/default/controllers/AuthController.php
Normal 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!
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -4,8 +4,7 @@ class IndexController extends Zend_Controller_Action
|
|||
{
|
||||
public function indexAction()
|
||||
{
|
||||
echo 'indexAction()';
|
||||
// Here be dragons
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -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'
|
||||
|
|
|
|||
Reference in a new issue