Skip to content

Repository files navigation

Template Bundle

Symfony bundle to generate template with a nice design in your Symfony application.

Support PalestineLatest Stable VersionTotal DownloadsLatest Unstable VersionLicense

Installation

The easiest way to install and configure the TemplateBundle with Symfony is by using Composer: Add the benmacha/templatebundle package to your require section in the composer.json file.

$ composer require benmacha/templatebundle ^1.0

Add the Bundle to your application's kernel:

<?phppublicfunctionregisterBundles()
{
$bundles = array(
// ...newBenmacha\TemplateBundle\BenmachaTemplateBundle(),
// ...
);
...
}

Configure the Bundle in your config.yml:

benmacha_template:
site_name: 'Ben Macha'#requiredlogo_path: 'bundles/benmachatemplate/img/logo-2.png'#requiredlogo_path_mobile: 'bundles/benmachatemplate/img/logo-2-mob.png'#requireduser:
class: AppBundle\Entity\Userpicture: image

Usage

To generate a CRUD, run this command NB: The menu will be generated

$ php bin/console benmacha:generate:crud

Don't forget to extend the repository like this

<?phpnamespaceAppBundle\Repository;
useBenmacha\TemplateBundle\Repository\BaseRepository; //add this lineclass UserRepository extends BaseRepository // make this extend
{
// Your code 
}

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages