PHPackages                             ahmedebead/cakephp-4-lte - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ahmedebead/cakephp-4-lte

ActiveCakephp-plugin

ahmedebead/cakephp-4-lte
========================

CakePHP 4.x AdminLTE 3.1 Theme.

2.0.1(4y ago)31.0kMITJavaScriptPHP &gt;=7.2.0

Since Jul 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ahmed3bead/cakephp-4-lte)[ Packagist](https://packagist.org/packages/ahmedebead/cakephp-4-lte)[ Docs](https://github.com/ahmed3bead/cakephp-4-lte)[ RSS](/packages/ahmedebead-cakephp-4-lte/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (10)Dependencies (2)Versions (21)Used By (0)

CakePHP AdminLTE 3 Theme
========================

[](#cakephp-adminlte-3-theme)

[![Latest Stable Version](https://camo.githubusercontent.com/0a5be86b563290ec9cc7cee97302e245a803830a93880010b6fc6e48eb45bc7f/687474703a2f2f706f7365722e707567782e6f72672f61686d656465626561642f63616b657068702d342d6c74652f76)](https://packagist.org/packages/ahmedebead/cakephp-4-lte) [![Total Downloads](https://camo.githubusercontent.com/9963786a1436a90de76ddf8bd78f32fca9d4c7c32a1ddbb39865cb7046149998/687474703a2f2f706f7365722e707567782e6f72672f61686d656465626561642f63616b657068702d342d6c74652f646f776e6c6f616473)](https://packagist.org/packages/ahmedebead/cakephp-4-lte) [![Latest Unstable Version](https://camo.githubusercontent.com/83b99fda67fbbc845b5375c57e7119e766797782bc2312fd6dda9607d1925267/687474703a2f2f706f7365722e707567782e6f72672f61686d656465626561642f63616b657068702d342d6c74652f762f756e737461626c65)](https://packagist.org/packages/ahmedebead/cakephp-4-lte) [![License](https://camo.githubusercontent.com/06aa0a6cd82352e70b38752552c961e25b44380b81683efe4772fd8831a8a1ee/687474703a2f2f706f7365722e707567782e6f72672f61686d656465626561642f63616b657068702d342d6c74652f6c6963656e7365)](https://packagist.org/packages/ahmedebead/cakephp-4-lte)

[![RTL Support](https://github.com/ahmed3bead/cakephp-4-lte/raw/main/webroot/theme-images/ltr.png?raw=true)](https://github.com/ahmed3bead/cakephp-4-lte/blob/main/webroot/theme-images/ltr.png?raw=true)

**What's the news**

The CakephpLte was updated version to 3.1.0.

The CakePHP was updated version compatible to 4.2.0.

### Installation

[](#installation)

You can install using [composer](http://getcomposer.org).

```
composer require ahmedebead/cakephp-4-lte

```

### Copy Assets

[](#copy-assets)

After above command Run this command

```
bin/cake plugin assets symlink

```

### Enable Plugin

[](#enable-plugin)

```
// src/Application.php

public function bootstrap()
{
    $this->addPlugin('CakephpLte', ['autoload' => true, 'bootstrap' => true, 'routes' => true]);
}
```

### Enable Theme

[](#enable-theme)

```
// src/Controller/AppController.php
use Cake\Event\EventInterface;

public function beforeRender(EventInterface  $event)
{
    $this->viewBuilder()->setTheme('CakephpLte');
    $this->viewBuilder()->setClassName('CakephpLte.CakephpLte');
}
```

### Enable Form

[](#enable-form)

```
// src/View/AppView.php

public function initialize()
{
    $this->loadHelper('Form', ['className' => 'CakephpLte.Form']);
    $this->loadHelper('Paginator', ['templates' => 'CakephpLte.paginator-templates']);

}
```

### Configure

[](#configure)

```
// new config/cakephplte.php file

return [
    'CakephpLteTheme' => [
        'title' => 'CakephpLte',
        'logo' => [
            'mini' => 'AELT',
            'large' => 'AdminLTE'
        ],
        'login' => [
            'show_remember' => true,
            'show_register' => true,
            'show_social' => true
        ],
        'folder' => ROOT,
        'skin' => 'blue'
    ]
];

// config/bootstrap.php

Configure::load('cakelte', 'default');
```

RTL Support
===========

[](#rtl-support)

[![RTL Support](https://github.com/ahmed3bead/cakephp-4-lte/raw/main/webroot/theme-images/rtl.png?raw=true)](https://github.com/ahmed3bead/cakephp-4-lte/blob/main/webroot/theme-images/rtl.png?raw=true)

Just add rtl css and js to your layout (if you overwrite it )

```
// Css

     echo $this->Html->css('CakephpLte./css/bootstrap.rtl.min.css');

     echo $this->Html->css('CakephpLte./css/rtl.css');

// JS

     echo $this->Html->script('CakephpLte./js/bootstrap.rtl.min.js');
```

or use rtl layout

```
$this->layout = 'CakephpLte.rtl';
```

What's the features
===================

[](#whats-the-features)

### Layouts

[](#layouts)

There are 2 layout files.

- default **it's the main layout**
- rtl

### RTL Support

[](#rtl-support-1)

### View Blocks

[](#view-blocks)

There are 3 Blocks where you can extend your CakephpLteTheme.

- **css**

```
