PHP code example of moro / symfony-layout
1. Go to this page and download the library: Download moro/symfony-layout 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/ */
moro / symfony-layout example snippets
use Moro\SymfonyLayout\Annotation\Layout;
class Controller {
/**
* @Layout("layout_name")
*/
function action() {
//...
}
}
use Moro\SymfonyLayout\Manager\LayoutManager;
class Controller {
function action(LayoutManager $manager) {
$manager->setName("layout_name");
//...
}
}