问题标签 [yii-booster]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1072 浏览

php - How do you set the page size of TbExtendedGridView in YiiBooster module?

Is there an option in TbExtendedGridView widget where you can set the items to be shown in each page? I currently have this setting

EDIT

Thanks to @ineersa for the answer. I've modified my model's search function from this:

to this:

0 投票
2 回答
225 浏览

yii - 在 YiiBooster 中使用编辑器在表标签中应用类

我正在使用与 YiiBooster 一起提供的 Redactor。我想将表中的类应用为'table table-striped'。

有什么办法吗?

0 投票
1 回答
172 浏览

yii - 使用 URL 参数预过滤 bootstrap.widgets.TbGridView

是否可以通过 URL 参数在 TbGridView 中预定义过滤器?

0 投票
2 回答
582 浏览

yii - 来自导航栏的 Yiibooster 模态

我需要使用 Yiibooster 从导航栏中调用我的模态小部件

htmlOptions 在那里不起作用,我该怎么办?

0 投票
2 回答
686 浏览

yii - 是否可以将自定义类添加到 bootstrap.widgets.TbGridView 的表元素中?

当我使用 'htmlOptions'=>array('class'=>'table-bordered table-condensed') 时,自定义类被添加到包装 div 而不是 table 元素

谢谢!

更新: 作为最终结果,我需要以下内容:

回答:

0 投票
1 回答
979 浏览

php - Yii中的条件下拉列表文本值

我有一个下拉列表,但我的文本值取决于来自同一模型的另一个值。

我想要发生的是,如果模型中的行的client_type_id值是 ,1那么下拉文本应该company_namefirst_name. 请参考下面的代码。

甚至有可能实现这样的目标吗?

0 投票
1 回答
1208 浏览

yii - Yii Booster 向导表单小部件内容

我正在尝试将 yiibooster 的向导形式的内容放入一个小部件,但我无法使其工作。想法是客户有一个逐步的表格,在每个内容中选择一些数据。

小部件是这样的:

);

我希望在每个“内容”选项卡中都像这样:

谁能帮我?

谢谢!

0 投票
1 回答
605 浏览

javascript - yiibooster wizard validation

I have done a yiibooster wizard form, everything works perfectly BUT i want to force the customer to click in a TbExtendedGridView before he can do the next step.

In the form there are 2 TbExtendedGridView and 2 date fields.

Here is some code of the form:

The procedure would be, first step with "next" disable and when the customer clik on a row of the TbExtendedGridView "next" will be available and he can click on "next" to the next step.

Thank you so much.

CODE TESTED WORKING:

0 投票
0 回答
119 浏览

twitter-bootstrap - 更改 YiiBooster 小部件生成的 URL

我遇到了这个问题:当我使用 YiiBooster 渲染一个小部件时效果很好,但是当该小部件具有例如 JsonGridCiew 将生成一个包含我所有数据的表格以及分页菜单时,问题就来了。分页菜单加载第二页的 URL 错误。

我的项目有一个前端和一个后端,所以我的后端位于受保护的文件夹内,分页小部件尝试在 URL 中找到第二页。

本地主机/站点/报价?Car_quote_page=10

但正确的网址是:

localhost/backend.php/site/quote?Car_quote_page=10


如何backend.php自动添加到 URL?

0 投票
1 回答
258 浏览

yii - YiiBooster 模态 Dataprovider 未定义

我正在尝试使用 yiibooster 从模式窗口中的另一个模型视图加载索引视图,但该模型的数据提供者看起来是未定义的:

谢谢!

错误:

控制器代码: