<?php
class Default_LoadjsController extends Zend_Controller_Action{
	public function init()
	{
		$this->view = Zend_Registry::get('EcView');
	}
	
	public function preDispatch()
	{
		$this->tplDirectory = "default/views/js/";
	}
	public function loadjsAction(){
		$jsName = $this->_request->getParam('name','');
		//$jsPath = APPLICATION_PATH.'/../public/js/';
		switch($jsName){		
			case 'logisticsOrder':	
				echo $this->view->render($this->tplDirectory . "logisticsOrderjs.tpl");
				break;				
			case 'pagination':
				echo $this->view->render($this->tplDirectory . "paginationjs.tpl");
				break;
				
			
		}
		exit;
		 //var_dump(file_exists());
	}
}