Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7624237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:54:38+00:00 2026-05-31T04:54:38+00:00

When following Sencha Touch 2 MVC in Depth Part 1 session from Senchacon 2011

  • 0

When following Sencha Touch 2 MVC in Depth Part 1 session from Senchacon 2011 i keep getting same error all over again:

Uncaught Error: [Ext.createByAlias] Cannot create an instance of 
unrecognized alias: widget.homepage

Normaly in extjs4 I would use alias : widget.homepage and It worked fine.But, when folowing Ed Spencer’s tutorial on Sencha Touch MVC app I keep getting same error:

APP.JS

Ext.Loader.setConfig({
    enabled:true
});

Ext.application({
    name: 'Sencha',

    controllers: ['Main'],

    launch: function () {
        Ext.create("Ext.tab.Panel", {
            fullscreen: true,
            tabBarPosition: 'bottom',
            items: [
               {
                   xtype: 'homepage'
               }
            ]
        });
    }
});

View (HOME.JS)

Ext.define('Sencha.view.Home', {
    extend: 'Ext.Panel',
    xtype: 'homepage',
    config: {
        title: 'Home',
        iconCls: 'home',
        cls: 'home',
        html: [
            '<img src="http://staging.sencha.com/img/sencha.png" />',
            '<h1>Welcome to Sencha Touch</h1>',
            "<p>You're creating the Getting Started app. This demonstrates how ",
            "to use tabs, lists and forms to create a simple app</p>",
            '<h2>Sencha Touch (2.0.0)</h2>'
        ].join("");
    }
});

Controller(MAIN.JS)

Ext.define('Sencha.controller.Main', {
    extend: 'Ext.app.Controller',
    views: ['Home'],
    init: function () {
        console.log('inited');
    }
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:54:39+00:00Added an answer on May 31, 2026 at 4:54 am

    It looks like they changed where the definition of your views goes – it goes in app.js instead of the controller, main.js.

    So if you cut and paste views: ['Home'], from main.js into app.js right above the controllers: definition, your example should work.

    This is a good thing in my opinion in the long run – basically you define your views, controllers, models, etc all in one place now. But it’s a shame that by making this change, anyone trying to follow along with this video with the latest and greatest version of Sencha 2 is going to run into this issue.

    EDIT: found another issue. When you get to the part where you add a ref to the contact form in the controller, the syntax for that has changed as well – it goes into a config. Adding this to the controller worked for me:

    config: {
        refs: {
            contactForm: {
                selector: '#contactForm'
            }
        }
    },
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting the following error: * #1005 - Can't create table 'classorganizer.turma' (errno:
i am following sencha touch 2.0.0 MVC architecture. there are a tab panel in
I'm quite new to Sencha-touch and I'm following the getting started video on the
I am currently playing with Sencha Touch, and I'm trying to get data from
I am new to sencha touch mvc framework and i am using version1.1.1 on
Saluts!!!! I have my combo, IN SENCHA TOUCH, declared as the following Ext.regModel('modelo', {fields:
When using the [relatively new] MVC bits in Sencha Touch I find that 90%
I was following this tutorial of Sencha Touch: http://www.vimeo.com/15672696 Perfect tutorial, worked flawless. But
I am leaning sencha touch and I am following a dzone tutorial. I could
Following on from my recent question on Large, Complex Objects as a Web Service

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.