Download the PHP package node-link/cakephp-smarty without Composer
On this page you can find all versions of the php package node-link/cakephp-smarty. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download node-link/cakephp-smarty
More information about node-link/cakephp-smarty
Files in node-link/cakephp-smarty
Package cakephp-smarty
Short Description Make Smarty available with CakePHP.
License MIT
Homepage https://github.com/node-link/cakephp-smarty
Informations about the package cakephp-smarty
Smarty plugin for CakePHP
The Smarty plugin is a simple way to install Smarty view on your CakePHP 3 application with 3 steps.
Requirements
- CakePHP 3.x
- PHP 5.5+
Installation
1. Install plugin
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
2. Load plugin
Use bin/cake
to load the plugin as follows:
Or, manually add the following to config/bootstrap.php
:
3. Set View class
In the AppController.php
of your application, specify the View class.
Configuration
If you want to change Smarty's behavior, you can change Smarty's behavior by writing config/app.php
as follows.
If the setting item is not filled out or null is set, the default value is used.
If you want to define plugins such as functions and modifiers, config/smarty/plugins
is the plugins directory by default, so place the plugins in config/smarty/plugins
.
Reporting Issues
If you have a problem with the Smarty plugin, please send a pull request or open an issue on GitHub.