<?php
class Ec_Controller_FrontAction extends Zend_Controller_Action
{
	
	public function init()
	{
		parent::init();		
		$this->view = Zend_Registry::get('EcView');
		
		$this->module = strtolower(str_replace('-', '', $this->_request->getModuleName()));
		$this->controller = strtolower(str_replace('-', '', $this->_request->getControllerName()));
		$this->action = strtolower(str_replace('-', '', $this->_request->getActionName()));
        $this->customerAuth = new Zend_Session_Namespace("customerAuth");
// 		var_dump(in_array($this->module,array("merchant")) && !in_array($this->controller,array("index")));exit;
	}
	
   
    //当不存在的方法时调用
    public function __call($methodName, $args)
    {
        $this->_forward('error','error','default');
    }
}
