wahi
(Salmahussain06)
December 8, 2016, 11:51am
1
Hello,
I am in confuse state as I do not understand how to view in dropdown which are in Some other table.
For example in project table I need to get “project name” column which I’ll view in user table form as dropdown list. How to do this any help will be most most appreciated. as am a newbie am struggling pls help.
Thanks Sally.
tri
(tri - Tommy Riboe)
December 8, 2016, 12:26pm
2
Have a look at example 4.
wahi
(Salmahussain06)
December 9, 2016, 7:29am
3
Thanku it worked. I have another query in the same yii booster, I have used CKEditor of it for description .
$this->widget(
'booster.widgets.TbCKEditor',
array(
'name' => 'description',
'attribute' => 'description',
'editorOptions' => array(
'plugins' => 'basicstyles,toolbar,enterkey,entities,floatingspace,wysiwygarea,indentlist,link,list,dialog,dialogui,button,indent,fakeobjects'
),
)
);
And this is my code, its not getting inserted in the db. When I print to see the entered values the following being printed.
Array
(
[Cms] => Array
(
[id] => 7
[project_id] => 1
[title] => cms3
[status] => Active
)
[description] => desc
)
As per form description should get printed after title, but its not.
Can anyone help me out from this prob. Am waiting for your answer.
Thanks Sally.
wahi
(Salmahussain06)
December 10, 2016, 10:24am
4
Hi,
I got answer dude's, That is just in BeforeSave method add single line as following,
$this->description = $_REQUEST['description'];
, Simple.Solved.
Thanks Sally.