Authored by ziy

fix action 修改部分方法

... ... @@ -59,7 +59,7 @@ class Action extends Controller_Abstract
* Title
* @return \Hood\Helper\View\Title
*/
public function _headTitle($title = null)
public function _headTitle($title)
{
if (empty($this->_headTitle)) {
$this->_headTitle = new hoodView\Title();
... ... @@ -93,9 +93,8 @@ class Action extends Controller_Abstract
* refresh跳转
* @param $url
* @param string $message
* @param int $content
*/
protected function helpRefresh($url, $message = '', $content = 0)
protected function helpRefresh($url, $message = '')
{
$html = '';
if (!empty($message)) {
... ... @@ -131,7 +130,7 @@ class Action extends Controller_Abstract
* @param Integer $code
* @param mixed $content
*/
protected function helpJson($data = null)
protected function helpJson($data)
{
header('Content-type: application/json');
echo json_encode($data);
... ...