initial commit

This commit is contained in:
logsol 2011-04-08 03:27:38 +12:00
commit f2ff442d8a
21 changed files with 1559 additions and 0 deletions

View file

@ -0,0 +1,44 @@
<?php
/**
* Example Controller
* By specifying controllers you arrange the different parts of your application
* into groups of methods called actions
*
* @author Karl Pannek <info@katharsis.in>
* @version 0.5.2
* @package Katharsis
*/
class IndexController extends Katharsis_Controller_Abstract
{
/**
* Controller init method, will be called on any action request,
* before action method is called
*
* @return void
*/
public function init()
{
}
/**
* Action method, call url: /controller/action
*
* @return void
*/
public function indexAction()
{
$this->_view->someVariableName = 'Katharsis';
echo $this->_view->render('welcome');
}
/**
* Fallback method, will be called, if requested action doesn't exist
*
* @param string $name
* @param array $args
* @return void
*/
public function __call($name, $args)
{
}
}

View file

@ -0,0 +1,23 @@
<?php
/**
* Example Model
* Use models do define an interface
* between data holders and your application. You can implement your
* business logic in model classes as well.
*
* @author Karl Pannek <info@katharsis.in>
* @version 0.5.2
* @package Katharsis
*/
class Example extends Katharsis_Model_Abstract
{
/**
* Init method, will be called when this class is instanced
* Use this method instead of __construct()
*
* @return void
*/
public function init()
{
}
}

View file

@ -0,0 +1,12 @@
<html>
<head>
<title></title>
<link href="<?=$this->base?>/style/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Welcome</h1>
<p>
This is an empty <?=$this->someVariableName?> project.
</p>
</body>
</html>