怎么样把URL路径模式的地址  传给<a></a>中的href  让他执行一个controlled类中的方法...
   如题
  假如URL路径模式的地址是C:/WebApp/WebCache/MallFrame/app/computer/action/default_module/index/
   default_module 是一个controlled类   index是方法
   假如URL路径模式的地址是C:/WebApp/WebCache/MallFrame/app/computer/action/default_module/
   调用default_module 这个controlled类中的默认方法 index()
    

解决方案 »

  1.   

    Controller:abstract class controller{
    protected $view;
    protected $raw;
    protected $validFaca;
        function __construct() {
         $this->view=new View();
         $this->raw=new RawRequest;
         $this->validFaca=new ValidationFacade;
        }
        abstract function indexAction();
    }
      

  2.   

    function url($action,$controller,$module){      return baseUrl().'/'.$module.'/'.$controller.'/'.$action;}
      

  3.   

    这些参数都创建出来了没问题  但是这样的URL地址是不会跳转的呀...比如说<a href="index.php?module/action/">跳转</a>  这什么都不会执行呀...