Authored by whb

测试

... ... @@ -158,6 +158,14 @@ class Controller_Onlinereg extends Controller_Abstract
}
public function setcodeAction()
{
$g = trim($this->_request->query('g'));
$namespace = !empty($g) ? $g : 'passport_istration';
Util_Captcha::setToSession($namespace,'123');
// echo strtolower(Util_Captcha::getFromSession($namespace));
}
public function getcodeAction()
{
$g = trim($this->_request->query('g'));
... ...
... ... @@ -32,6 +32,6 @@ include($config['Framework_Dir'] . '/Y.class.php');
// 实例化APP应用
$y = Framework_Y::instance($config);
//设置保存session
Util_Session::setSaveHandler ( new Util_Common_Session () );
// Util_Session::setSaveHandler ( new Util_Common_Session () );
// 执行请求派遣
$y->dispatch();
... ...