Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I have a lot of controllers I want to know ways to organize them better
There shouldn't be very much common behavior between your controllers. If you do have duplicate code or common behavior, then it should probably be refactored out to a service. Thin controllers, fat models & services.
Knp University has a really good (and free) screencast on the topic:
http://knpuniversity.com/screencast/question-answer-day/model-organization
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
I'm using php and Laravel.
Is is good to build my courier?
I know this is ridiculous but i wonder.
modern php is much better than before.
but i'm still wonder using php.
Yeah it is still good using php especially laravel.
First, php framework (laravel) using MVC Architecture that easy to use, and many tutorials there.
And then, laravel have a feature called Eloquent ORM for easy interaction with your app database
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
What would be the advantage of using a framework like codeigniter vs raw PHP?
MVC pattern, which I recommend you read about. It provides concern separation and is an industry standard for building web apps.
Less boilerplate code - everything (mostly) you need is already provided by framework classes API
Active Record - a nicer way to query database
etc. Bottom line is - use a framework, unless it's a quick hack, then framework might be an overkill
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
Mmmmmmh, I probably have the answer to this obious question myself, but I just want to hear someone else confirm this. Does PHP come with UI components?
I have used PHP before and am currently using ASP .NET. ASP .NET comes with UI components. Does this mean ASP .NET is better?
You are comparing a programming language with a web framework. There are a lot of well established PHP frameworks and most of them also provide some kind of view components.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm new to PHP and this forum, I just would like to know which is the best PHP MVC framework regarding to performance and scalable at the present? I wonder if Yii is the best one.
There is no best MVC framework. Use the one that you are comfortable with. Here are some list of MVC frameworks that you would want to lookat
Yii
CodeIgniter
CakePHP
Symfony2
Zend Framework
Laravel
or here is the entire list of PHP frameworks
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
What's a basic database schema for trading items? Here are the rules for the trade:
users propose a trade for other user's items.
both users can counter each other's proposals as many times.
Its very brief and general but I'm just looking for a basic schema to help me in the right direction in designing the database.
Basically you're talking about bidding (auctions) ... here is a decent schema I have loosely used in the past for such projects.
http://www.databaseanswers.org/data_models/auction/index.htm