PHP code example of lare_team / php_lare
1. Go to this page and download the library: Download lare_team/php_lare library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lare_team / php_lare example snippets
use Lare_Team\Lare\Lare as Lare;
...
Lare::set_current_namespace('Current.Lare.Namespace');
// View:
if (!Lare::matches('Lare')) {
// Do everything you need only for the whole site.
}
if (!Lare::matches('Lare.Home')) {
// Do everything you need to handle the home page.
}
// Head-Template:
if (!Lare::matches('Lare')) {
<html>
<head>
// Scripts and Stylesheets could be loaded here, no need to reload them when changing the page
<script...
<link...
} else {