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

Joseph Geller
2018-09-20 12:34:19 -05:00
parent e9db503590
commit 71fe352ffb

@@ -270,7 +270,9 @@ Beneath the directory structure and files presented next you will find a short e
\index.html
\router.php
***
Always keep in mind, JCB is doing most of the tasks related to items below referring to Joomla directories, files, classes, methods and properties. You do not have to, for example, put an index.html file in the root of every directory; you are not required to add the check for direct access to the file; you do not have to write code for the admin or site views unless you extend JCB with your own custom code. When combined with the leverage JCB has by reusing Joomla's MVC paradigm while adding the required structures and code to your own components, a myriad of tasks are taken care of for you. That's where elimination of time spent with these types of tasks and repetitive coding plus not reusing the Joomla! API greatly reduces your project's time-line. Later, after viewing the remaining videos and the chapters that accompany each in this manual you'll have acquired mastery of even more JCB features and functions, not to mention the understanding and use of the Joomla! API in your own component's code, both of which that will greatly reduce your project's delivery date.
Always keep in mind, JCB is doing most of the tasks related to items below referring to Joomla directories, files, classes, methods and properties. You do not have to, for example, put an index.html file in the root of every directory; you are not required to add the check for direct access to the file; you do not have to write code for the admin or site views unless you extend JCB with your own custom code.
When combined with the leverage JCB has by reusing Joomla's MVC paradigm and adding the required structures and code to your own components required by Joomla! for you, a myriad of tasks are taken care of you would otherwise spend valuable time doing, instead of focusing on your own code and and the logic required for it to execute properly. That's where elimination of time spent with these types of repetitive tasks and coding while reusing the code in the Joomla! API, greatly reduces your project's time-line. Later, after viewing the remaining videos and the chapters that accompany each in this manual you'll have acquired mastery of even more JCB features and functions, not to mention the understanding and use of the Joomla! API in your own component's code.
***
**index.html** - File containing one line of HTML that blocks directory view. Must be in root of each folder.
@@ -280,6 +282,7 @@ defined('_JEXEC') or die('Restricted access');
***
## \com_demo\demo.php
## NetBeans Debug Trace
Joomla! Debug option, set in Joomla! Configuration will also provide this and now with Chrome XDEBUG mentioned earlier it has links to where the code resides. Also J!Dump boosts this with dumps of variables in code accompanied by even more information.
* 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