CrudCommand generateInputField

Hi,

i am using the v1.1 from trunk (few days old).

I try to customize my crud-views under newApp.protected.commands.views.crud.*

My goal is to have the modelname in the CHtml::inputFields- functions, but the generateInputField()- and generateInputLabel()-functions from CrudCommand ignores the attribute $modelClass. Instead of my modelname "$model" will be entered.

e.g.

model = 'UserAccount'

now crud generate:

CHtml::activeTextField($model,'Title',array('size'=>10,'maxlength'=>10));

but should be:

CHtml::activeTextField($UserAccount,'Title',array('size'=>10,'maxlength'=>10));

may be its a bug?

Greetings from Germany

me23

P.S. I don't have a google-account for creating a ticket…

[Edit]

I have update to the latest Version and tried again and found that

the Conventions-Problems is also there again:

http://www.yiiframew…672.html#msg672

This change is intentional. By using a common name 'model', the view can be potentially reused.

Hi Qiang,

ok, understood, but what is with camelCase of the Controller-Class, also intentional?

e.g if i use the model ContactForm in the crud command, the Controller

will be named ContactformController instead of ContactFormController

Greetings

me23

This could be a bug… Does it happen on 1.0, or only in trunk? How to reproduce it?

Sorry Qiang,

now where i try to reproduce this behavior, all works right.  ???

Sorry for the hoax… i examine it further and in the case that i

can reproduce it, i will report it here