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

etmvc做前台时,怎么配置控制器啊? #7

Open
GoogleCodeExporter opened this issue Aug 5, 2015 · 1 comment
Open

etmvc做前台时,怎么配置控制器啊? #7

GoogleCodeExporter opened this issue Aug 5, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

etmvc做后台时,访问的是: www.domain.com/控制器/方法

etmvc做前台时,访问的是:
 www.domain.com/index
 www.domain.com/info
 www.domain.com/product
 www.domain.com/demo
 www.domain.com/case
等一些单页时,怎么配置控制器啊?

@shuzheng
Copy link
Owner

shuzheng commented Aug 5, 2015

etmvc做后台时,访问的是: www.domain.com/控制器/方法

etmvc做前台时,访问的是:
www.domain.com/index
www.domain.com/info
www.domain.com/product
www.domain.com/demo
www.domain.com/case
等一些单页时,怎么配置控制器啊?

1、建立对应的controller,比如IndexController、InfoController等,默认是index()方法;
2、自定义路由:https://github.com/shuzheng/etmvc/blob/master/Wiki/route.md

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

No branches or pull requests

2 participants