diff --git a/4a.-JCB-Demo-Component-Directory,-Folders-and-Files.md b/4a.-JCB-Demo-Component-Directory,-Folders-and-Files.md index 26164db..6941337 100644 --- a/4a.-JCB-Demo-Component-Directory,-Folders-and-Files.md +++ b/4a.-JCB-Demo-Component-Directory,-Folders-and-Files.md @@ -297,7 +297,7 @@ Joomla! Debug option, set in Joomla! Configuration will also provide this and no The code that follows in the last bullet point in the above trace, demo.php has links to some Joomla! documentation that is outdated but file locations are still applicable. Joomla! has some extensive changes involving namespaces which it relies on heavily. Deprecated class names will be removed in Joomla! 5 so it is wise to use the new ones, aliased starting with Joomla! 3.8. Unfortunately, it is a bit tedious to find Joomla! paths for files containing its code at times. For example, the Joomla! Platform documentation is no longer maintained and Platform 14 is outdated plus obsolete. It is in the links since it has not been removed from current documentation and it is a great way to present it. Be sure you note and observe any changes in the current or future versions of Joomla! as code may break if Joomla! team removes it. Some links also point to older versions and archived material. Nonetheless, many are informative and many have constructs still in use and not described in current documentation. If a class for example or design pattern is obsolete now and deprecated it is indicated very clearly. These and [other changes](https://developer.joomla.org/news/703-joomla-3-8-beta-released-for-testing.html) should be reviewed in preparation for Joomla! 4. For now, they facilitate backwards compatibility allowing them to be used before the change becomes mandatory for your components to still work. A class file that is very important to facilitate this and is currently being used is the class map of aliases for classes that do not conform to the namespace naming convention. The file at \comdemo\libraries\classmap.php should be consulted when writing your own components. It has the locations and new standard naming for class files. 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. - + - [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) @@ -305,7 +305,7 @@ A class file that is very important to facilitate this and is currently being us \components\com_demo\assets\css\site.css \components\com_demo\assets\js\site.js - [Require helper files.](https://api.joomla.org/cms-3/classes/JLoader.html#method_register) -[\libraries\Joomla\JLoader.php](https://api.joomla.org/12.1/Joomla-Platform/_libraries---loader.php.html) +\libraries\Joomla\JLoader.php \helpers\demo.php \helpers\route.php - [Import joomla controller library](https://docs.joomla.org/J2.5:Developing_a_MVC_Component/Basic_backend#Basic_backend)