RE: [PHP] Insult my code!
| From: | Mert Oztekin | Date: | Wed, 07 Oct 2009 08:36:37 +0000 |
| Subject: | RE: [PHP] Insult my code! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-298710@lists.php.net to get a copy of this message | ||
Seems ok.
Just a thought:
Your model seems to be coded just for retreiving data. IMO you should code it for all
possible actions(insert,update,delete,select). And also it should run without any database calls(you
may create a new bank user in a page and use it than throw it away, so you wont have to need a
database to save it).
Your model may be more useable when it can holds the data itself(without retreiving it from
db first), after that a save() method may inserts/updates it to db.
-----Original Message-----
From: Eric Bauman [mailto:baumane@livejournal.dk]
Sent: Wednesday, October 07, 2009 9:35 AM
To: php-general@lists.php.net
Subject: [PHP] Insult my code!
Hi there,
I'm in the process of trying to wrap my head around MVC, and as part of
that, I'm attempting to implement a super-tiny MVC framework.
I've created some mockups of how the framework might be used based
around a very simple 'bank', but I'm trying to get some feedback before
I go and implement it, to make sure I'm actually on the right track.
Any thoughts would be much appreciated!
Model - http://www.pastebin.cz/23595
Controller - http://www.pastebin.cz/23597
View - http://www.pastebin.cz/23598
Template - http://www.pastebin.cz/23599
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Bu mesaj ve ekleri, mesajda gönderildiği belirtilen kişi/kişilere özeldir ve gizlidir. Size
yanlışlıkla ulaşmışsa lütfen gönderen kisiyi bilgilendiriniz ve mesajı sisteminizden
siliniz. Mesaj ve eklerinin içeriği ile ilgili olarak şirketimizin herhangi bir hukuki
sorumluluğu bulunmamaktadır. Şirketimiz mesajın ve bilgilerinin size değişikliğe uğrayarak
veya geç ulaşmasından, bütünlüğünün ve gizliliğinin korunamamasından, virüs
içermesinden ve bilgisayar sisteminize verebileceği herhangi bir zarardan sorumlu tutulamaz.
This message and attachments are confidential and intended for the individual(s) stated in this
message. If you received this message in error, please immediately notify the sender and delete it
from your system. Our company has no legal responsibility for the contents of the message and its
attachments. Our company shall have no liability for any changes or late receiving, loss of
integrity and confidentiality, viruses and any damages caused in anyway to your computer system.