arodu / cakelte Goto Github PK
View Code? Open in Web Editor NEWAdminLTE plugin for CakePHP
Home Page: https://packagist.org/packages/arodu/cakelte
License: MIT License
AdminLTE plugin for CakePHP
Home Page: https://packagist.org/packages/arodu/cakelte
License: MIT License
Is there any plans to make a Bootstrap 5 version ?
Dear Arodu,
I have followed the steps given in your readme file and I was trying to update the menu items but after adding one more item inside menu.php file inside templates/plugin/CakeLte/templates/element/sidebar/menu.php the item is not displaying in left handside of the menubar.
Please let me know If I am doing anything wrong.
Regards
Ashish
Hello.
The plugin was applying CakeLte.starter
layout automaticaly.
Today I ran composer update
and now the layout is null
.
I have no changes in the code so it must be some incompatibility or something.
Actually, I prefer it this way but it took me some time to find out what was going on.
Debug:
debug( $this->viewBuilder()->getLayout() );
// null
Now, I have to manually add this:
$this->viewBuilder()->setlayout( 'CakeLte.starter' );
Componer update log:
$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 5 installs, 17 updates, 0 removals
- Updating laminas/laminas-httphandlerrunner (1.1.0 => 1.2.0): Downloading (100%)
- Updating cakephp/chronos (2.0.4 => 2.0.5): Downloading (100%)
- Updating cakephp/cakephp (4.0.7 => 4.0.8): Downloading (100%)
- Updating arodu/cakelte (v0.1.0 => v0.1.1): Downloading (100%)
- Installing symfony/polyfill-php80 (v1.17.0): Downloading (100%)
- Updating symfony/process (v5.0.8 => v5.1.0): Downloading (100%)
- Updating symfony/finder (v5.0.8 => v5.1.0): Downloading (100%)
- Updating symfony/filesystem (v5.0.8 => v5.1.0): Downloading (100%)
- Updating symfony/service-contracts (v2.0.1 => v2.1.2): Downloading (100%)
- Installing symfony/polyfill-intl-normalizer (v1.17.0): Downloading (100%)
- Installing symfony/polyfill-intl-grapheme (v1.17.0): Downloading (100%)
- Installing symfony/string (v5.1.0): Downloading (100%)
- Updating symfony/console (v5.0.8 => v5.1.0): Downloading (100%)
- Updating justinrainbow/json-schema (5.2.9 => 5.2.10): Downloading (100%)
- Updating composer/xdebug-handler (1.4.1 => 1.4.2): Downloading (100%)
- Updating composer/composer (1.10.6 => 1.10.7): Downloading (100%)
- Updating cakephp/debug_kit (4.1.2 => 4.2.0): Downloading (100%)
- Installing symfony/deprecation-contracts (v2.1.2): Downloading (100%)
- Updating symfony/config (v5.0.8 => v5.1.0): Downloading (100%)
- Updating doctrine/instantiator (1.3.0 => 1.3.1): Downloading (100%)
- Updating nikic/php-parser (v4.4.0 => v4.5.0): Downloading (100%)
- Updating symfony/var-dumper (v5.0.8 => v5.1.0): Downloading (100%)
Writing lock file
Generating autoload files
> Cake\Composer\Installer\PluginInstaller::postAutoloadDump
Thanks.
Hi, its me again! Sorry for not spotting this on the prevous issue.
When baking a view template, if the entity has related entities, the record not found string does not contain the __ function.
Example:
Users record not found!
Instead of:
<?=__('Users record not found!')?>
I believe the change must be done on line 130 of bake/template/view.twig.
Thanks for the previous fix!
Hi,
First of all, great work. I now have an alternative CakePHP theme aside from cakephp-adminlte-them by maiconpinto.
I found an issue on top-nav layout menu where the top menu does not show during expand. Only the search bar will show up but not the menu.
Thanks a lot.
Thanks for this wonderful AdminLTE plugin.
I was able to overwrite correctly the folders under the "templates/element/" dir.
But The Layout files ( "templates/layout/" ) were not able to overwrite.
Layouts
copy from
vendor/arodu/cakelte/templates/layout/default.php
to
templates/layout/default.php
... I customized this file
Do I need any settings?
I use trait into src/View/AppView.php (Recomended)
My environment.
I have followed the steps given here, but I am getting this error.
Missing Helper
Cake\View\Exception\MissingHelperException
I couldn't understand following,
If someone could help me, please share how to resolve this issue.
Will cakelte be updated for CakePHP5?
Hi all..
bootstrap 5 was released in 2021, and in AdminLTE there is no beta version of it yet, and possibly bootstrap 6 will released soon
Is there any other project similar to AdminLTE that I can use as a base in a new cakephp plugin?
I would like to do the same work I have been doing here, but with a new theme
Is is possible to update the Data Picker from the standard drop down to use DatePicker as used in the AdminLTE sample page (eg here ? The standard is a bit plain and out of step with the rest of the theme, and I would also like to incorporate the DateRangePicker in some reports also seen on the same page.
Not sure if I'm doing this right. I had added an Icon on the page title e.g.
$this->assign('title', '<i class="nav-icon fas fa-user-cog"></i> Users');
However as this is also used in the page title I see this in the page title
Is this the correct way to do this?
Adding strip_tags to the title should fix this
<title><?= strip_tags($this->fetch('title')) . ' | ' . strip_tags($this->CakeLte->getConfig('app-name')) ?></title>
Is it possible to override the default in the plugin with my own? I tries added a copy to src/templates/layout but didn't work.
Hello
I have just created a clean CakePHP 4.3 install, and used composer to install the plugin as detailed by your page. However, when I enable as per the AppView method, I end up with
syntax error, unexpected 'Helper' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
ROOT/vendor/arodu/cakelte/src/View/Styles/Header.php
Error in: ROOT/vendor/arodu/cakelte/src/View/Styles/Header.php, line 34
and the page does not load up now.
Any assistance would be appreciated.
Using CakePHP 4.3.2
PHP: 7.3.29
UPDATE
If I comment out the two private variable lines from Header.php and Sidebar.php files, it seems to be working. Haven't done much more testing, other than load up the debug page a click around
Unable to implement select2 dropdowns and wondering what I've missed or done wrong
AdminLTE allows for select2 dropdowns as seen here https://adminlte.io/themes/v3/pages/forms/advanced.html
I've successfully implemented CakeLTE however am find the dropdowns are just a normal style
Feedback / tips / suggestions greatly appreciated!
how to configure form-horizontal, because
I have added class class-horizontal but it's still not running
thanks
All title strings generated for breadcrumbs are not wrapped by the __ function.
For example, when baking a template, it produces:
$this->Breadcrumbs->add([ ['title' => 'Home', 'url' => '/'], ['title' => 'List Users'], ]);
instead of
$this->Breadcrumbs->add([ ['title' => __('Home'), 'url' => '/'], ['title' => __('List Users')], ]);
Most of the code generated does come with __ function, however, Breadcrumbs generation does not.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.