Download the PHP package wepesi/view without Composer
On this page you can find all versions of the php package wepesi/view. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor wepesi
Package view
Short Description simple view engine to share data acros a pages
License apache-2.0
Package view
Short Description simple view engine to share data acros a pages
License apache-2.0
Please rate this library. Is it a good library?
Informations about the package view
wepesi-view
Simple view engine, and share data across pages
Introduction
Create directory where all the view file will loaded. eg: views
the class has few method to be used in order to make your view work as expected.
assign
: help assign a value to the variable. It has two parameters, the first is the name of the variable and the second parameter is the value of the variable.render
: helps display the contents of your file. Is like a parameter, and it's the name of the file. Note: All files must be defined in the root directory of the view.setLayout
: help set the layout of the pages.
Installation
Usage
Without layout
With layout
In case you are want to set the layout, you should define the $contentpages
variable into your layout file where the view content will be applyed.
No need to specify the extension in case it is a php file.
All versions of view with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package wepesi/view contains the following files
Loading the files please wait ....