This package integrates the Materialize CSS framework into Yii2. Materialize is a modern responsive front-end framework based on Material Design.
See official documentation for detailed information.
The preferred way to install this extension is through composer.
Either run
$ composer require uomocon/materialize "*"
or add
"uomocon/materialize": "*"
to the require
section of your composer.json
file.
To load the Materialize CSS files integrate the MaterializeAsset into your app. Two ways to achieve this is to register the asset in the main layout:
// @app/views/layouts/main.php
\uomocon\materialize\assets\MaterializeAsset::register($this);
// further code
or as a dependency in your app wide AppAsset.php
// @app/assets/AppAsset.php
public $depends = [
'uomocon\materialize\assets\MaterializeAsset',
// more dependencies
];