DEV Community

Gabriel Alejandro López López
Gabriel Alejandro López López

Posted on • Originally published at yiiframework.com on

1

[extension] daxslab/yii2-coreui

Yii2 CoreUI

  1. Installation
  2. Usage

Latest Stable VersionTotal DownloadsLatest Unstable VersionLicense

Yii2 extension includind the base layout for CoreUI admin dashboard

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist daxslab/yii2-coreui "*"

Enter fullscreen mode Exit fullscreen mode

or add

"daxslab/yii2-coreui": "*"

Enter fullscreen mode Exit fullscreen mode

to the require section of your composer.json file.

Usage

Make your module or controller layout to be @daxslab/coreui/views/layouts/main.php by modifiying the layout attribute.

Also you can make your @app/views/layouts/main.php to look like:


<?php $this->beginContent('@daxslab/coreui/views/layouts/main.php') ?>
    <?= $content ?>
<?php $this->endContent() ?>

Enter fullscreen mode Exit fullscreen mode

Consider that there a a group of variables at the beginning of @daxslab/coreui/views/layouts/main.php that you can setto specify brand icons, menu contents, etc.

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay