Yii Framework Forum: [EXTENSION] Bootstrap - Yii Framework Forum

Jump to content

  • (44 Pages)
  • +
  • « First
  • 14
  • 15
  • 16
  • 17
  • 18
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

[EXTENSION] Bootstrap Bringing together Yii and Twitter Bootstrap Rate Topic: ***** 21 Votes

#301 User is offline   Yureshwar Ravuri 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 17
  • Joined: 30-November 11
  • Location:Hyderabad

Posted 30 March 2012 - 06:48 AM

Hi Chris,

Boot modal is not opening in Internet explorer.

Is there any solution for this. Thanks
--------------------------
Thanks,
Yureshwar Ravuri
Mail: yureshwar@yuresh.net
Web: http://www.yuresh.net
0

#302 User is offline   w00tw00t111 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 31
  • Joined: 05-January 12

Posted 30 March 2012 - 08:27 AM

Chris,

awesome extension! Thank you for working so hard on it and continuing to improve it.

I'm having a syntax issue that I'm not sure how to resolve in a buttonGroup.

I am trying to move this link into a button group:
<?php echo CHtml::link('Import History',array('distriupload/upload'), array('submit'=>array('distriupload/upload'),'params'=>array('reg_id'=>$model->registration_id,'fund_id'=>$model->fund_id),'class'=>'btn alt1'));?>

The above code works great and posts the correct information to the controller on click.

I am trying to move that link into a button group. Here is what I currently have:
<?php $this->widget('ext.bootstrap.widgets.BootButtonGroup', array(
	'type'=>'action',
	'buttons'=>array(
		array('label'=>'Update Investment','items'=>array(
				array(
					'label'=>'Import History',
					'url'=>array('distriupload/upload'),
					'htmlOptions'=>array('submit'=>array('distriupload/upload'),'params'=>array('reg_id'=>$model->registration_id,'fund_id'=>$model->fund_id)),
				),
		)),
	),
)); ?>


The link works and directs me to the correct page, however the POST data is empty so I believe the htmlOptions are not being set. Am I missing something here? Thank you!
0

#303 User is offline   cyphos 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 13-March 12

Posted 30 March 2012 - 08:58 AM

Hello

I need to have a response. thanks you a lot

View Postcyphos, on 27 March 2012 - 07:21 AM, said:

hello

I have some problems with the extension bootstrap.

I installed this extension and i configured it.

I reload the index and the theme (css, img) didn't change

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap.css" media="screen, projection" />


I think the path is bad???

Thanks you for your responses

0

#304 User is offline   w00tw00t111 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 31
  • Joined: 05-January 12

Posted 30 March 2012 - 02:23 PM

cyphos,

I had the same issue, but it was because I was overwriting the bootstrap css with my theme's css. If you open up view source on one of your pages, make sure bootstraps css is the last css stylesheet loaded.
0

#305 User is offline   thiagovidal 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 143
  • Joined: 17-February 10
  • Location:Brazil, São Paulo

Posted 30 March 2012 - 02:57 PM

Hey all.


Navbar collapse is not working. How solve this? I Have to include responsive manually?

My code:

$this->widget('bootstrap.widgets.BootNavbar', array(
'fixed'=>true,
'fluid'=>true,
'brand'=>'...',
'brandUrl'=>'...',
'collapse'=>true,
'items'=>array(
0

#306 User is offline   Yureshwar Ravuri 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 17
  • Joined: 30-November 11
  • Location:Hyderabad

Posted 30 March 2012 - 09:59 PM

Hi,

Does anyone faced this problem. I am unable to open this on Internet explorer 9

Please let me know if there is any solution for this.

View Postyureshwar, on 30 March 2012 - 06:48 AM, said:

Hi Chris,

Boot modal is not opening in Internet explorer.

Is there any solution for this. Thanks

--------------------------
Thanks,
Yureshwar Ravuri
Mail: yureshwar@yuresh.net
Web: http://www.yuresh.net
0

#307 User is offline   Chris83 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 417
  • Joined: 27-February 10
  • Location:Helsinki, Finland

Posted 31 March 2012 - 06:58 AM

View Postw00tw00t111, on 30 March 2012 - 02:23 PM, said:

cyphos,

I had the same issue, but it was because I was overwriting the bootstrap css with my theme's css. If you open up view source on one of your pages, make sure bootstraps css is the last css stylesheet loaded.

@cyphos and w00tw00t111: Actually it should be loaded before your own CSS so that you can override it where necessary. However, calling Bootstrap in the layout is not the normal way as it is loaded automatically when you enable the extension. So unless you intended to load it manually please remove the registerCss and/or registerResponsiveCss calls from your layout.
Best regards,
Chris

My contribution to the Yii community:
Auth | Bootstrap | NordCms | Rights | LESS | SEO | Img

Follow me:
Twitter | GitHub | Bitbucket
0

#308 User is offline   Chris83 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 417
  • Joined: 27-February 10
  • Location:Helsinki, Finland

Posted 31 March 2012 - 07:01 AM

View Postthiagovidal, on 30 March 2012 - 02:57 PM, said:

Hey all.


Navbar collapse is not working. How solve this? I Have to include responsive manually?

My code:

$this->widget('bootstrap.widgets.BootNavbar', array(
'fixed'=>true,
'fluid'=>true,
'brand'=>'...',
'brandUrl'=>'...',
'collapse'=>true,
'items'=>array(

You need to set 'responsiveCss' to true in your app config (defaults to false) in order for the bootstrap-responsive.css to be registered.
Best regards,
Chris

My contribution to the Yii community:
Auth | Bootstrap | NordCms | Rights | LESS | SEO | Img

Follow me:
Twitter | GitHub | Bitbucket
1

#309 User is offline   saska 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 01-April 12

Posted 01 April 2012 - 07:09 AM

Thank you for good extension!

Can i make link in BootButtonGroup with confirm dialog?

As well here:
CHtml::link('Delete2', '#', array(
'submit'=>array('item/delete','id'=>$data->id),
'confirm' => 'Are you sure?',
));
0

#310 User is offline   y_i_i 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 37
  • Joined: 26-March 12

Posted 01 April 2012 - 11:57 AM

Hii Chris,

Thanks for your extension and this new release =)
that awesome,
i try BootThumbnails but maybe i do something wrong or am I missing something ?
I'm having issue that I'm not sure how to resolve in a BootThumbnails

CException
The "dataProvider" property cannot be empty. (C:\Program Files\xampp\htdocs\swirf_admin\framework\zii\widgets\CBaseListView.php:131)


thanks :)
0

#311 User is offline   Dyp2000 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 16-March 12

Posted 02 April 2012 - 05:55 AM

View Postsaska, on 01 April 2012 - 07:09 AM, said:

Thank you for good extension!

Can i make link in BootButtonGroup with confirm dialog?

As well here:
CHtml::link('Delete2', '#', array(
'submit'=>array('item/delete','id'=>$data->id),
'confirm' => 'Are you sure?',
));


+1
0

#312 User is offline   w00tw00t111 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 31
  • Joined: 05-January 12

Posted 02 April 2012 - 06:29 AM

View Postsaska, on 01 April 2012 - 07:09 AM, said:

Thank you for good extension!

Can i make link in BootButtonGroup with confirm dialog?

As well here:
CHtml::link('Delete2', '#', array(
'submit'=>array('item/delete','id'=>$data->id),
'confirm' => 'Are you sure?',
));

+2
0

#313 User is offline   cyphos 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 13-March 12

Posted 02 April 2012 - 06:37 AM

Hello w00tw00t111

This my code source for the head

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="/demo2/css/bootstrap.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="/demo2/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="/demo2/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="/demo2/css/main.css" />
	<link rel="stylesheet" type="text/css" href="/demo2/css/form.css" />

	<link rel="stylesheet" type="text/css" href="/demo2/assets/1326bc78/css/bootstrap.min.css" />
<script type="text/javascript" src="/demo2/assets/1ad4b51d/jquery.js"></script>
<title>My Web Application</title>
</head>


View Postw00tw00t111, on 30 March 2012 - 02:23 PM, said:

cyphos,

I had the same issue, but it was because I was overwriting the bootstrap css with my theme's css. If you open up view source on one of your pages, make sure bootstraps css is the last css stylesheet loaded.

0

#314 User is offline   w00tw00t111 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 31
  • Joined: 05-January 12

Posted 02 April 2012 - 07:08 AM

saska and Dyp2000,

for the time being until we find out the official way of doing this. I've pretty much hardcoded Bootstrap style the code for onclicks into my code. See example below:

<div class="btn-toolbar">
<div class="btn-group">
<a data-toggle="dropdown" class="btn btn-action dropdown-toggle" href="#">Update Investment <span class="caret"></span></a>
<ul class="dropdown-menu">
<li class="">
<?php
echo CHtml::link('Add Item','#', 
	array('onClick'=>
			'addTrans._addTrans_url="' . Yii::app()->createUrl('ortransaction/create',array('investment_id'=>$model->id,'type'=>OrTransaction::TYPE_BUY)) . '";
			{addTrans()};
			$("#dialogAdd' . OrTransaction::TYPE_BUY .'").dialog("open");
			return false;',
	));
?>
</li>
<li class="">

<?php echo CHtml::link('Import Data',
	array('distriupload/upload'), 
	array('submit'=>
		array('distriupload/upload'),
		'params'=>array(
			'reg_id'=>$model->registration_id,
			'fund_id'=>$model->fund_id
		)
	)
);?>
</li>
</div>

0

#315 User is offline   w00tw00t111 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 31
  • Joined: 05-January 12

Posted 02 April 2012 - 07:11 AM

Cyphos,

2 things:

1. Are you sure that
<link rel="stylesheet" type="text/css" href="/demo2/css/bootstrap.css" media="screen, projection" />
is a valid path?

2. Use firebug / chrome and 'inspect element' your page. Where the image is, see what css file is rendering that content. If it is your main.css then you have found your problem. Main.css is overwriting your bootstrap css for this file/image/field etc. So, you can remove that line from your main.css and bootstrap.css should handle it for you.
0

#316 User is offline   Chris83 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 417
  • Joined: 27-February 10
  • Location:Helsinki, Finland

Posted 02 April 2012 - 01:58 PM

@saska, Dyp2000, w00tw00t111: Here you go...

$this->widget('bootstrap.widgets.BootButtonGroup', array(
	'buttons'=>array(
		array('label'=>'Delete2', '#', 'htmlOptions'=>array(
			'submit'=>array('item/delete', 'id'=>$data->id), 
			'confirm'=>'Are you sure?',
		)),
	),
));

I didn't try the code but it should work.
Best regards,
Chris

My contribution to the Yii community:
Auth | Bootstrap | NordCms | Rights | LESS | SEO | Img

Follow me:
Twitter | GitHub | Bitbucket
0

#317 User is offline   Dyp2000 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 16-March 12

Posted 02 April 2012 - 09:46 PM

View PostChris83, on 02 April 2012 - 01:58 PM, said:

@saska, Dyp2000, w00tw00t111: Here you go...

$this->widget('bootstrap.widgets.BootButtonGroup', array(
	'buttons'=>array(
		array('label'=>'Delete2', '#', 'htmlOptions'=>array(
			'submit'=>array('item/delete', 'id'=>$data->id), 
			'confirm'=>'Are you sure?',
		)),
	),
));

I didn't try the code but it should work.


Nice. It's working! Thank you. But I thought this would work here:

	$this->widget('bootstrap.widgets.BootMenu', array(
	    'type'=>'pills',
	    'items'=>array(
                array('label'=>'Delete2', '#', 'htmlOptions'=>array(
                        'submit'=>array('item/delete', 'id'=>3), 
                        'confirm'=>'Are you sure?',
                )),
            )
	)); 

Have any ideas?
0

#318 User is offline   saska 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 01-April 12

Posted 02 April 2012 - 11:44 PM

View PostDyp2000, on 02 April 2012 - 09:46 PM, said:

Nice. It's working! Thank you. But I thought this would work here:

	$this->widget('bootstrap.widgets.BootMenu', array(
	    'type'=>'pills',
	    'items'=>array(
                array('label'=>'Delete2', '#', 'htmlOptions'=>array(
                        'submit'=>array('item/delete', 'id'=>3), 
                        'confirm'=>'Are you sure?',
                )),
            )
	)); 

Have any ideas?


Yes, when i asked about confirmation dialog, i have same question had in mind: how make dialog confirmation in items link of BootButtonGroup?
0

#319 User is offline   cyphos 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 13-March 12

Posted 03 April 2012 - 08:16 AM

Hello


On first, I need to understand.
- where I pu this bootstrap's css? which directory?
- I must configure the path of css in the file main.php in the layout? Or it's automatic?
- the code is exact?
	'preload'=>array('log','bootstrap'),




View Postw00tw00t111, on 02 April 2012 - 07:11 AM, said:

Cyphos,

2 things:

1. Are you sure that
<link rel="stylesheet" type="text/css" href="/demo2/css/bootstrap.css" media="screen, projection" />
is a valid path?

2. Use firebug / chrome and 'inspect element' your page. Where the image is, see what css file is rendering that content. If it is your main.css then you have found your problem. Main.css is overwriting your bootstrap css for this file/image/field etc. So, you can remove that line from your main.css and bootstrap.css should handle it for you.

0

#320 User is offline   Chris83 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 417
  • Joined: 27-February 10
  • Location:Helsinki, Finland

Posted 03 April 2012 - 02:35 PM

View Postcyphos, on 03 April 2012 - 08:16 AM, said:

Hello


On first, I need to understand.
- where I pu this bootstrap's css? which directory?
- I must configure the path of css in the file main.php in the layout? Or it's automatic?
- the code is exact?
	'preload'=>array('log','bootstrap'),


You only need to extract the extension (preferably to extensions) and it will work.
Best regards,
Chris

My contribution to the Yii community:
Auth | Bootstrap | NordCms | Rights | LESS | SEO | Img

Follow me:
Twitter | GitHub | Bitbucket
0

Share this topic:


  • (44 Pages)
  • +
  • « First
  • 14
  • 15
  • 16
  • 17
  • 18
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

4 User(s) are reading this topic
0 members, 4 guests, 0 anonymous users