[TYPO3-ect] General feedback for lib/div

Jochen Rieger j.rieger at connecta.ag
Mon Jun 11 16:14:52 CEST 2007


Hi Elmar, Ries & all,

> So I am hesitating. Let's hear other opinions.

cakePHP does it this way:

/app/controllers/orders_controller.php
/app/controllers/orderitems_controller.php

/app/models/order.php
/app/models/orderitem.php

/app/views/orders/someaction.html
/app/views/orders/someotheraction.html

and so on.

My opinion:

Directories should be plural as they might contain more than one view, 
controller etc. The filenames should also depend on how many "things" 
are or might be inside. So ... a file containing one view should be 
named "class.someprefix_modelname_view.php" or similar.

I guess you don't want to have multiple viewS in one file, or am I 
mistaken there?

Regards,
Jochen

-- 
Connecta AG TYPO3 Development
http://www.connecta.ag


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