1. Go to this page and download the library: Download popov/zfc-block 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/ */
popov / zfc-block example snippets
// src/Your/Module/src/Block/LoginBlock.php
namespace Stagem\Visitor\Block;
use Popov\ZfcBlock\Block\Core;
use Popov\ZfcUser\Form\LoginForm;
class LoginBlock extends Core
{
/**
* @var LoginForm
*/
protected $loginForm;
public function __construct(LoginForm $loginForm)
{
$this->loginForm = $loginForm;
}
public function getLoginForm()
{
return $this->loginForm;
}
}