<?php

class Ec_Controller_Action extends Zend_Controller_Action
{
    protected	$_customerAuth	= '';

    public function init()
    {
    	//$sessionId			= $this->getRequest()->getParam('session');
		//if (!empty($sessionId)) {
		//	Zend_Session::setId($sessionId);
		//}
    	$phpSessId = $this->getRequest()->getParam('PHPSESSID');
    	if (!empty($phpSessId)) {
    		Zend_Session::setId($phpSessId);
    	}
    	Service_Login::isLogin();
    	$this->view			= Zend_Registry::get('EcView');
        $this->_customerAuth= Service_Login::getLoginInfo();
    }

    //当不存在的方法时调用
    public function __call($methodName, $args)
    {
        $this->_forward('error', 'error', 'default');
    }

}