Yiibooster

Hi everybody,

i have this problem:

I have an Yii app and I use YiiBooster (NO YiiBoilerplate).

I noticed that I can’t open links using middle mouse button.

with Chrome and IE8 it work correctly but with firefox no!

help me please ;)

bye!!

I’m trying to wrap my mind around the json grid widget. So far we have yet to get a working example. Could you update your documentation on the website to include an example controller action to handle the ajax post backs from your grid component?

Have you published the controller / view to generate the table that’s given in the sample of on your website anywhere? You show how to use the widget, but now how to actually use it at all.

I would post the link to the spot on your page where you demonstrate the widget, but I am not yet allowed to post links.

Thanks!

Nathan

this is wonderful tool for yii users. Amazing !

Thanks .

I’m working through a proof-of-concept using YiiBooster & I ran into a bit of trouble using the wizard widget. I was hoping someone could tell me if what I am attempting is possible out of the box.

Is is possible to use


$this->renderPartial('_view')

in the content array of bootstrap.widgets.TbWizard the same way the docs show for bootstrap.widgets.TbBox?

Was the intention of this wizard to be a type of form wizard or am I trying to make it something it’s not?

  • [size="2"]yiibooster.clevertech.biz/components.html#boxes[/size]
  • [size="2"]yiibooster.clevertech.biz/components.html#wizard[/size]

When I add the renderPartial the $content ends up above the on the widget on the page and is not controlled by the widget. What am I missing?





<?php $this->widget('bootstrap.widgets.TbWizard', array(

	'type' => 'pills', // 'tabs' or 'pills'

	'pagerContent' => '<div style="float:right">

		<input type="button" class="btn button-next" name="next" value="Next" />

		</div>

		<div style="float:left">

		<input type="button" class="btn button-previous" name="previous" value="Previous" />

		</div>

		<br /><br />',

	'options' => array(

	'nextSelector' => '.button-next',

	'previousSelector' => '.button-previous',

	// 'firstSelector' => '.button-first',

	// 'lastSelector' => '.button-last',

	'onTabShow' => 'js:function(tab, navigation, index) {

	var $total = navigation.find("li").length;

	var $current = index+1;

	var $percent = ($current/$total) * 100;

	$("#wizard-bar > .bar").css({width:$percent+"%"});

	}',

	// 'onTabClick' => 'js:function(tab, navigation, index) {

	// alert("Tab Click Disabled");return false;

	// }',

),

'tabs' => array(

array('label' => 'Step 1', 'content' => $this->renderPartial('_form', array('model'=>$model)), 'active' => true),

array('label' => 'Step 2', 'content' => 'Step 2 Content'),

array('label' => 'Step 3', 'content' => 'Step 3 Content'),

),

));

?>








	public function actionCreate()

	{

		$model=new PersonType;


		if(isset($_POST['PersonType']))

		{

			$model->attributes=$_POST['PersonType'];

			if($model->save())

				$this->redirect(array('view','id'=>$model->person_type_id));

		}


		$this->render('create',array(

			'model'=>$model,

		));

	}



Thanks in advance. Any help would greatly speed up my development.

Yii Boster -> TbSelect2:

Is there a way to put a label on the TbSelect2 control in a form?

I can add




<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(

	'id'=>'indicator-form',

	'enableAjaxValidation'=>false,

        'type' => 'horizontal',


)); ?>


<label>whatever</label>

<?php $this->widget('bootstrap.widgets.TbSelect2', array( . . . . .



But that puts the label on the line above the control, I’d like it inline with the control.

Any way of doing this with the built in functionality of the control, or do I have to roll some custom HTML to do it?

Hi,

I was wondering, how would you go about adding your own style Yii button. I know it comes with “success” “warning” “danger” “inverse”. I have a different button i’d like to be able to use, but wasn’t sure how to link them together?

Thanks

Jonny :)

Hey

First of all, GREAT WORK…

Making my life so much easier :D

But i was wondering if it in any way was possible to somehow merge TbExtendedGridView with TbGroupGridView…?

I’ve got some grids where i would very much like to use functions from both of above extensions…

E.g: The Bulk Actions, and an Extra Row from the group extension…

At the moment I’m using TbGroupGridView and made my own Bulk action script, but when wanted to add some extended summary, I thought about a possible merge… :)

// Casper

Yii-app will surely work better with yiistrap than yiibooster

Have you tried extending the widget and render it the way you want :)… there is also a select2Row function, check it over there

Working on a brand new library call Yiiwheels… as I do not longer support YiiBooster (is property of Clevertech), there will be major improvements to the widgets