Yiibooster

@mirunho: Thanks for the hint! I’ll start there.

I wrote some fairly easy to follow instructions a page or so up in this thread

Great work!

Hi i want to know is somebody can make to put Number format to TbExtendedGridView whit the

TbTotalSumColumn Column…

i try to do but the only thing i can do was modify the file tbtotalSumColumn.php (line 38 ) to format the number was are number and do nothing when was other thing…

maybe you can helpe me to do this more efficient… this the code…





if(is_numeric($value))

{

			$this->total += $value;

                    	echo number_format($value,2);

 }

  	else

       		echo $value;






thanks…

Hi, I am trying to implement the date range input. When I use:


<?php echo $form->dateRangeRow($model, 'dateRangeField',         array('hint'=>'Click inside! An even a date range field!.',         'prepend'=>'<i class="icon-calendar">>/i>',         'options' => array('callback'=>'js:function(start, end){console.log(start.toString("MMMM d, yyyy") + " - " + end.toString("MMMM d, yyyy"));}')         )); ?>

The calendar doesn’t appear when I click the box.

I would also like to know if there is a way to configure a date range with two different ‘boxes’. Like the one found here: http://jqueryui.com/datepicker/#date-range

Thanks a lot

I’m not sure if this work, but you may try add:


'type' => 'raw'

Hi there,

Could someone please give me a bit of insight on how to use the TbImageColumn widget ? In particular, how to set the $imagePathExpression, $row, $data when calling the widget in my view :


'columns' => array_merge(array(array('class'=>'bootstrap.widgets.TbImageColumn')),$columns)));

where and how do I set my image path for each row, considering I have the paths stored in a database table ?

An example would be great … thanks :)

Hi, I want to collaborate with this awesome extension by telling something that I found is not working as expected. The bad news is I don’t know how to fix it ;(

The TbPager aligment property is not working. The problem is that the property updates the htmlOptions of CLinkPager. And what this does is to add the class to the html tag ‘ul’… not to the div tag where it should be.

The problem might be in the ClistPager and not here in fact… i am too newby…

I appreciate any help!

Thanks!

German

I fixed it this way: I pass ‘pagination pagination-right’ to ‘pagerCssClass’ property of TbListView… I hope it helps to another one!

I am using the sortable rows feature of TbExtendedGridView, and I enconter a problem when I enable CSRF validation. How can I pass the CSRF token when I update the sorting? I have set ‘sortableAjaxSave’=>true.

How was the asterik (*) as required sign in form got the info that the field was required?

from rule set Model or from directly table infoscheme?

thanx

From Active Record model rules.

Hi,

Do you guys have any issue viewing TbDetailView on iPhone 3GS ? I found out something weird that i cannot click on breadcrumbs on mobile view only when i’m using TbDetailView. Unlike TbGridView, it has responsiveTable option and it works on iPhone.

Any suggestion? or input? or am i the only person who is facing this situation…? :blink:

Hi guys,

I think i found what went wrong.In my design i’ve included these widgets:

In my main view

  1. Navigation

  2. breadcrumbs

In my organization_view where i called renderPartial:

  1. TbModal

  2. TbBox

and inside TbBox, i called another renderPartial with options set to true.

It seems that when i removed the TbModal in my view everything goes well.

I discover this when i tested with my IPhone and every time i try to click the breadcrumbs the button in the TbModal get high-lighted even though it was on hide. That is how i figured it out.

This explanation is just IMHO as a newbie…i just have to move on with my development not to use TbModal as for a while on my view and i don’t want to assume that TbModal also has bug.

i don’t think this is a bug at all for TbDetailView.

my bad …sorry

How to use select2Row for multiselect Purpose:

For single select the syntax is like:


<?php echo $form->select2Row($model,'hotel_class_id', array('data'=>CHtml::listData(HotelClass::model()->findAll(),'id', 'name'), 'class'=>'span10')); ?>

But when i want to use select2Row for multiselect purpose then what will be the syntax?

I am in problem. Please help me.

Thanks in advance

How to use select2Row for multiselect Purpose:

when i use the bellow given syntax:


echo $form->select2Row($model, 'places', array(

                    'asDropDownList' => false,

                    'options' => array(

                    'tags' => CHtml::listData(Place::model()->findAll(),'id', 'name'),

                    'placeholder' => 'type places',

                    'width'=>'85%',

                    'tokenSeparators' => array(',', ' ')

                    )));

Then the auto suggested value is not shown and you can put any value.

Whats the problem with the code?

Thanks.

Is there anyone who can give the solution?

Any suggestion will be highly appreciated.

Thanks a lot for your time.

The option ‘tags’ is expecting an array of strings and not an associative array as returned by listData().

Add the following function to your model class (‘Place’)




function getColumn2Array($attribute=null) 

{

	if(self::model()->hasAttribute($attribute) == false) return '';


	$criteria = new CDbCriteria();

	$criteria->select = 'DISTINCT '.$attribute; //no need for repetitive data here

	$criteria->order = $attribute.' ASC';

	$results = self::findAll($criteria);

        $data = array();

        foreach($results as $result)

		$data[] = $result[$attribute];

	return $data;

}



Note: Yii does not yet have a build-in function like this for ActiveRecords.

Then, adjust the ‘tags’ line accordingly




'tags' => $model->getColumn2Array('name'),

Hi everybody,

I had a former project that I have to update.

That project embedded many bootstrap widgets from an old version (with the Boot… names).

So, I have decided to dig it out and to update it.

I nearly succeeded in but I’m stuck with TbTabs and GridViews :

I have a view with two Tabs which contains a GridView (the yii original one).

With the former bootstrap, filters worked like a charm. But with this version (Yiibooster 1.0.5-7), the filters on column work once but re-render the tabs (once).

So, after just applying a filter, I have four tabs which contains each a gridview and I can’t apply a new filter (the loading gif is launched but the application hangs - no grid ajax update).

Have you ever faced this problem?

Many thanks for your answers

I found my answer…

My Gridview was not really a simple gridview. I have added buttons that launch dialogs (with quickdlgs extension). The problem was these buttons re-rendering through Ajax (they are included in the GridView Component). They broke the whole re-rendering process.

So, I have disabled them and the gridview works now like a charm.

I like my Auto-answers…