This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Rubricate\Logger\AbstractLogger; | |
class TestLog extends AbstractLogger | |
{ | |
protected static $ex = '.log'; | |
protected static function getDirFullPath() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2022-09-20 14:05:00 DEBUG: Array | |
( | |
[0] => lorem | |
[1] => ipsum | |
[2] => dolor | |
) | |
2022-09-20 14:05:00 DEBUG: int(1) | |
2022-09-20 14:05:00 DEBUG: bool(true) | |
2022-09-20 14:05:00 DEBUG: some text here | |
2022-09-20 14:05:00 DEBUG: float(5.2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$arr = [ | |
'lorem', | |
'ipsum', | |
'dolor' | |
]; | |
$int = 1; | |
$bool = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Rubricate\Logger\AbstractLogger; | |
class TestLog extends AbstractLogger | |
{ | |
protected static function getDirFullPath() | |
{ | |
return '/path/to/directory/logs/'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Rubricate\Element\CreateElement; | |
use Rubricate\Element\StrElement; | |
$select = new CreateElement('select'); | |
$select->setAttribute('name', 'latim'); | |
$opt[] = 'lorem'; | |
$opt[] = 'ipsum'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Rubricate\Element\CreateElement; | |
$firstName = new CreateElement('input'); | |
$firstName->setAttribute('type', 'text'); | |
$firstName->setAttribute('name', 'firstName'); | |
$firstName->setAttribute('class', 'form'); | |
$firstName->setAttribute('required'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Rubricate\Element\CreateElement; | |
$i1 = new CreateElement('img'); | |
$i1->setAttribute('src', 'image.png'); | |
$i2 = new CreateElement('img'); | |
$i2->setAttribute('src', 'image.png'); | |
$i2->setAttribute('class', 'img-circle'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Rubricate\Element\CreateElement; | |
use Rubricate\Element\StrElement; | |
$h1 = new CreateElement('h1'); | |
$h1->setAttribute('class', 'tx_prm'); | |
$h1->addChild(new StrElement('Lorem ipsum')); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Rubricate\Element\CreateElement; | |
$name = new CreateElement('input'); | |
$name->setAttribute('type', 'text'); | |
$name->setAttribute('name', 'name'); | |
$name->setAttribute('required'); | |
$email = new CreateElement('input'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use App\Helper\ViewHelper; | |
$view = new ViewHelper(); | |
$data['title'] = 'Home'; | |
$data['header'] = 'Lorem ipsum'; | |
$data['body'] = 'Some text here'; |