TC
Twill CMSluciano.mizra

Edit defaultOrders in controller

What would be the most correct way to edit? $this->defaultOrders of ModuleController in my controller, I understand that setting it in setUpController would work, but it is not a public method, My idea is something similar to this: $this->enableReorder(); $this->defaultOrders = [ 'publish_start_date' => 'desc'];
ifox
ifox139d ago
you can override the class property directly, so outside of the constructor