Authored by hf

do register page

... ... @@ -9,11 +9,11 @@
* @version 1.0 (2015-9-15 11:55:25)
* @author fei.hong <fei.hong@yoho.cn>
*/
namespace Action;
use Yaf\Controller_Abstract;
use Yaf\Dispatcher;
use Hood\Cache;
class AbstractAction extends Controller_Abstract
... ... @@ -67,9 +67,12 @@ class AbstractAction extends Controller_Abstract
*/
protected function memcache($node = null, $childNode = 'hosts')
{
// WINDOWS
if (PATH_SEPARATOR === '\\') {
return Cache::memcache($node, $childNode);
} else {
}
// LINUX
else {
return Cache::memcached($node, $childNode);
}
}
... ... @@ -92,8 +95,8 @@ class AbstractAction extends Controller_Abstract
protected function echoJson($json)
{
headers_sent() || header('Content-Type: application/json; charset=utf-8;');
if(is_array($json))
{
if (is_array($json)) {
$json = json_encode($json);
}
... ...