Kohana v3.3.2
This commit is contained in:
@@ -128,7 +128,7 @@ A user login action.
|
||||
// Try to login
|
||||
if (Auth::instance()->login($this->request->post('username'), $this->request->post('password')))
|
||||
{
|
||||
$this->redirect('home', 302);
|
||||
$this->redirect('home', 303);
|
||||
}
|
||||
|
||||
$view->errors = 'Invalid email or password';
|
||||
|
@@ -126,9 +126,9 @@ You can also assign a variable of your parent view to be the child view from wit
|
||||
|
||||
// In your controller:
|
||||
|
||||
public functin action_index()
|
||||
public function action_index()
|
||||
{
|
||||
$view = View::factory('common/template);
|
||||
$view = View::factory('common/template');
|
||||
|
||||
$view->title = "Some title";
|
||||
$view->body = View::factory('pages/foobar');
|
||||
|
Reference in New Issue
Block a user