1. Go to this page and download the library: Download gsferro/responseview 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/ */
gsferro / responseview example snippets
public function index()
{
$this->addData("nome", "Meu nome");
$this->addData("sobrenome", "Sobrenome");
...
return $this->view('nome_view');
}
public function __construct()
{
$this->addMergeData("sexos", ["M", "F"]);
$this->addMergeData("situacao", ["Ativo", "Inativo"]);
}
public function __construct()
{
$this->addTitulo("Titulo da pagina"); // $titulo
$this->addSubTitulo("Sub titulo da pagina"); //$subTitulo
}
public function exemplo()
{
// Se voce não setar, ele colocará sempre o titulo da página
$this->addBreadcrumb("Titulo"); // breadcrumb
// ou informe o titulo e uma rota para click
$this->addBreadcrumb("Titulo", route('index')); // breadcrumb
// colocando icone no link
$this->addBreadcrumb("Titulo", route('index'), "home"); // breadcrumb
// colocando icone no nome
$this->addBreadcrumb("Titulo", null, "home"); // breadcrumb
// se quiser criar uma sequencia migralhas
$this->addBreadcrumb("titulo"); // titulo
$this->addBreadcrumb("titulo 2", route('index')); // titulo > titulo 2
$this->addBreadcrumb("titulo 3", null, 'file-o'); // titulo > titulo 2 > titulo 3
}
public function exemplo()
{
$this->addArrayData([
"sexos" => ["M", "F"],
"situacao" => ["Ativo", "Inativo"]
]);
}
public function __construct()
{
$this->addArrayMergeData([
"sexos" => ["M", "F"],
"situacao" => ["Ativo", "Inativo"]
]);
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.