So ich stand heute vor dem Problem, wie ich die typische Struktur, welche uns von Zend Framework vorgeschrieben wird, ablöse, so dass ich das /public Verzeichnis nicht mehr verwenden muss.
Ausgangssituation:
/Application/[Alle anderen Ordner]
/library/Zend
/public/index.php
Ziel:
/Application/[Alle anderen Ordner]
/library/Zend
/index.php

Und es geht richtig einfach, ohne das htaccess zu ändern!
Einfach diesen Code in der index.php oder bootstrap.php:
set_include_path('.'
. PATH_SEPARATOR . get_include_path()
. PATH_SEPARATOR . '../library'
. PATH_SEPARATOR . '../application/classes/'
. PATH_SEPARATOR . '../application/models/'
zu
set_include_path('.'
. PATH_SEPARATOR . get_include_path()
. PATH_SEPARATOR . 'library'
. PATH_SEPARATOR . 'application/classes/'
. PATH_SEPARATOR . 'application/models/'
ändern, und schon funktioniert es. Die Index Datei aus dem Public Ordner in den Root Verzeichnis verschieben und fertig!
