UPDATE:
I got this working with the help of http://stackoverflow.com/users/291573/schmunk
And have outlined how http://stackoverflow.com/questions/13925917/how-do-i-use-configure-tbeditablecolumn-in-yiibooster
Thanks for an amazing Extension
UPDATE:
I got this working with the help of http://stackoverflow.com/users/291573/schmunk
And have outlined how http://stackoverflow.com/questions/13925917/how-do-i-use-configure-tbeditablecolumn-in-yiibooster
Thanks for an amazing Extension
I have 2 columns, first one is date, and second is integer.
How to set date column from db to x axis on Grid/Chart?
I try many ways, but can’t figure out.
Any help be appreciated.
Hello,
I had a case while I need to custom yii booster css path assets, How is it goin ?
any halp, thanks
I have additional problem after updating yiibooster to version 1.0.5. I had a header button on tbbox, which after clicking opened CJuiDialogBox. After updating it is now working. I understand that the api of widgets is changing, but it is not good to guess what was changed and how to use new api. Please, I am newbye on programming, refer to documentation of widgets and their changes.
I changed headerActions to headerButtons and make appropriate changes on other properties, but my dialog box is not working now?
I have already solved ajax dialog box issue. Thanks for this extension. It is awesome! But there is lack of documentation.
Hello guys
Im trying to change toggleButtonRow enabled and disabled labels by passing values into htmlOptions array like this:
<?php echo $form->toggleButtonRow($model, 'static' , array('enabledLabel'=>'Yes' , 'disabledLabel'=>'Yes')); ?>
But its not working, I keep getting the default values in the TbToggleButton.php file.
The only way to do it is to change it directly from the file!
Am I missing something here or doing something wrong?
Thanks
Hi Alaa Abdelhaq,
It is said in docs to toggleButtonRow:
So, just wrap your ToggleButton options into array, e.g.
<?php echo $form->toggleButtonRow($model, 'static' , array('options'=>array('enabledLabel'=>'Yes' , 'disabledLabel'=>'Yes'))); ?>
Hi. Im loving the yii-booster, thanks for sharing!
Im having some problems with markdown.converter.js.
I have included the
Yii::app()->bootstrap->registerAssetJs('markdown.converter.js', CClientScript::POS_HEAD);
and my view looks something like this:
<script type="text/javascript">var text = "<?php echo CHtml::encode($data->text); ?>";
var converter = new Markdown.Converter();
var html = converter.makeHtml(text);
alert(html);
</script>
and futher down the view:
'content' => '<script type="text/javascript">document.write(html);</script>'
But it returns a empty string.
What have i done wrong?
It is running before the page has loaded. Try ‘CClientScript::POS_READY’ instead.
I am trying to make the Redactor widget work when enableCsrfValidation is set to true.
I am using the ‘hiddenFields’ option, but it’s not working.
Here’s my (not working) code:
<?php
$csrf_token = Yii::app()->request->csrfToken;
?>
<?php /** @var BootActiveForm $form */
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
'id'=>'horizontalForm',
'type'=>'horizontal',
)); ?>
<snipped>
<?php echo $form->redactorRow($model, 'intro', array('class'=>'span4', 'rows'=>5, 'options' => array(
'fixed' => true,
'imageUpload'=>Yii::app()->createUrl('site/imageUpload'),
'imageGetJson'=>Yii::app()->createUrl('site/imageList'),
'hiddenFields' => array(
'YII_CSRF_TOKEN' => $csrf_token,
),
))); ?>
Did anyone get image uploads working with CSRF validation?
Hi! I have implemented the yii booster fileupload. I have a question, in data[] array i have the options (url and thumbnail_url), but my images are stored in my database. How i can change this options to get the images (real and thumb) from my database? Have a alternative method?
You will have to create your own CAction to handle that…
I would like to apologize for the delay of the new launch (version 1.0.6. will include about 8 more widgets and the slow loading is going to be fixed) but I got trapped into an enormous amount of work. So I beg you patience.
Cheers and happy new year to all of you!
Happy New Year Antonio
YiiBooster is a truly excellent library!
It even made me go to the dark side and start using Bootstrap.
Thanks for providing this great extension!
I installed booster ver 1.0.5 to Yii ver 1.1.12, and tried to use the TbExtendedGridView (for Fixed Header with Filter feature) for a table with about 20 columns.
It sort of works but here are the issues I am running into:
Because of the number of columns, the div of TbExtendedGridView grow beyond the main div (span-23, I believe, sorry, i am not a FE guy);
The default buttons became super tiny.
Thanks a lot and Please advice
It seems to be a problem in Tbbox widget, ver 1.0.5. Property "headerCtrl" is used at line 118 (if ($this->title !== false || $this->headerCtrl !== false)) but it is not declared. Thanks
Hi
How to disable booster for some page?
Hi Antonio and everyone else!
First off - Yiibooster is a wonderful extension, thank you so much for sharing this out. I have a yii site that I’ve built out rather quickly onto an existing database using quickdlgs iframe modal boxes for updates/view forms etc. These modals are triggered from the typical yii framework admin page gridview buttons (actually from EJuiDlgsColumn). This has worked well for quickly getting the site launched but then I stumbled on to Yiibooster and of course I really want to retro fit to leverage all of the great widgets.
Is there a way that you or anyone here that is leveraging yiibooster know of to add a button that triggers a modal form from a yii gridview row or yiibooster TbGridView row? This has been the one thing that’s been keeping me from retrofitting the extension. Currenty I’m doing
'class'=>'EJuiDlgsColumn',
'template'=>'{update}{view}',
'updateButtonImageUrl'=>Yii::app()->baseUrl .'/images/boltcharge.png',
'updateDialog'=>array(
'controllerRoute' => 'reboot',
'actionParams' => array('id'=>'$data->id'),
'dialogTitle' => 'Remote Reboot',
'dialogWidth' => 650, //override the value from the dialog config
'dialogHeight' => 450,
'closeButtonText' => 'Close',
'closeOnAction' => true,
'refreshGridId' => 'server-grid'
),
in the view and then in the controller actionUpdate something like:
$model=$this->loadModel($id);
// Uncomment the following line if AJAX validation is needed
// $this->performAjaxValidation($model);
if(isset($_POST['Server']))
{
$model->attributes=$_POST['Server'];
if($model->save()) {
EQuickDlgs::checkDialogJsScript();
$this->redirect(array('admin','id'=>$model->id));
}
}
EQuickDlgs::render('update',array('model'=>$model));
This pops a modal window up that submits updated model back and triggers an ajax refresh of the admin grid. This has even worked well for creating one off forms that don’t inherit functionality from the framework. After I retrofitted I’ve noticed that a normal admin grid with view/update/delete buttons on the right only pops open the modal for update (js errors out on any viewdialog functions). My next thought was use the yiibooster modal window and renderPartial on the view forms as needed but I can’t seem to get the button to work from within either gridview row.
Does anyone have any suggestions for triggering the modal from a gridview row (either base yii or yiibooster)? As time permits I will refactor completely into booster but this seems like the only issue holding back a retrofit for my next QA push.
Cheers to all and Happy New Years!
i am a new user in YII,
what is the difference between YiiBoilerplate and YiiBooster…
what is the job for each one?
THX for this great framework and yiibooster!
Regarding bootstrap.widgets.TbTotalSumColumn:
How can I format only the footer of the sum column?
I had the experience that with the formatter activated like shown below, the sum is not working.
'columns' => array(
...
array('name' => 'entity.ent_name', 'header' => 'Entity', 'footer' => 'Total Amount EUR / GBP'),
array(
'name' => 'dc_amount',
'header' => 'Amount EUR',
'class' => 'bootstrap.widgets.TbTotalSumColumn',
'value'=> "Yii::app()->numberFormatter->formatCurrency('dc_amount',
Yii::app()->params->currencyEUR)",
),
array(
'name' => 'dc_amount2',
'header' => 'Amount GBP',
'class' => 'bootstrap.widgets.TbTotalSumColumn',
'value'=> "Yii::app()->numberFormatter->formatCurrency('dc_amount2',
Yii::app()->params->currencyGBP)",
),
...
),
Hi guys, thanks for YiiBooster its really great.
Just one question, How to set my main.css file to be first to read ?
bootstrap.css override my main.css and pages where i use yiibooster looks different than others, couse of override for example h1 etc …
Thanks for any help