codeconsortium / ccdn-gui-bundle
此包提供了一种从您的自定义服务生成Twig可渲染UI的方法
dev-master
2015-03-02 00:20 UTC
Requires
- php: >=5.5
- symfony/framework-bundle: ~2.0
This package is not auto-updated.
Last update: 2024-09-14 16:57:05 UTC
README
使用类派生类型构建的Twig可渲染GUI构建器
此项目是一个正在进行中的实验性工作
用法
$productMeta = $this->factory->create(SidebarListSubMenu::getType())->setLabel('Product Meta')->setIcon('icon-folder'); // creates link before before new list?
$productMeta->addLink('Categories', 'foo', null, []);
$productMeta->add($this->factory->create(Link::getType())->setLabel('Attributes'));
$productMeta->add($this->factory->create(Link::getType())->setLabel('Products'));
$menu->add($productMeta);