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

Joseph Geller
2018-09-24 08:31:04 -05:00
parent 29fb5e0311
commit 5d7b43259d

@@ -283,16 +283,7 @@ Later, after viewing the remaining videos and the chapters that accompany each i
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
*** ***
## \demo.php ## \demo.php
## NetBeans Debug Trace ### JCB - Editing the Site View, is where the site view entry point for the JCB Demo component is defined. This code has been inserted in JCB for you. It displays the site view named looks, which allows displaying the site view looking and the admin view look so one can edit their own look record in the looks_demo table. If access is given in Joomla!'s ACL to the JCB Demo component, the edit button displays below the name and description. It must first be added as a menu item to Joomla! It is suggested to add a user to Joomla! that is in the registered group. The created and modified by columns in the demo_look table in the Joomla! database for the owner must be changed to the one for a user after the super administrator enters a look record to edit it. Each user must be the owner and for now, the look record is entered by a different owner, super administrator so, so it must be changed to be visible. This brings up the matter of access control levels or ACL in Joomla! See the text after the view for information or you will not be able to edit a look despite owning it.
* index.php.{main}:49
* libraries/src/Application/CMSApplication.php.Joomla\CMS\Application\SiteApplication->execute:195
* libraries/src/Application/SiteApplication.php.Joomla\CMS\Application\SiteApplication->doExecute:233
* libraries/src/Application/SiteApplication.php.Joomla\CMS\Application\SiteApplication->dispatch:194
* libraries/src/Component/ComponentHelper.php.Joomla\CMS\Component\ComponentHelper::renderComponent:357
* libraries/src/Component/ComponentHelper.php.Joomla\CMS\Component\ComponentHelper::executeComponent:382
* components/com_demo/demo.php.require_once:35
We see from the NetBeans XDEBUG Trace exactly what Joomla! class file line numbers are being reused from the Joomla! core (a myriad of code is behind most), culminating with requiring the entry point for the JCB Demo component, demo.php in the last line. It then uses the same Joomla! API and classes from class files indicated in the path shown next, that display the looks view and edit button:
Custom Script Custom Script
Add PHP (after getting the items)* Add PHP (after getting the items)*