开发者

php frameworks for simple tasks, an overkill?

开发者 https://www.devze.com 2023-01-21 21:10 出处:网络
Example: I need to manage users in a website,\'manage\' means: register and allow them to send comments.

Example: I need to manage users in a website,'manage' means: register and allow them to send comments. user registration will use: username, email, password and user_id comments will have: date, link, text and user_id

Now, I have several projects with similar structure - give or take a table/field or t开发者_如何学编程wo..

I hate writing it all again and again, but using cakePHP/ ZEND / Symfony seems like an overkill and lots of work anyway.

Any thoughts? ideas? tips?


If you don't use a pre-packaged framework or a content management system, you'll probably end up with coming up with something similar yourself: a bunch of code and process you reuse to simplify and speed-up those repetitive tasks.

As to which approach is better depends on you, your development preferences, and maybe your client's perceptions (they may give the work different a value if you rely on a 3rd party system, they may even have opinions on which can be used & installed).


Use a framework. Especially if you have "several projects with similar structure". When you get sufficiently familiar with it, it will stop being a hassle to set up.

0

精彩评论

暂无评论...
验证码 换一张
取 消