Implementing the Quotation controller
It's starting to look like the real thing! So, now let's implement the part that will actually read and display the data. First, as usual, start with the implementation of the CT (source file: 04_implement_quotation_controller/ct/quotation/view_list.html
).
Reproduce app_edit.html
and change the .js
file that is being read to app_list.js
. Again, be careful because we'll read the api.php
file together (source file: 04_implement_quotation_controller/ct/quotation/view_list.js
).
... Ext.application({ ... controllers: [ 'quotation.Quotation', 'quotation.Edit', 'quotation.List' ], launch: function() { var panel = Ext.create('MyApp.view.quotation.Quotation', { width: 800, height: 600, activeItem: 0, renderTo: Ext.getBody() }); Ext.util.Observable.capture(panel, function() { console.log(arguments); }); Ext.widget('button', { ...