Download the PHP package cleatsquad/magento-smarty without Composer
On this page you can find all versions of the php package cleatsquad/magento-smarty. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cleatsquad/magento-smarty
More information about cleatsquad/magento-smarty
Files in cleatsquad/magento-smarty
Package magento-smarty
Short Description Smarty template engine for Magento 2
License MIT
Informations about the package magento-smarty
CleatSquad Magento 2 Smarty
Magento Version Support
Purpose
CleatSquad_Smarty
is a Magento 2 module is an integration of the Smarty template engine in Magento2.
To use this package you need to write your Magento2 module, or you can write all your template files in Smarty.
This template engine is intended to be used in addition to the .tpl
files.
Getting Started
This module is intended to be installed via Composer. To add it to your Magento 2 project, follow these steps:
Installation
-
Download the package
- Enable the module
Magento 2
Components
A new engine has been added to this module which will allow you to use smarty. and this the injection of the new engine in the class Magento\Framework\View\TemplateEngineFactory.
Frontend Integration
Your template files must have the file extension .tpl
to get automatically recognized.
In your layout xml files or blocks please specify the new template
Example header.phtml converted to header.tpl
Example breadcrumbs.phtml converted to breadcrumbs.tpl
Access helper methods
Write in your .tpl
file:
Configurations
Configuration options can be found Stores -> Settings -> Configuration -> Advanced -> Developer -> Smarty.
Section | Group | Field | Description |
---|---|---|---|
dev | smarty | debug | Disable/Enable debug mode. |
dev | smarty | cache | Disable/Enable of the cache of smarty templates (cache stored in var/cache/smarty) |
Support
If you need help or have a question, you can:
- Open an issue through GitHub for bug reports and feature requests.
- Check the Magento Community Forums for general questions and support on Magento.
- Check on Magento Stack Exchange for general programming questions.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Mohamed EL Mrabet - Initial work - mimou78
License
This project is licensed under the MIT License - see the LICENSE file for details.
All versions of magento-smarty with dependencies
magento/module-backend Version >=100.0.0
magento/module-config Version >=100.0.0
smarty/smarty Version ^3.0