? ? Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
3 Apr 2017

Pull Request for Issue #15041.

Summary of Changes

This PR changes default controller name from COM_NAME to a generic controller name as discussed in #15041. I also make some small clean up to the code which can be easily seen while review

Testing Instructions

Code review. Ping @wilsonge and @mbabker for final decision

avatar joomdonation joomdonation - open - 3 Apr 2017
avatar joomdonation joomdonation - change - 3 Apr 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 Apr 2017
Category Libraries
avatar joomdonation
joomdonation - comment - 3 Apr 2017

While looking at this, I also have some questions:

  1. With the current implement, the data stored in namespace column must contain backslash Joomla\Component\Content\ . I think without backlash Joomla\Component\Content might be better

  2. Do we really want to introduce a new way to pass controller name via controller variable in the request? At least for current usage, the widely use task=controller.method is good enough.

avatar joomdonation joomdonation - change - 3 Apr 2017
Labels Added: ?
avatar RonakParmar RonakParmar - test_item - 5 Apr 2017 - Tested successfully
avatar RonakParmar
RonakParmar - comment - 5 Apr 2017

I have tested this item successfully on b47213c

Done code review.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15075.

7c28874 7 Apr 2017 avatar joomdonation CS
avatar joomla-cms-bot joomla-cms-bot - change - 7 Apr 2017
Category Libraries Libraries Unit Tests
avatar joomdonation
joomdonation - comment - 7 Apr 2017

So I made further change beside to just changes default controller name;

  1. Change Controller to BaseController. It will allows us to write shorter code in default component controller

use Joomla\Cms\BaseController;
class Controller extends BaseController;

Instead of

use Joomla\Cms\Controller as CmsController;
class Controller extends CmsController;

  1. Passing option and name to controller config array. That save controller not having to detect dynamic these information from class name.
avatar joomdonation
joomdonation - comment - 8 Apr 2017

Again, close because I could not resolve conflicts :(

avatar joomdonation joomdonation - change - 8 Apr 2017
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2017-04-08 10:07:44
Closed_By joomdonation
Labels Added: ?
avatar joomdonation joomdonation - close - 8 Apr 2017

Add a Comment

Login with GitHub to post a comment