Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemorton committed Jan 1, 2011
1 parent e7a3356 commit dff908c
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
# Prophet for Kohana

Predicting views based on the controller and action for a
current request so you don't have to.

I created Prophet to provide an automatic way of initialising
views within my Kohana applications. Using the class of your
choice a view will be initialised and render as the request
response unless overridden. I have used Prophet personally
with Kohana Views and Kostache but it should work for any view
mechanism that has a factory method which parameter is a view
location path.
What can Prophet do for you?
- Automatic view loading (Kostache, Kohana Views, etc.)
- Error handling 404, 500 (inspired by Errorist)

## Usage

To start using prophet you don't need much, well theres 4
To start using prophet you don't need much, well theres first
installing Kohana and enabling the module in your bootstrap.php
file. After getting thus far you need to extend the
Prophet_Controller in your own Controllers. Take this example:
Controller or Prophet_Controller in your own Controllers. Take
this example:

class Controller_Blog extends Prophet_Controller {
class Controller_Blog extends Controller {
public function action_index() {}
Expand All @@ -33,7 +27,7 @@ specified.
In order to use Kostache instead of the default Kohana views
simply define the class in your controller:

class Controller_Blog extends Prophet_Controller {
class Controller_Blog extends Controller {
public $view_class = 'Kostache';
Expand Down

0 comments on commit dff908c

Please sign in to comment.