درس قبلی
Be Strict With Your Controllers

Be Strict With Your Controllers

Be Strict With Your Controllers

قسمت 4
درس بعدی

درباره این درس

Technique #4. If you're not careful, it's easy for a controller to quickly get out of hand. All of the sudden, you have countless endpoints and actions - each with its own set of private helper methods. An alternative approach is to strictly adhere to the seven restful actions. If you find yourself reaching for a different name, ask yourself if you can instead create a brand new controller.
دیدگاه های کاربران

× در حال پاسخ به: