2009年4月12日星期日

[fw-mvc] view, code reuse

I created a view witch generate a dialog with jquery, this file can be called
in any view of the application.
i'm doing this way:

<?php echo $this->partial('parts/dialogGenerator.phtml', array(
'title' => 'Title of the dliaog',
'var1' => 'var2',
'var2' => 'var2'
)); ?>

is it correct in MVC pattern ?
can i do this using view helpers ?
--
View this message in context: http://www.nabble.com/view%2C-code-reuse-tp23016128p23016128.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: