Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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

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

No branches or pull requests

2 participants