Customiser template crud skeleton
Bonjour, je cherche à personnaliser mes templates lors de la génération de crud mais ça ne fonctionne pas :/ j'ai suivi : http://stackoverflow.com/questions/7...eneratorbundle
J'ai donc un bundle CrudGeneratorBundle contenant :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| <?php
//src/Tib/CrudGeneratorBundle/Command/MyDoctrineCrudCommand.php
namespace Tib\CrudGeneratorBundle\Command;
use Sensio\Bundle\GeneratorBundle\Generator\DoctrineCrudGenerator;
class GenerateDoctrineCrudCommand extends \Sensio\Bundle\GeneratorBundle\Command\GenerateDoctrineCrudCommand
{
protected function configure()
{
parent::configure();
$this->setName('mydoctrine:generate:crud');
}
protected function getGenerator()
{
$generator = new DoctrineCrudGenerator($this->getContainer()->get('filesystem'), __DIR__.'/../Resources/skeleton/crud');
$this->setGenerator($generator);
return parent::getGenerator();
}
} |
et mes vues modifiées dans Resources/skeleton/crud/views/
Sauf que quand je lance un
Code:
php app/console generate:doctrine:crud
J'ai toujours les vues de base. Il y a une manip que j'ai oublié? merci