Permalink
Browse files

Updated readme

  • Loading branch information...
1 parent e7a3356 commit dff908cbe5f752b75c1b6d2c8c5bd76efdafb746 @lukemorton committed Jan 1, 2011
Showing with 8 additions and 14 deletions.
  1. +8 −14 README.markdown
View
@@ -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() {}
@@ -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';

0 comments on commit dff908c

Please sign in to comment.