[TYPO3-ect] Zend style extensions scheme

Michael Scharkow mscharkow at gmx.net
Wed Mar 22 11:29:37 CET 2006


Elmar Hinz wrote:
> Hello typoniks,
> 
> my thanks to David for hinting to the Zend Framework and the excellent
> article of Chris Shiflett. Please read it.
> 
> http://www.phparch.com/zftut
> 
> Yesterday evening Jan-Hendrik and me were discussing a roadmap with
> the first step to provide a pi_base free example. This article gives a
> very clear guidance how to do this.

Yes, there seems to be universal agreement on how to do this kinda stuff 
nowadays, except maybe in the JAVA camp ;)

I'd not use the ZEND library but implement our own, which is fun anyway.

> To give a first impression of a zend stylish extension I post the
> planned file structure for you:
> 
> 
> // Plugins:
> 
> class.tx_articles_singleView.php
> class.tx_articles_searchList.php
> 
> // Models:
> 
> models/class.tx_articles_models_searchQuery.php
> models/class.tx_articles_models_singleQuery.php
> 
> // Views:
> 
> views/class.tx_articles_views_singleView.php
> views/class.tx_articles_views_searchList.php
> 
> // Controllers:
> 
> controllers/class.tx_articles_controllers_singleView.php
> controllers/class.tx_articles_controllers_searchList.php
> 
> // Configuration:
> 
> static/singleView/setup.txt
> static/singleView/constants.txt
> static/searchList/setup.txt
> static/searchList/constants.txt
> 
> // Documentation
> 
> doc/manual.sxw
> 
> // Other
> 
> ext_emconf.php
> ext_localconf.php
> ext_tables.php
> tca.php
> locallang.php
> locallang_db.php
> README.txt
> ChangeLog

A few comments:

1. What's in the class.tx_articles_singleView.php file if it's *not* the 
controller?

2. DRY! Why do you have the class path both in the filename and the 
path? The path offers enough information already.

3. There is nothin in the model dir as the model is completely defined 
in ext_tables.php, tca.php, etc. Move those into models.

4. The /test/ dir is missing ;)

Greetings,
Michael



More information about the TYPO3-team-extension-coordination mailing list