Hi all,
I wondering of some for me useless code in the views.
Eg.:
class Details extends oxUBase
{
public function render()
{
...
$this->_aViewData['aZoomPics'] = $this->getZoomPics();
...
}
}
With this code the pictures can be handle in the template.
But Details::getZoomPics() is public and will be executed in the template,
too.
[{assign var="aZoomPics" value=$oView->getZoomPics() }]
In the template return the $this->_aPicGallery array.
So it don't executes twice, just [{$aZoomPic}] filled twice.
But, why this is previous executed in the view itself.
My thinking is, if I make a own Template and don't need zoomPics or whatever.
I don't wanne execute it. If I need it, i execute it in the Template, like
now.
So if the view don't execute public functions, some templates are faster.
This practice is a lot in views and templates.
What you think?
Regards,
Markus
--
----------------------------
Markus Bauer
Paseo del Retiro 3 B
11380 Tarifa/Cadiz
España
N.I.E.: ES-Y0317721-J
----------------------------
Tel./Fax: +34 956682237
eMail: [email protected]
www: www.coyop.de
----------------------------
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general