PHP code example of sy / bootstrap-link
1. Go to this page and download the library: Download sy/bootstrap-link 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/ */
sy / bootstrap-link example snippets
public function linkAction() {
$service = \Project\Service\Container::getInstance();
$user = $service->user->getCurrentUser();
$p = new \Sy\Component\Html\Element('p');
$p->addText($this->_('You can display on your page your web site or social media links'));
$this->setComponent('NORTH', $p);
$this->setComponent('CENTER', new \Sy\Bootstrap\Component\Link\Div('user-' . $user->id, true));
$this->setComponent('SOUTH', new \Sy\Bootstrap\Component\Link\Create('user-' . $user->id));
}
protected\src\Component\User\AccountPanel.php