Moved the MVC to extend the CMS MVC via namespace.
This commit is contained in:
@ -13,10 +13,12 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\View\HtmlView;
|
||||
|
||||
/**
|
||||
* Server View class
|
||||
* Server Html View class
|
||||
*/
|
||||
class ComponentbuilderViewServer extends JViewLegacy
|
||||
class ComponentbuilderViewServer extends HtmlView
|
||||
{
|
||||
/**
|
||||
* display method of View
|
||||
@ -195,9 +197,9 @@ class ComponentbuilderViewServer extends JViewLegacy
|
||||
|
||||
// Add the CSS for Footable
|
||||
$this->document->addStyleSheet('https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css');
|
||||
JHtml::_('stylesheet', 'com_componentbuilder/footable-v3/css/footable.standalone.min.css', ['version' => 'auto']);
|
||||
JHtml::_('stylesheet', 'media/com_componentbuilder/footable-v3/css/footable.standalone.min.css', ['version' => 'auto']);
|
||||
// Add the JavaScript for Footable (adding all functions)
|
||||
JHtml::_('script', 'com_componentbuilder/footable-v3/js/footable.min.js', ['version' => 'auto']);
|
||||
JHtml::_('script', 'media/com_componentbuilder/footable-v3/js/footable.min.js', ['version' => 'auto']);
|
||||
|
||||
$footable = "jQuery(document).ready(function() { jQuery(function () { jQuery('.footable').footable();});});";
|
||||
$this->document->addScriptDeclaration($footable);
|
||||
|
Reference in New Issue
Block a user