lcurrens
14 Feb 2012, 3:05 PM
I have some legacy code that I want to be able to integrate as a Controller. I want to be able to add it to the Application in the "controllers:" stanza. I have it in the application filesystem under app/controller/MyFile.js, and if I add it to the application "controllers:"stanza then it gets initialized and I can access it with this.getApplication().getController('MyApp.controller.MyFile') for example.
I cannot edit the Application file, and so I am having to do this by hand after every save to the filesytsem before I run the App. I would rather you let me edit that file and get myself in a ditch if I want to than to make me edit the file in the filesystem after every iteration.
Same difficulty with the <application>.html file, I am having to edit that file every time to add the legacy Controller file. I would love to be able to just set that once and not have it over-ridden each time I save from Designer. Please add a little flexibility - maybe it can be default read-only, but you provide a way to override this. Otherwise the workarounds are too painful and time consuming (i.e. editing the files after each save of Designer).
I cannot edit the Application file, and so I am having to do this by hand after every save to the filesytsem before I run the App. I would rather you let me edit that file and get myself in a ditch if I want to than to make me edit the file in the filesystem after every iteration.
Same difficulty with the <application>.html file, I am having to edit that file every time to add the legacy Controller file. I would love to be able to just set that once and not have it over-ridden each time I save from Designer. Please add a little flexibility - maybe it can be default read-only, but you provide a way to override this. Otherwise the workarounds are too painful and time consuming (i.e. editing the files after each save of Designer).