1. Go to this page and download the library: Download seablast/i18n 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/ */
/** @var int itemTypeId set in the child class */
protected $itemTypeId;
/** @var string page title beginning set in the child class */
protected $titlePrefix = "";
/** @var string page title ending set in the child class*/
protected $titleSuffix = "";
declare(strict_types=1);
namespace WorkOfStan\Protokronika\Models;
use Seablast\I18n\Models\FetchLocalisedItemsModel;
use Seablast\Seablast\SeablastConfiguration;
use Seablast\Seablast\Superglobals;
/**
* Retrieve items from database
*/
class BlogModel extends FetchLocalisedItemsModel
{
use \Nette\SmartObject;
/**
* @param SeablastConfiguration $configuration
* @param Superglobals $superglobals
*/
public function __construct(SeablastConfiguration $configuration, Superglobals $superglobals)
{
$this->itemTypeId = 1; // Blog type ID
$this->titlePrefix = "My special web - ";
$this->titleSuffix = "Blog";
$configuration->mysqli(); // dbms prefix set up even if Seablast\Auth is not present and thus it's not
//already set up in SeablastController: `$this->identity = new $identityManager($this->configuration->mysqli());
parent::__construct($configuration, $superglobals);
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.