[TYPO3-ect] lib/div 1.0 - it's time to say thank you
Elmar HInz
elmar.DOT.hinz at team.MINUS.red.DOT.net
Fri Jan 5 19:33:59 CET 2007
Hey Ries,
> Hey Elmar,
>
> today I took a quick glance at the tx_lib library and tx_div library...
>
> tx_div seems to be very minimalistic and provides almost the same
> functions as
> t3lib_div:: I currently don't see a real advantage of tx_lib, specially
> that api_macmade
> as a magnitude more usefull functions (+16000 downloads....)
>
>
You need to see them as team. The one depends on the other. As soon as you
start to use them you will understand the concept. tx_div is a kind of
peer to tx_lib.
> tx_lib seems interesting and I need to read upon the whole MVC thing, I
> do understand
> teh concept, it's just not yet in my head...
>
In a few lines:
Model > Controller > View
MySQL > PHP > Smarty
The best visualization I know:
http://www.typo3-calendar.org/typo3temp/pics/31a2845330.jpg
http://www.typo3-calendar.org/1576.0.html
>
> One thing that surprises me is the way templates work... Why all the php
> magic in
> a php template?? I think that is hard to understand for people that er not
> technical skilled... Is it theoretically possible to archive the same
> with smarty templates?
It's possible to extend lib/div with any rendering system. I needed
to take the shortest way to come to results for the beginning. Please feel
free to write a smarty connectro for the view.
As for the learningcurve. Smarty is also a complex system that offers
conditions and iterators. So it's similar. And: PHP knowlage you can reuse
for other tasks. So what investment to decide for?
Regards
Elmar
More information about the TYPO3-team-extension-coordination
mailing list