Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php defined('SYSPATH') or die('No direct script access.');
- class Controller_Welcome extends Controller {
- public function action_index()
- {
- // Load the view as an object
- $view = new View('welcome');
- // Adding variables to the object that will be displayed in the view
- $view->title = "Welcome to Kohana !";
- $view->heading = "My Heading";
- $view->content = "My content here.";
- // Render the view
- $view->render(TRUE);
- }
- } // End Welcome
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement