不知算不算问题,还是就是这样设计的

#1 azwl

更新到sp b3后,为访问统计增加了router_postfilter如下:

 
'launch' => array(
        'router_prefilter' => array(
            array('Museracl', 'mincheck') // 开启有限的权限控制
            // array('spAcl','maxcheck') // 开启强制的权限控制
            ),
        'router_postfilter' => array(
            array('Mvisit', 'index')
            )
        )


发现 'router_postfilter'中的 "Mvisit" 只能在model 中 而不能是在controller中

2010-05-07 11:30:49

#2 jake

是的,由于'router_postfilter'和其他大部分位置,都是使用spClass来进行类的调用,而spClass的搜索路径,包括 sp目录的Extensions,app目录的model,但是不包括controller目录,这是因为在sp里面,控制器是作为语言结构出现的,最好仅是浏览器来调用交互。

2010-05-07 12:43:30