codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php class Controller_A11n extends Controller { protected $a11n; function before() { $this->a11n = Model::factory( 'A11n' ); } function action_sign_in() { $this->a11n->sign_in( $_POST['username'], $_POST['password'] ); } function action_sign_up() { $this->a11n->sign_up( $_POST['username'], $_POST['password'], $_POST['email'] ); $this->request->redirect( 'pages/index' ); } }
Private
[
?
]
Run code
Submit