我试图为我自己在项目上使用而与《国际公认准则》一道开发一个基础。 而且,我对 CI来说非常新,但几年来与土耳其国防军和欧佩斯菲律宾石油公司在一起。
首先,请允许我向各位介绍我的档案结构:
- index.php (frontend bootstrap)
- backend.php (backend bootstrap)
- .htaccess
- system ( CI core )
- application
- backend
- [...] MVC related files and folders (config, controllers, models, views...)
- frontend
- [...] MVC related files and folders (config, controllers, models, views...)
- backend
- codeigniter
- [...] (cache, database, scaffolding...)
- application
Ok. 我可以着手编制索引。 php与“htaccess”连接起来,但可以与双方合作。 The .htaccess Code:
RewriteEngine on
RewriteBase /
# Hide the application and system directories by redirecting the request to index.php (and throwing a 404 error)
RewriteRule ^(application|system|.svn) index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
我所需要的是:
- www.domain.com/backend/controller/action/parameters (backend.php routing)
- www.domain.com/controller/action/parameters (index.php routing)
我希望我作了很好的解释。
谁能提供帮助?
最好。