johnsnails, on 16 December 2012 - 08:21 PM, said:
As per your suggestion I took a look at TbEditableColumn and have made some more progress.
I do have a question about it though.
On the components.html#editable page it has this example
$this->widget('bootstrap.widgets.TbGridView', array(
'type' => 'striped bordered',
'dataProvider' => new CActiveDataProvider('Region',array(
'criteria'=>array('condition'=>'id < 5'))
),
'template' => "{items}",
'columns' => array(
'country_code',
array(
'class' => 'bootstrap.widgets.TbEditableColumn',
'name' => 'name',
'sortable'=>false,
'editable' => array(
'url' => $this->createUrl('site/editable'),
'placement' => 'right',
'inputclass' => 'span3'
)
)),
));
So am I supposed to create a method called editable inside my controller?
So change this line
'url' => $this->createUrl('site/editable'),to
'url' => $this->createUrl('image/editable'),or can I use my actionUpdate method inside my image controller like this?
'url' => $this->createUrl('image/update'),ATM I have it set up to statically update image with id equal to 1 like this:
'url' => $this->createUrl('image/update', array('id'=>'1')),This updates the frontend but is not retained when the page is refreshed.
Is there anything else I need to do?
Regards,
UPDATE:
I got this working with the help of http://stackoverflow.../291573/schmunk
And have outlined how http://stackoverflow...n-in-yiibooster
Thanks for an amazing Extension

Help
This topic is locked



















