
Originally Posted by
Phil.Strong
Can you paste me the code (code view) for your DetailPanel here?
Unlikely it's related to touch directory location. By default in settings the sdk path is pointed to cachefly url. Your welcome to change this to your locally download and hosted location if you'd like.
Also be sure your running from a hosted location and not file:// though I suspect you wouldn't have gotten this far if you were.
Code:
Ext.define('MyApp.view.DetailPanel', {
extend: 'Ext.tab.Panel',
alias: 'widget.detailpanel',
config: {
tabBar: {
docked: 'top',
ui: 'light',
layout: {
pack: 'center',
type: 'hbox'
}
},
items: [
{
xtype: 'container',
id: 'contact',
title: 'Contact',
items: [
{
xtype: 'container',
id: 'info',
padding: 10,
tpl: [
'<img class="photo" src="{photo_url}" width="100" height="100"/>;<h2>{name}</h2><div class="info">{address1}<br/><imm src="{rating_img_url_sall}"/></div>'
],
layout: {
type: 'hbox'
},
items: [
{
xtype: 'component',
height: 100,
id: 'photo',
tpl: [
'<img class="photo" src="{photo_url}" width="100" height="100"/>'
],
width: 100
},
{
xtype: 'component',
id: 'data',
padding: 10,
tpl: [
'<h2>{name}</h2><div class="info">{address1}<br/><img src="{rating_img_url_small}"/></div>'
]
}
]
},
{
xtype: 'container',
id: 'MyContainer2',
layout: {
pack: 'center',
type: 'hbox'
},
items: [
{
xtype: 'button',
width: 100,
text: 'Call'
},
{
xtype: 'spacer',
width: 57
},
{
xtype: 'button',
width: 100,
text: 'More'
}
]
}
]
},
{
xtype: 'map',
id: 'detailMap',
title: 'Map'
}
]
}
});
I compared the code that I created to the downloaded project and they are identical. So, I still think it has something to do with the way my project is configured. I also tried using localhost/sencha/CityBars as well as localhost/CityBars. I also tried deploying to http://sencha/ and get the same errors.
So, to try and get past the error, I created a virtual directory "citybars" that pointed to the "app" directory but it still didn't work. I got a new error: ""Cannot create an instance of unrecognized class name / alias: CityBars.view.DetailPanel"
Thanks Phil!