Skip to content
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

模型选择问题 #20

Open
augustpluscn opened this issue May 13, 2016 · 0 comments
Open

模型选择问题 #20

augustpluscn opened this issue May 13, 2016 · 0 comments

Comments

@augustpluscn
Copy link

如果模型aaa
再建立一个模型xxx_aaa
选中模型aaa的时候xxx_aaa会同时选中
我修改了helper.php这样能解决,不知道是否有考虑不周的
function activedLink($controller_name, $action_name, $style) {
if (isset($action_name)
&& (false !== strpos($controller_name, CONTROLLER_NAME))
&& ACTION_NAME == $action_name) {
return $style;
}

if (!isset($action_name)
    && ($controller_name==CONTROLLER_NAME)) {
    return $style;
}

return '';

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant