ExtJS 4: Configuring the Class Loader for Multiple Namespace Directories

by Clint on July 7, 2011

I’m loving the new “class loader” mechanism that comes with ExtJS 4. That said, you’ve got to do a little extra configuration work if you have namespaces in difference directories–thought I’d share a quick example in case it’s helpful to anyone else. In this scenario, the ExtJS libraries are in one directory, the ‘myapp’ classes are in another, and ‘myapp.common’ (e.g., a shared library) classes live in yet a third directory.


              
              


Clint Harris is an independent software consultant living in Brooklyn, New York. He can be contacted directly at ten.sirrahtnilc@tnilc.
  • Anonymous

    Thanks, just what I was looking for! But would it be possible to expand
    On this a little and show example contents of the “myapp” directories you refer to
    And how they are “required” and /or used in app.js? Thanks again.