Bananas Development Blog: share your thoughts

ZendFramework Laden

Die Anleitung beschreibt zwar die Möglichkeiten wie aber gibt kein eindeutiges Beispiel.

Hier ist wie man das Zend Framwork einbindet.
// load the zend Framework
define("LIB_DIR","lib");
$include_path = get_include_path();
if(!ini_set('include_path',$include_path.PATH_SEPARATOR.ABSOLUTE_PATH.LIB_DIR)) {
die('Failed to set the include path. Check you php configuration.');
}

In dem Verzeichnis "lib" liegen bei mir alle bibilotheken die ich so brauche.
Dabei ist zu beachten, dass das Zend Framework in das Zend Verzeichnis reinkopiert werden muss, da es intern auch diesen Namen verwendet um Dateien einzubinden.

Hier mal die Verzeichnisstrucktur:
lib/
lib/Zend
lib/Zend/Acl
lib/Zend/....


Also muss der include Path um das Verzeichnis lib erweitert werden.
Die Klassen des Zend Frameworks werden dann mit
require_once 'Zend/Mail.php';

geladen.
  • No comments

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Trackbacks / Pingbacks

  • No Trackbacks