Updated 4a. JCB Demo Component Directory, Folders and Files (markdown)

Joseph Geller
2018-09-23 09:06:46 -05:00
parent 0c1b0f8209
commit 4d4617a655

@@ -299,7 +299,7 @@ Add PHP (after getting the items)*
Yes
PHP getItems Method
Target (array) $items values *
Target (array) $items values *
// do a quick build of all edit links links
if (isset($items) && $items)
{
@@ -319,7 +319,7 @@ Target (array) $items values *
$item->editLink = '';
}
}
}
}
## [JCB - Editing the Site View](http://localhost/demo/administrator/index.php?option=com_componentbuilder&view=dynamic_get&layout=edit&id=36)
@@ -331,8 +331,7 @@ A class file that is very important to facilitate this and is currently being us
Be aware that if for eaxmple the path is indicated as JLoader::registerAlias('JControllerLegacy', '\\Joomla\\CMS\\MVC\\Controller\\BaseController', '5.0'); the physical path in Joomal! version 3.8.12 is \libraries\src\Application\BaseController.php; its class is BaseController which extends JObject. What one needs to recall is the old ones will eventually be obsolete starting with Joomla! 5. They are currently deprecated and will log warnings in server log files. These are useful to allow cleaning them up eventually. Each line in the file has the path to the left that is aliased to the path on the right which is the deprecated one. Joomla! developers are using the namespace extensively and this conforms the classes to the new ones that should be used in your components sooner rather than later.
There are some other areas where aliases exist that should be adhered to eventually for class names and their locations:
*
*
- [Add unobtrusive JavaScript support to keep a tab state.](https://api.joomla.org/cms-3/classes/JHtmlBehavior.html#method_tabstate)
\libraries\cms\html\behavior.php
- [Get a document object and set the component css/js.](https://api.joomla.org/cms-2.5/classes/JFactory.html#method_getDocument)