2008年8月15日星期五

Re: [fw-mvc] Integration of Models

I've implemented my thinkings and i like it. It is like using ViewHelpers in
viewscripts, based on same idea.

Simple example, usage in Controllers:

// init Zend_Loader_PluginLoader
$this->_helps['model']->helpInitLoader($iniFilepath);

// use My_Model_FooBar
$this->_helps['model']->helpLoadModel('FooBar');
$this->_helps['model']->doIt(true, array(11, 22));

// use My_Model_FooBar2
$this->_helps['model']->helpLoadModel('FooBar2');
$this->_helps['model']->doIt('foo');
$this->_helps['model']->doIt('bar');

Version: 0.6.0
http://www.nabble.com/file/p19008394/zf_model_class_diagram.zip
zf_model_class_diagram.zip
Version: 0.6.0
http://www.nabble.com/file/p19008394/zf_model_sequence_diagram.zip
zf_model_sequence_diagram.zip


I will post my implementation, when i finished a first full usable version.
--
View this message in context: http://www.nabble.com/Integration-of-Models-tp18985795p19008394.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: