项目作者: adzanny

项目描述 :
A PhalconPHP JS and CSS loader for Metronics Theme
高级语言: Volt
项目地址: git://github.com/adzanny/metronics-theme-loader.git
创建时间: 2017-08-13T02:41:43Z
项目社区:https://github.com/adzanny/metronics-theme-loader

开源协议:

下载


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

  1. $this->JsCssHelper->source(['header','footer','plugin_1','plugin_2','plugin_2','plugin_etc']);
  1. <?php
  2. class IndexController extends ControllerBase
  3. {
  4. public function initialize() {
  5. /**
  6. * Call for metronics plugins
  7. * 'header' and 'footer' is a must plugin
  8. * 'components_select2' is the plugin name according to metronics .html file
  9. */
  10. $this->JsCssHelper->source(['header','footer','components_select2']);
  11. }
  12. public function indexAction()
  13. {
  14. }
  15. }
  1. In your view add
    ```code

{# before tag #}
{{assets.outputCss()}}

{# before tag #}
{{assets.outputJs()}}
```

Develop by Adzanny Rivaldo Amri (adzanny@hendevane.co.id)