Download the PHP package brbunny/brplates without Composer
On this page you can find all versions of the php package brbunny/brplates. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brbunny/brplates
More information about brbunny/brplates
Files in brbunny/brplates
Package brplates
Short Description BrPlates is a component for handling view layer using Plates
License MIT
Informations about the package brplates
BRPLATES @BrBunny
BrPlates is a component for handling view layer using Plates
Installation
BrPlates is available through Composer:
or run
Documentation
For more details on how to use BrPlates, see the example folder with details in the component directory or to learn more visit PlatesPHP
Initialization
To start using BrPlates, instantiate the class inside your controller. To learn more, visit PlatesPHP
Para começar a usar o BrPlates, instancie a classe dentro do seu controlador. Para saber mais, visite PlatesPHP
function
Create a unique function for a specific use.
Criar uma função única para um caso específico.
path and removePath
Group your models in different namespaces.
Agrupe seus modelos em diferentes namespaces.
data
If you have data in common across multiple models, use the data()
function.
Se possuir dados em comum em vários modelos utilize a função data()
.
render
If you want to store the model in a variable, use the render()
function. If you want to render the model directly, use the show()
function.
Se deseja armazenar o modelo em uma variável, utilize a função render()
. Já se quiser renderizar o modelo direto utilize a função show()
.
isset
To check if a model exists, simply use the isset()
function.
Para verificar se um modelo existe, basta utilizar a função isset()
widget
If you want to create a tree of components, use the widget()
Se você deseja criar uma árvore de componentes, utilize widget()
children
If you have a component that has child components, and that same component contains data
, use children()
Se existe um componente que possui componentes filhos, e esse mesmo componente contem data
utilize children()
child
If the component doesn't have any children, use child()
Se o componente não tiver filhos, utilize child()
renderMinify
Reduce code to render.
Reduzir código para renderização.
OBS: To minify js scripts, put "js-mix" in the opening of the script tag
OBS: Para minimizar scripts js, coloque "js-mix" na abertura da tag script
Credits
- Kevin S. Siqueira (Developer of this library)
- PlatesPHP (Documentation)
License
The MIT License (MIT). Please see License File for more information.