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

Jump to content

  • (23 Pages)
  • +
  • « First
  • 21
  • 22
  • 23
  • You cannot start a new topic
  • You cannot reply to this topic

[EXTENSION] Bootstrap Yii integration for Twitter's web development toolkit Rate Topic: ***** 13 Votes

#441 User is offline   NCS_One 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 18
  • Joined: 24-August 11

Posted 19 May 2012 - 04:14 PM

Ok, found the problem.

$model->main is of type boolean, I have to change true to 1 and false to 0.
0

#442 User is offline   giantdut 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 24-April 12
  • Location:Jakarta, Indonesia

Posted 20 May 2012 - 11:17 PM

Thanks Don Felipe and Alan Yii,

It's Work, now i'm in the middle of learning ajax submit. Thanks for helping me
Try to explore my intellectual capital
DuselTech
Project Undone
About Me
0

#443 User is online   luxinterior 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 43
  • Joined: 27-March 12
  • Location:Philippines

Posted Yesterday, 07:44 AM

Hi

Not sure if this is a bug but after several hours I've managed to figure out why the navigation collapse isn't working on some pages. It's related to the bootstrap extension.

I'm using the less extension too so am including the css (core and responsive) in the compiled style.css which seems to be working fine. I've set them to false in the config file so they are not included and am registering the style.css manually which again is working fine. Therefore the only settings that are true are the yii css and the js. Their appearing at the top as I would expect but for some reason they are also being included at the top of the content section automatically.

    <div id="content">
	<link rel="stylesheet" type="text/css" href="/mcq/site/assets/27833d15/css/bootstrap-yii.css" />
<script type="text/javascript" src="/mcq/site/assets/51b0c615/jquery.js"></script>
<script type="text/javascript" src="/mcq/site/assets/27833d15/js/bootstrap.min.js"></script>


I've confirmed this by setting the yii and js to false in the config and they are not included in either the top section or the content section.

Is this a bug or am I missing something?

Thanks

Lux

Did a hack in the end just to make it work correctly.

Yii::app()->clientscript
		->registerCssFile( Yii::app()->baseUrl. '/css/style.css' );

$boot = new Bootstrap();
$boot->registerYiiCss();
$boot->registerJS();

0

#444 User is offline   Hrach 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 14-May 12

Posted Yesterday, 11:15 PM

Can I have menu tab on the bottom like Tabbable?

Can I use the option 'placement' with 'bootstrap.widgets.BootMenu'?
0

#445 User is offline   Don Felipe 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 23
  • Joined: 02-January 11
  • Location:Saigon, Vietnam

Posted Today, 12:51 AM

View PostHrach, on 24 May 2012 - 11:15 PM, said:

Can I have menu tab on the bottom like Tabbable?

Can I use the option 'placement' with 'bootstrap.widgets.BootMenu'?


valid values for the "placement" option are: above, below, left, right

<?php $this->widget('bootstrap.widgets.BootTabbable', array(
    'type'=>'tabs',
    'placement'=>'below',
    'tabs'=>array(
        ...
    ),
  ),
)); ?>

of course, it works for (types) "tabs" and "pills".

No, there's no "placement" option for BootMenu. BootMenu is a standalone menu (only links - no content), place it where you want and need it. If you need to have it fixed to the top or bottom of the page, put it inside BootNavbar and use the "fixed" option and set it to "top" and "bottom" respectively.
0

#446 User is offline   Don Felipe 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 23
  • Joined: 02-January 11
  • Location:Saigon, Vietnam

Posted Today, 01:09 AM

View Postluxinterior, on 24 May 2012 - 07:44 AM, said:

Is this a bug or am I missing something?

How about posting your code?
Main config, layout, and view.

Otherwise it's quite hard to imagine what's going on on your side...
0

#447 User is offline   jasocl 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 17
  • Joined: 08-March 12

Posted Today, 01:56 AM

Hi Guys
Anyone know how to do partial inline textfield? I don't need to whole form to be inline, i've tried,

 <?php echo $form->textFieldRow($Company, 'areacode', array('type'=>'inline' ); ?> 
 <?php echo $form->textFieldRow($Company, 'areacode', array('labelHtmlOptions' => array("label" => false))); ?> 
 <?php echo $form->textFieldRow($Company, 'areacode', array('label'=>'false' ); ?> 
.....


But nothing works, any good way so that it will also keep the error message?
0

#448 User is offline   Don Felipe 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 23
  • Joined: 02-January 11
  • Location:Saigon, Vietnam

Posted Today, 02:25 AM

View Postjasocl, on 25 May 2012 - 01:56 AM, said:

Anyone know how to do partial inline textfield?

Not quite sure what you are trying to accomplish? An inline sequence of form fields in between a horizontal or vertical form... sounds like it would look weird.

How the form elements are rendered depends on the parent form (type) and you cannot switch back and forth using 1 form element hence widget only; unless you add the inline fields manually. Also, inline form elements do not show any error messages; except the inline search if I'm not mistaken.
0

Share this topic:


  • (23 Pages)
  • +
  • « First
  • 21
  • 22
  • 23
  • You cannot start a new topic
  • You cannot reply to this topic

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