coreui / coreui-free-bootstrap-admin-template-ajax

CoreUI Ajax is free bootstrap admin template
http://coreui.io
MIT License
62 stars 36 forks source link

CoreUI with symfony 4 #8

Open ghost opened 6 years ago

ghost commented 6 years ago

How to use coreui with symfony4?

inrumi commented 5 years ago

How to use coreui with symfony4?

I'm not the author, but you can install Symfony Encore that is a wrapper for Webpack, and install as suggested in the documentation:

For the style files you should import your SCSS/CSS files in javascript and let encore/webpack compile them something like this:

// assets/scss/system.scss
@import "system/variables";

// CoreUI
@import "system/coreui";

// Fontawesome
@import "system/fontawesome";
// assets/js/app.js
import '../../scss/system.scss';

import $ from 'jquery';
import 'bootstrap';
import '@coreui/coreui/js/src/ajax-load';
import '@coreui/coreui/js/src/aside-menu';
import '@coreui/coreui/js/src/sidebar';

import './components/bootstrap-input';

$('#ui-view').ajaxLoad();

https://coreui.io/docs/getting-started/webpack/ https://symfony.com/doc/current/frontend.html