Results 1 to 2 of 2

Thread: ST2-style routes for controllers

  1. #1
    Sencha Premium Member
    Join Date
    Apr 2008
    Vote Rating

    Default ST2-style routes for controllers

    Here's a clean override that implements the routes config and redirectTo() method into controllers for ExtJS. It's compatible with the same syntax used in Sencha Touch but with one extra app-level option (see below) for efficient ExtJS initial rendering. I was able to do it with a lot less code than ST2 uses by weeding out all the ST1 routing artifacts littering it.

    Download locally or use right off GitHub:
        requires: [
        paths: {
            Jarvus: ''
      suspendLayoutUntilInitialRoute: true, // true to suspend layouts during app startup until initial route is handled
    Chief Architect @ Innovations
    Co-captain @ Code for Philly

    Jarvus builds and optimizes top-quality Sencha Touch and ExtJS apps for open-source projects and clients of all sizes.

    Don't waste time with bugs that have already been found and fixed by the community, compile our tried and tested hotfixes packages into all your projects:

  2. #2
    Sencha - Documentation Team slemmon's Avatar
    Join Date
    Mar 2009
    Boise, ID
    Vote Rating


    Thanks for sharing!
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our human resources manager:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts