autoloading folder ZendX_JQuery and others

Posted by explorex on Stack Overflow See other posts from Stack Overflow or by explorex
Published on 2011-01-02T10:12:16Z Indexed on 2011/01/02 11:54 UTC
Read the original article Hit count: 253

Filed under:

Hi,

I am trying to use ZendX_Jquery and i don't how know to autoload this file in bootstrap. I am doing

    require_once("ZendX/JQuery.php");

on my file

    Bootstrap.php

i also tried

    $autoLoader = Zend_Loader_Autoloader::getInstance();
    $autoLoader->registerNamespace('ZendX_');

but it did not work

is there any elegant way of autoloading files in diretories?

EDIT: Changed ZendX_jQuery to ZendX_JQuery (case sensitivity) on my bootstrap.php file

© Stack Overflow or respective owner

Related posts about zend-framework