내 문제는 해결하기가 쉽지만 실제로 이해할 수는 없습니다.Zend Framework 문서 루트 설정
"Beginning Zend framework"라는 책의 지침에 따라 새 프로젝트를 만들었습니다. 프로젝트에는 '계정'과 '아티스트'컨트롤러가 2 개 있습니다.
.
├── application
│ ├── Bootstrap.php
│ ├── configs
│ │ └── application.ini
│ ├── controllers
│ │ ├── AccountController.php
│ │ ├── ArtistController.php
│ │ ├── ErrorController.php
│ │ └── IndexController.php
│ ├── models
│ └── views
│ ├── helpers
│ └── scripts
│ ├── account
│ │ ├── activate.phtml
│ │ ├── index.phtml
│ │ ├── new.phtml
│ │ └── success.phtml
│ ├── artist
│ │ ├── index.phtml
│ │ └── list-all-artists.phtml
│ ├── error
│ │ └── error.phtml
│ └── index
│ └── index.phtml
가 어떻게 설정 문서 루트 예를 들어, /account/new.phtml에 액세스 할 수 있습니다 : 여기에/응용 프로그램의 트리 뷰는? (127.0.0.1을 입력하면 기본 색인 페이지 "Zend Framework에 오신 것을 환영합니다!"를 볼 수 있지만 다른 페이지에 액세스하는 방법을 모르겠습니다.)
더 많은 정보 : +) 문서 루트는, .htacess 포함 index.php를) +) 해당 페이지를 반환 127.0.0.1/index /.../public/ (하지만 127.0.0.1/index /index.phtml이 작동하지 않습니다. http://127.0.0.1/account, http://127.0.0.1/artist 반환 404 오류.
자습서 나 책을 읽기 전에 먼저해야 할 일 : [빠른 시작 읽기] (http://framework.zend.com/manual/en/learning.quickstart.intro.html#learning.quickstart.intro. zf). 이것은 젠드 프레임 워크가 어떻게 작동 하는지를 기본적으로 이해하는 데 도움이 될 것입니다. – Liyali