Release of v4.0.0-beta4
Add fallback option to ensure that all JCB tables and fields exist. Move the powers autoloader to its own file.
This commit is contained in:
@ -15,7 +15,14 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###BOM###
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');###ADMIN_POWER_HELPER###
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// The power autoloader for this project admin area.
|
||||
$power_autoloader = JPATH_ADMINISTRATOR . '/components/com_###component###/helpers/powerloader.php';
|
||||
if (file_exists($power_autoloader))
|
||||
{
|
||||
require_once $power_autoloader;
|
||||
}
|
||||
|
||||
###ADMIN_HELPER_CLASS_HEADER###
|
||||
|
||||
|
@ -15,7 +15,14 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###BOM###
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');###SITE_POWER_HELPER###
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// The power autoloader for this project site area.
|
||||
$power_autoloader = JPATH_SITE . '/components/com_###component###/helpers/powerloader.php';
|
||||
if (file_exists($power_autoloader))
|
||||
{
|
||||
require_once $power_autoloader;
|
||||
}
|
||||
|
||||
###SITE_HELPER_CLASS_HEADER###
|
||||
|
||||
|
18
admin/compiler/joomla_3/autoloader.php
Normal file
18
admin/compiler/joomla_3/autoloader.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
?>
|
||||
###BOM###
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;###ADMIN_POWER_HELPER###
|
18
admin/compiler/joomla_3/autoloader_site.php
Normal file
18
admin/compiler/joomla_3/autoloader_site.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
?>
|
||||
###BOM###
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;###SITE_POWER_HELPER###
|
@ -15,7 +15,14 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###BOM###
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');###ADMIN_POWER_HELPER###
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// The power autoloader for this project admin area.
|
||||
$power_autoloader = JPATH_ADMINISTRATOR . '/components/com_###component###/helpers/powerloader.php';
|
||||
if (file_exists($power_autoloader))
|
||||
{
|
||||
require_once $power_autoloader;
|
||||
}
|
||||
|
||||
###ADMIN_COMPONENT_HEADER###
|
||||
|
||||
|
@ -15,7 +15,14 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###BOM###
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');###ADMIN_POWER_HELPER###
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// The power autoloader for this project site area.
|
||||
$power_autoloader = JPATH_SITE . '/components/com_###component###/helpers/powerloader.php';
|
||||
if (file_exists($power_autoloader))
|
||||
{
|
||||
require_once $power_autoloader;
|
||||
}
|
||||
|
||||
###SITE_COMPONENT_HEADER###
|
||||
|
||||
|
@ -236,5 +236,5 @@ class Com_###Component###InstallerScript
|
||||
return $nr;
|
||||
}
|
||||
return false;
|
||||
}###MOVEFOLDERSMETHOD###
|
||||
}###INSTALLERMETHODS###
|
||||
}
|
||||
|
@ -164,6 +164,20 @@
|
||||
"newName": "category.php",
|
||||
"type": "file"
|
||||
},
|
||||
"autoloader.php": {
|
||||
"naam": "autoloader.php",
|
||||
"path": "c0mp0n3nt/admin/helpers",
|
||||
"rename": "new",
|
||||
"newName": "powerloader.php",
|
||||
"type": "file"
|
||||
},
|
||||
"autoloader_site.php": {
|
||||
"naam": "autoloader_site.php",
|
||||
"path": "c0mp0n3nt/site/helpers",
|
||||
"rename": "new",
|
||||
"newName": "powerloader.php",
|
||||
"type": "file"
|
||||
},
|
||||
"script.php": {
|
||||
"naam": "script.php",
|
||||
"path": "c0mp0n3nt/",
|
||||
|
Reference in New Issue
Block a user