Created
November 11, 2011 23:14
-
-
Save Javlopez/1359630 to your computer and use it in GitHub Desktop.
Backend_controller access: localhost/kohana1/ load by default
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') or die('No direct script access.'); | |
class Controller_Example extends Controller { | |
public function action_index() | |
{ | |
$view = View::factory("index") | |
->set("loginurl",Route::url('default',array('controller' => 'backend', 'action' => FALSE))); | |
$this->response->body($view); | |
} | |
} // End Welcome |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment