You can create a folder outside the Sencha Architect control and call it from within the Architect code.
For example, I like to create a folder called "util". So, here is what your folder structure will look like:
app
Inside MiscFunctions.js, you must create a class as follows:
Ext.define('MyApp.util.MiscFunctions', {
singleton: true,
passFn: function() {
...
},
failFn: function() {
}
});
Architect:
Ext.Ajax.request({
url: 'foo.php',
success: MyApp.util.MiscFunctions.passFn,
failure: MyApp.util.MiscFunctions.failFn,
params: { foo: 'bar' }
});
singleton: true
.