php function login routes this- view- generate login id_referer isset

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
<?php
function login($routes) {
$this->view->generate('login', [
'id_referer' => isset($routes[0]) ? intval($routes[0]) : 0
]);
}
function start($routes) {
$this->view->generate('start', [
'id_referer' => isset($routes[0]) ? intval($routes[0]) : 0
]);
}