Download the PHP package mirko-pagliai/cakephp-essentials without Composer
On this page you can find all versions of the php package mirko-pagliai/cakephp-essentials. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mirko-pagliai/cakephp-essentials
More information about mirko-pagliai/cakephp-essentials
Files in mirko-pagliai/cakephp-essentials
Package cakephp-essentials
Short Description cakephp-essentials
License MIT
Homepage https://github.com/mirko-pagliai/cakephp-essentials
Informations about the package cakephp-essentials
cakephp-essentials
Various classes and utilities useful for various CakePHP projects.
Creates links to assets
In your composer.json
, add the post-update-cmd
command event:
Or run the commands directly in the shell:
It can also be useful to launch the command:
Extends the View
If necessary, you can rewrite the default helpers by implementing the initialize()
method and calling
parent::initialize()
before adding your own helpers.
Add some basic assets to layout
You can consider adding some key assets to your layout, depending on your needs:
Css:
Scripts:
Using Tooltips and Popovers
Several helper methods support tooltips and popovers and can generate them automatically.
Please refer to the Bootstrap documentation before using them (here and here).
Keep in mind that:
1) both depend on the third-party library Popper, which you need to include, or you can use bootstrap.bundle.min.js
which contains Popper;
2) you will need to initialize both, as indicated in the documentation.
You can include webroot/js/enable-popovers.min.js
and webroot/js/enable-tooltips.min.js
files in yourt layout, which will do it automatically:
How to use Bake templates
In your config/bootstrap.php
file:
Or you can use the --theme
option (or --t
) with Cake/Essentials
value.
Example:
See also CakePHP Bake 2.x Cookbook.
Sets the default locale date and time format
For example, in your bootstrap.php
:
All versions of cakephp-essentials with dependencies
cakephp/cakephp Version ^5.2
axllent/jquery Version ~3.7
friendsofcake/bootstrap-ui Version ^5.1.1
moment/moment Version ^2.30
twbs/bootstrap Version ~5.3
twbs/bootstrap-icons Version ^1.11