-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于__call() #50
Comments
call? controller是一个类, 你找不到类call谁呢? |
可能我没说明白,比方说,默认路由下,我访问/abc/def abc这个controller是存在的,只是没有defAction,但是我希望不报错,而是去调用 php的 _call()方法(类似wordpress插件的实现方式)。 |
我在abc这个controller里直接$this->defAction()时如果defAction不存在的话是可以直接调用__call方法的,但是通过网址访问则不行。 |
public function __call($method, $args) { do_action是自己实现的一个函数。 |
hmm,明白了, 我想想, 目前肯定是不支持的 |
好……继续关注。谢谢 |
可以自己写路由.
|
有具体方案么?谢谢 |
|
thx On Monday, August 5, 2013, lilj wrote:
李博 我们是搞开发的 |
请问,我希望在访问某个controller时未找到方法时可以去__call,如何处理?谢谢!
The text was updated successfully, but these errors were encountered: