? ? Pending

User tests: Successful: Unsuccessful:

avatar yvesh
yvesh
22 Jan 2017

Summary of Changes

Example: view.html.php -> html.php

Remove view. from the view files (like view.html.php) in the controller loading in favor of only having the type as file name.

If the file is not existing we check if there is one with the old filename pattern.

Testing Instructions

Confirm that everything is still working and if you add a html.php in an component view this should be loaded instead of the view.html.php

Documentation Changes Required

Dev documentation

avatar yvesh yvesh - open - 22 Jan 2017
avatar yvesh yvesh - change - 22 Jan 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Jan 2017
Category Libraries
avatar yvesh yvesh - change - 22 Jan 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 22 Jan 2017
Category Libraries Libraries Unit Tests
avatar mbabker
mbabker - comment - 22 Jan 2017

Unless you're going to fix the class name logic in the controller and view layers as well which results in duplicate class names all over the place this isn't doing anything useful on its own.

avatar yvesh
yvesh - comment - 22 Jan 2017

@mbabker 4.x branch, class names should be namespaced there (something like Joomla\Content\Article\Html)

avatar mbabker
mbabker - comment - 22 Jan 2017

Then here is my suggestion. view.<format>.php files follow the current class name convention with all its flaws and the new files can only contain "properly" named classes. But please do not try to make the code support finding ContentViewArticle in the non-view-prefixed filenames or finding namespaced classes in the view-prefixed filenames.

Either way, I do think the class name logic needs to be included in this PR before it should be merged. Otherwise the code is in a state of flux where files can have multiple names for the same thing.

avatar yvesh
yvesh - comment - 8 Apr 2017

Closing this, as we decided to not touch the legacy system and in the namespaced version it's different anyways.

avatar yvesh yvesh - change - 8 Apr 2017
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2017-04-08 13:07:56
Closed_By yvesh
Labels Added: ?
avatar yvesh yvesh - close - 8 Apr 2017

Add a Comment

Login with GitHub to post a comment