Wiki

Sorted by date (updated)X
Displaying 41-50 of 688 result(s).

Yii 1.1: Cgridview: Use Special Variable $Data In The Options Of A Button (I.e. Evaluate Options Attribute)

Updated 2 months ago by Louis GacTutorials0 comments – viewed 1,511 times – ( +4 ) – version 1.1
For each column of the CGridView, we can specify customized buttons : Customize Buttons in CGridWiew

How to translate and do the translations the easy way

Updated 2 months ago by Roman SolomatinHow-tos3 comments – viewed 44,240 times – ( +26 / -2 ) – version 1.1
I wanted to keep all the I18N related translations in separate files, so that I would not need to modify the view files or the model files every time I need to update or fix the translations of application's source language.
tags: i18n

CGridView. Add custom class to table rows preserving original „odd“ and „even“

Updated 2 months ago by yugeneHow-tos2 comments – viewed 18,465 times – ( +4 ) – version 1.1
Lets say we have such a CGridView widget showing a list of users for administrator. Users have status „active“ or „disabled“. Grid widget puts class „odd“ or „even“ to rows and we want to preserve this. So we want to add a class „disabled“ to rows with disabled users.

Email template functionality with manage content from database

Updated 2 months ago by yugeneTutorials5 comments – viewed 10,792 times – ( +5 / -3 ) – version 1.1
I hadn't specify whole flow as I assume you know yii crud flow well, and Quick understand of my specified admin flow.. :)
tags: email, template

View a related field in CGridView

Updated 2 months ago by Rafael J TorresTips1 comment – viewed 1,330 times – ( +4 ) – version 1.1
Generally we need to show one or more fields from a model that is related to another model used in CGridView. For our case we will use two related models, which explain how to use model "A" fields in a CGridView that used model "B".

How to display data from two tables in TbGridView using DataProvider?

Updated 2 months ago by Rohit SutharTutorials4 comments – viewed 1,884 times – ( +4 / -1 ) – version 1.1
In this wiki I will show how to display data from two tables in Bootstrap TbGridView using dataProvider.

I18n / localised routes in Yii

Updated 2 months ago by ElecenHow-tos1 comment – viewed 1,192 times – ( +3 / -1 ) – version 1.1
So, you need localised urls made simple that follow the Yii framework guidelines?
tags: i18n, Routing

Profiling user requests

Updated 2 months ago by M0kaTutorials3 comments – viewed 1,094 times – ( +1 ) – version 1.1
How to profile user requests so you can determine which actions need an enhancements and optimizations? This wiki going to show you a step by step how to do it.

Nested inline active fields inside Bootstrap horizontal forms

Updated 2 months ago by Kartik VHow-tos1 comment – viewed 2,555 times – ( +25 ) – version 2.0
Are you using the Bootstrap 3 form styles with Yii 2 Active Forms? Have you faced problems in displaying complex layouts which needs you to display multiple inline form fields in a single row, within bootstrap horizontal forms. Then read on.

Where to implement knowledge about the addresses of the controller?

Updated 2 months ago by Petr.GrishinTutorials0 comments – viewed 1,279 times – ( +1 ) – version 1.1
Knowledge is necessary to determine the address of the controller in a single layer system. This allows you to quickly search and painlessly produce refactoring controllers and their addresses.