-- SiCo007 <[EMAIL PROTECTED]> wrote
(on Thursday, 14 August 2008, 02:50 AM -0700):
> I am kind of in the same boat here, I find it frustrating that ZF doesn't
> handle or suggest a use of models. I fully understand why mind you now I
> have investigated, a model is essentially what anyone wants it to be!!
> 
> I do think though as I progress that a model base class should be made with
> a way to add helpers much like action helpers. 

Please note that there _is_ a proposal in the works for models:

    http://framework.zend.com/wiki/pages/viewpage.action?pageId=41564

I would suggest that you make your comments there for now.

> I am going to do this now, using much of the action helper code as
> guidance so that it should work in the ZF way. I've done the action
> helper to load the models that's easy enough it's everything that goes
> with it that seems to duplicate things already done for the action.
> 
> It seems to me that a lot is put into the controller in the docs and the
> framework as a whole but that most of the actual work should actually happen
> in the model!

It should -- and you could also claim that everything but
Zend_Controller, Zend_Layout, and Zend_View can be used to support the
Model. ;)

> I would like to see a base class and maybe a best practice / example in the
> docs as a getting started, it's been my biggest hurdle choosing what
> metodology (read opinion) to follow over model useage!!

Trust me, we plan on doing this. Please review the proposal linked
above, and comment from there. Regardless of whether or not we adopt the
proposal, we _will_ be documenting best practices in coming months.

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to