Skip to content

adzanny/metronics-theme-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metronics Theme Plugins

metronics-theme-loader

  • Metronics theme version : v4.7.5 (you must buy the licence to use this plugins)

  • This plugins use PhalconPHP Framework, please adjust model and query according to your framework.

  • Apcu for caching

How to Use:

  1. upload mysql/sys_js_css_helper.sql to your database

  2. Adjust database settings in app/config/config.js

  3. Copy assets folder from metronics to public/assets (contains apps, global, layouts and pages directory)

  4. In your controller add initialize() method and call JsCssHelper

$this->JsCssHelper->source(['header','footer','plugin_1','plugin_2','plugin_2','plugin_etc']);
<?php

class IndexController extends ControllerBase
{
    public function initialize() {
        /**
         * Call for metronics plugins
         * 'header' and 'footer' is a must plugin 
         * 'components_select2' is the plugin name according to metronics .html file
        */
        $this->JsCssHelper->source(['header','footer','components_select2']);
    }

    public function indexAction()
    {
        
    }

}
  1. In your view add

{# before <body> tag #}
{{assets.outputCss()}} 

{# before </body> tag #}
{{assets.outputJs()}}

Develop by Adzanny Rivaldo Amri ([email protected])

About

A PhalconPHP JS and CSS loader for Metronics Theme

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages