Search found 5 matches

by unbeerable
Wed Apr 19, 2017 6:29 pm
Forum: [3.x] Discussion
Topic: Add base controller to avoid boilerplate code
Replies: 7
Views: 14942

Re: Add base controller to avoid boilerplate code

Not necessarily arguing against it, but in my experience having a "one size fits all" class or library for such things that many different projects can inherit ends up making that class or library overly complex and means having objects instantiated and properties populated that won't be ...
by unbeerable
Wed Apr 19, 2017 6:08 pm
Forum: [3.x] Discussion
Topic: Add base controller to avoid boilerplate code
Replies: 7
Views: 14942

Re: Add base controller to avoid boilerplate code

I thought that the whole point of using a "framework" was to just add the blocks that you need as and when you need them. Why we still have so much helpers and abstract base classes then? Why don't we just make the things from scratch every time we need to do something? With default contr...
by unbeerable
Wed Apr 19, 2017 4:02 pm
Forum: [3.x] Discussion
Topic: Add base controller to avoid boilerplate code
Replies: 7
Views: 14942

Re: Add base controller to avoid boilerplate code

javiexin wrote: Wed Apr 19, 2017 1:43 pm Maybe better if added to Skeleton Extension?
Well, you're offering me not to write this code by hands but still to have this code. I want to not have it at all.
by unbeerable
Wed Apr 19, 2017 11:45 am
Forum: [3.x] Discussion
Topic: Add base controller to avoid boilerplate code
Replies: 7
Views: 14942

Add base controller to avoid boilerplate code

I'm facing the same problem every time I create a controller in my extensions. It almost always needs some of @request , @user , @auth , @controller.helper , @dbal.conn and @template services (sometimes all of them), because almost every controller just reads input from @request , performs some chec...
by unbeerable
Wed Nov 23, 2016 7:19 am
Forum: [3.x] Discussion
Topic: RFC - Shadow topic data should be updated when someone posted in original topic
Replies: 1
Views: 3425

RFC - Shadow topic data should be updated when someone posted in original topic

There is a way to leave a shadow topic in the original forum when the topic is moved into another forum. Unfortunately this shadow topic contains data about last poster which is not updated when the original topic receives updates. So this shadow topic goes down in the list when ordered by last topi...