問(wèn)題描述
我有一個(gè)項(xiàng)目目前到處都是,我正在考慮把它做成 MVC.
I have a project that is currently all over the place and i'm thinking of making it MVC.
問(wèn)題是系統(tǒng)目前正在使用中,我無(wú)法更改界面(在框架中:s)此外,我還需要自己處理某些事情,例如密碼生成、登錄和用戶級(jí)別.
The problem is that the system is currently being used and I can not change the interface (It's in frames :s) Also there are certain things that I will need to handle myself such as password generation, login and user levels.
我已經(jīng)有了 MVC 的模型方面,所以我想知道是否值得使用像 Zend Framework 或 CakePHP 這樣的框架,或者只是編寫(xiě)我自己的視圖和控制器來(lái)解決這個(gè)問(wèn)題?
I already have the model side down of the MVC so I am wondering is it worth using a framework like Zend Framework or CakePHP or just to code my own View and Controllers to work around this problem?
我將不得不慢慢地工作,如果我使用現(xiàn)成的框架之一,我不確定我是否能夠做到這一點(diǎn).
I am going to have to work this in slowly and I'm not sure if i will be able to do that if I use one of the ready made frameworks.
推薦答案
通常我會(huì)害怕地退縮并建議不要將另一個(gè) Web MVC 框架引入世界,但公平地注意到我們的主持人 Joel 和 Jeff 有不同的意見(jiàn)關(guān)于此事:
Normally I would recoil in horror and advise against bringing yet another web MVC framework into the world, but it's fair to note that our hosts Joel and Jeff have another opinion on the matter:
來(lái)自喬爾:為重新發(fā)明輪子辯護(hù)來(lái)自杰夫:不要重新發(fā)明輪子
最后一個(gè)想法:如果是一個(gè)人的項(xiàng)目,那么這個(gè)選擇只會(huì)影響你自己.如果涉及到一個(gè)開(kāi)發(fā)長(zhǎng)壽命產(chǎn)品的團(tuán)隊(duì),我的抵抗力會(huì)飆升.如果你自己動(dòng)手,你可能會(huì)對(duì)團(tuán)隊(duì)和客戶造成傷害.
One last thought: If it's a one-person project, then you only affect yourself with this choice. My resistance would spike up if a team developing a long-lived product was involved. You may do a disservice to the team and the customer if you roll your own.
這篇關(guān)于我應(yīng)該使用框架還是編寫(xiě)自己的 MVC?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!