<?php public static function login_validate() { $val = Validation::forge(); $val->add_field('email', 'Email','required'); $val->add_field('password', 'パスワード', 'required'); $email = Input::post('email'); $password = Input::post('password'); $val->add('dummy', 'dummy')->add_rule( function () use ($email, $password) { // login_validate if (!$email || !$password) { return true; } $user = Model_User::q