Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use System\GF_Router;
- /*
- * Contoh menggunakan Controller
- * Gunakan halaman controller ini untuk membuat session dan cookie user
- * dan selalu gunakan extends GF_Router
- */
- class User_Controller extends GF_Router
- {
- public function checkLogin()
- {
- // check session username
- if (_checkSession('username'))
- {
- // jika ada, maka alihkan ke view welcome
- self::setView("welcome");
- exit;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement