? Success

User tests: Successful: Unsuccessful:

avatar mvanvu
mvanvu
18 Nov 2015

Thanks for great Joomla! MVC structure. The suggest for support multi base path for JControllerLegacy.
My solutions are create a method addIncludePath and custom the method getInstance.
Here is the example for test. https://github.com/mvanvu/com_hello
description: com_hello just has a view hello in the backend and frontend. So the plugin comment will provide new views comment list and add new comment for the both frontend and backend.
P/s: com_hello just test for this request.

avatar mvanvu mvanvu - open - 18 Nov 2015
avatar mvanvu mvanvu - change - 18 Nov 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Nov 2015
Labels Added: ?
avatar wojsmol
wojsmol - comment - 18 Nov 2015
f5f824c 18 Nov 2015 avatar wojsmol CS
avatar zero-24 zero-24 - change - 25 Nov 2015
Category Libraries
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Jan 2017

@mvanvu Can you please write how to test this PR?

avatar RonakParmar
RonakParmar - comment - 25 Feb 2017

@mvanvu Can you please provide steps to test this PR?


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

avatar mvanvu
mvanvu - comment - 25 Feb 2017

@RonakParmar Please see com_hello https://github.com/mvanvu/com_hello. As default the com_hello has two views (hellos and hello) and the plugin comment (https://github.com/mvanvu/com_hello/tree/master/admin/plugin/comment) which provides more views by use JController::addIncludePath.

avatar zero-24
zero-24 - comment - 25 Feb 2017

@mvanvu can you fix the merge conflicts and allow maintainer edit?

avatar GeraintEdwards
GeraintEdwards - comment - 3 Jun 2017

Is this PR actually necessary to achieve what you want.
Can you not use

JControllerLegacy::getInstance("Content", array("model_prefix" => "yourmodelname", "model_path" => DIR . "/models/"));

or if you have n instance already

$controller->addViewPath( " your new path ");

or

JModelLegacy::addIncludePath

etc.

@nibra I would suggest closing this in 1 week if there is no response

avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Jun 2017
The description was changed
Status Pending Information Required
avatar joomla-cms-bot joomla-cms-bot - edited - 3 Jun 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 Jun 2017

set Status on "Information Required".


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 22 Jun 2017

If this PR get no Response, it will be closed at 23th July 2017.

avatar mvanvu mvanvu - change - 22 Jun 2017
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2017-06-22 10:14:37
Closed_By mvanvu
avatar mvanvu mvanvu - close - 22 Jun 2017

Add a Comment

Login with GitHub to post a comment