Hi i'm a little new to Yii,
I have a model Client and a model Work with a Work/client_id field (FK).
I want that in Work/view/create I can click a button and search a value in Client/view/admin, retrieve the client_id and fill my Work/create/client_id....
then go on with my create form and submit my Work....
I suppose that I cannot use a dropdownlist for the many Clients in the model..
is there an easy way to do this?
I searched but I tell you that I'm a newbie, thanks
I have a model Client and a model Work with a Work/client_id field (FK).
I want that in Work/view/create I can click a button and search a value in Client/view/admin, retrieve the client_id and fill my Work/create/client_id....
then go on with my create form and submit my Work....
I suppose that I cannot use a dropdownlist for the many Clients in the model..
is there an easy way to do this?
I searched but I tell you that I'm a newbie, thanks