|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
make-appHi
Can we still make a model/app? Sorry trying to work out how to generate a model/app, I used to do something like: make-app Vendor_App_Main --extends Vendor_App_Base -- model=Vendor_Model_Main make-app now takes --extends or --extends_model options, so I tried: make-app Vendor_App_Main \ --extends_model Vendor_Controller_Model \ --model=Vendor_Model_Main Vendor_Controller_model exists, created with make-vendor Vendor Vendor_Model_Main exists, created with make-model Vendor_Model_Main make-app ignores --extends_model option, what am i doing wrong or is it unfinished as yet. Trying to get my head around the changes in how the new structure is being setup, what extends from what etc. I am assuming that as make-vendor now creates a Vendor_Controller_Page that Vendor_App_Base is not going to be used anymore? or am I missing the point as usual? Jeff Surgeson South Africa _______________________________________________ Solar-talk mailing list Solar-talk@... http://mailman-mail5.webfaction.com/listinfo/solar-talk |
|
|
Re: make-appOn Sep 9, 2009, at 07:02 , Jeff Surgeson wrote:
> Hi > > Can we still make a model/app? Yes :-) ... see below for more. > Sorry trying to work out how to generate a model/app, I used to do > something > like: > > make-app Vendor_App_Main --extends Vendor_App_Base -- > model=Vendor_Model_Main > > make-app now takes --extends or --extends_model options, so I tried: > > make-app Vendor_App_Main \ > --extends_model Vendor_Controller_Model \ > --model=Vendor_Model_Main Ah, I see the trouble. The "extends_model" config key (there is no command-line option for it) tells make-app what *page* class to extend when a --model-name option is present; it does not say which model class to use. Similarly, --model (which took a full class name) has been removed in favor of --model-name (which take the short name of a model). To do what you want above, you work in two steps as before (create the model, then create the app): $ ./script/solar make-model Vendor_Model_Main $ ./script/solar make-app Vendor_App_Main --model-name=main That will create the app using the Vendor_Controller_Model page class. Does that help? -- Paul M. Jones http://paul-m-jones.com/ _______________________________________________ Solar-talk mailing list Solar-talk@... http://mailman-mail5.webfaction.com/listinfo/solar-talk |
| Free embeddable forum powered by Nabble | Forum Help |