IslamAlaa
IslamAlaa

Reputation: 91

Making 2 admin modules for the same model in symfony 1.4

I want to ask how to make 2 admin modules for the same model

I have a model called client. and I made an admin module for it with the name of client

now when I try to make another module with another name like client_2. I doesn't make it.

So, please help me guys, is this issue?

Upvotes: 1

Views: 430

Answers (2)

kiffle
kiffle

Reputation: 11

i had the same problem and found a solution,

  1. go to the routing.yml and copy and paste the route of the first module for the model

  2. Change the name of the route and the prefix path to client_2

  3. Do "php symfony doctrine:generate-admin backend Client --module=client_2" and everything is fine i guess :P

Upvotes: 1

arsenik
arsenik

Reputation: 1017

You can specify the name of the module :

php symfony doctrine:generate-admin backend Client --module=client_2

Upvotes: 0

Related Questions