Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the possibility to render append/prepend without a span wrap #433

Closed
wants to merge 3 commits into from
Closed

Conversation

frostmaind
Copy link
Contributor

Can be used like this:

Example 1

echo $form->textFieldRow($model, 'url', array(
    'appendOptions' => array('isRaw' => true), 
    'append' => $this->widget('bootstrap.widgets.TbButton', array('label' => 'Make url'), true),
));

Example 2

echo $form->textFieldRow($model, 'url', array(
    'appendOptions' => array('isRaw' => true), 
    'append' => $this->renderPartial('parts/_btn_makeurl',null,true)
));

contents of _btn_makeurl.php

<?php $this->widget('bootstrap.widgets.TbButton', array('label' => 'Make url')); ?>

booster-add2

More examples from twitter bootsrap
booster-add

@hijarian
Copy link
Contributor

hijarian commented Apr 7, 2013

Wrong branch, read https://github.com/clevertech/YiiBooster/wiki/How-to-contribute-to-this-repository before contributing, please.

@hijarian hijarian closed this Apr 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants