젠드 프레임 워크 1.12 모듈 디렉토리 구조를 배우려고하므로 직접 작성했습니다. 지금까지 모듈을 내 응용 프로그램 폴더 아래에있는 Bootstrap.php에 추가하여 기본값으로 작업했습니다. 내 Zend 모듈에 액세스하려고 할 때 404 얻기
$this->bootstrap("frontController");
$front = $this->getResource("frontController");
$front->addModuleDirectory(APPLICATION_PATH . '/modules');
나는 아래의 설정으로이 작업을 수행하는 application.ini 사용했지만, 그것은 나에게 '프론트 컨트롤러에 등록 된 기본 컨트롤러 디렉토리'라고 예외를주고 있었다. 이건 내 재 작성 규칙입니다
root
|
+- application
|
+- configs
| |
| +- application.ini
|
+- modules
|
+- default
| |
| +- controllers
| | |
| | +- IndexController.php
| |
| +- views
| |
| +- scripts
| |
| +- index
| |
| +- index.phtml
|
+- signup
|
+- controllers
| |
| +- IndexController.php
|
+- views
|
+- scripts
|
+- index
|
+- index.phtml
: 여기
resources.frontController.defaultController = "index"
resources.frontController.defaultAction = "index"
resources.frontController.defaultModule = "default"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules[] = ""
내 디렉토리 구조입니다
RewriteEngine On
RewriteRule ^myroot/.*$ index.php [NC]
내가 http://mysite.com/root/signup에 접근하려고하지만 난 (404) 암 내가 설정 모듈에 뭔가가 점점 계속 젠드에?
업데이트 : 가입하도록 기본 설정하면 작동합니다.
resources.frontController.defaultModule = "signup"
내 추측은 지금 RewriteRule의 내가
http://www.mysite.com/root/signup
application.ini
은/루트는/주요 index.php 스크립트의 위치? – Orangepill예, Zend가 설치하는 주요 index.php가 여기에 있습니다. – kailoon
그냥 낄낄 거림에 대한 시도 http://mysite.com/root/signup/index/index – Orangepill