Wiki

Sorted by viewsX
Displaying 471-480 of 784 result(s).

Easy way to redirect http:\\localhost\yii2-basic to http:\\localhost\yii2-basic\web\index.php

Created 2 years ago by Scott_HuangTips0 comments – viewed 15,592 times – ( +3 / -4 ) – version 2.0
First of all, install yii2 basic template according below link:

Caching the config main.php

Created 5 years ago by dckurushinTutorials11 comments – viewed 15,571 times – ( +4 / -3 ) – version 1.1
The config long array included every time, and it's not cached at all!

How to "masquerade" a non-required form element as 'required' one (in the view only)

Created 4 years ago by BoazHow-tos2 comments – viewed 15,378 times – ( +7 / -2 ) – version 1.1
In a nutshell, the task at hand is to mark (or render) a model attribute in the typical "_form.php" view file with the 'required' red asterisk while this attribute is not marked as required in the model's rule() method. If you're interested only in the solution, jump ahead to the 'solution' section below.

Using events with CAction classes

Created 5 years ago by Antonio RamirezTips0 comments – viewed 15,368 times – ( +10 / -1 ) – version 1.1
There are some good guides out there explaining how to work with events and the ways to attach them to your components, but none (that I know) explain the following way to configure your events with CAction classes on your controllers the following way.

Create image thumbnails with php_img_preview

Created 5 years ago by Anas AbuDayahTutorials6 comments – viewed 15,332 times – ( +3 / -1 ) – version 1.1
This is another way to view images in your application and I like this way because it's simple and I think it's better performance than other.
tags: images, views

CJuiTabs Content

Created 4 years ago by mbalaTips3 comments – viewed 15,266 times – ( +6 / -1 ) – version 1.1
When I used CJuiTabs I did something. They are
tags: CJuiTabs

Book Has Author - Many to Many relations using Kartik\Select2

Created 3 years ago by thiagoc7How-tos2 comments – viewed 15,216 times – ( +4 / -1 ) – version 2.0
I could make this work following same useful tips from this post.

Using SQLite and CDbMessageSource as a module

Created 5 years ago by pheadeauxHow-tos5 comments – viewed 15,187 times – ( +5 / -1 ) – version 1.1
There are scenarios when you work with DVCS (like Mercurial or Git) and CDbMessageSource. To my experience keeping the development database and production database in sync can be very time consuming. Plus, when working in a team, you never know when the database was updated.

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

Created 3 years ago by Rohit SutharTutorials4 comments – viewed 15,121 times – ( +6 / -2 ) – version 1.1
In this wiki I will show how to display data from two tables in Bootstrap TbGridView using dataProvider.

How to use bizRules in standard accessControl filter

Created 4 years ago by Maciej LiżewskiHow-tos8 comments – viewed 15,106 times – ( +3 / -1 ) – version 1.1
I assume you are familiar with accessControl standard filter. It allows you to separate privileges to run some action from action code itself. There is however one problem with most common usage - you cannot use bizRules, at least based on some parameters passed to 'checkAccess' just because it is hard to pass them in accessRules() result.