Wiki articles

Showing 161-180 of 822 items.

Insert a model record using CGridview

Created 9 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by Kostas Apazidis (KonApaz).

CGridview displays existent rows of the table (using DataProvider)

2 0
1 follower
Viewed: 17 476 times
Version: 1.1
Category: How-tos

Single PHP entry point with Nginx

Created 8 years ago by MadAnd, updated 8 years ago by MadAnd.

In this article I will show you how to slightly increase application security, by exploiting the fact that Yii implements the Front Controller Pattern.

4 0
3 followers
Viewed: 17 495 times
Version: all
Category: How-tos

Auto-update denormalized attributes with MongoDb and Yii2

Created 10 years ago by edoardo849, updated 9 years ago by CeBe.

You have different collections in MongoDb with de-normalized attributes. As you may know, due to its not-join nature, MongoDb tends to encourage repetition of the same value in different collections (de-normalization). In this MongoDb is opposed to a more SQL-like approach where you usually reference only the ID of the value with a foreign key.

1 0
3 followers
Viewed: 17 564 times
Version: 2.0
Category: Tips

Load & Save With Relation

Created 8 years ago by moo.tensai, updated 8 years ago by moo.tensai.

Use this extension : yii2-relation-trait

1 0
2 followers
Viewed: 17 691 times
Version: 2.0
Category: Tips

caching controllers with filters()

Created 13 years ago by RusAlex, updated 13 years ago by Maurizio Domba Cerin.

Hello, this article will describe some aspects about caching controllers with filters() method in your controller. And I will describe some problems I meet when using this approach for caching, the main problem was

2 0
8 followers
Viewed: 17 701 times
Version: 1.1
Category: How-tos

Enhance security of cookie-based login

Created 9 years ago by darkheir, updated 9 years ago by darkheir.

When talking about cookie-base login the Yii guide indicates the following:

2 0
2 followers
Viewed: 17 713 times
Version: 1.1
Category: How-tos

Using CListView to display items next to each other (in columns)

Created 10 years ago by thyseus, updated 10 years ago by thyseus.

When using CListView to display multiple views next to each other, we can use the $index variable inside the viewFile to achieve this. As far as i know there is no extension or out-of-the-box functionality for this, so we need to apply a little hack:

4 0
6 followers
Viewed: 17 735 times
Version: Unknown (update)
Category: Tips

belajar AR : part 1 (learn AR : part 1)

Created 13 years ago by rianday, updated 13 years ago by rianday.

hai teman yii... apa kabar.. kembali lagi bersama catatan saya..

0 0
1 follower
Viewed: 17 738 times
Version: 1.1
Category: Tutorials
Tags: indonesia

Display image on CGridView column and open a fancy-box

Created 10 years ago by Ankit Modi, updated 10 years ago by Ankit Modi.

1) Add a fancy-box extension on admin page

0 0
2 followers
Viewed: 17 798 times
Version: Unknown (update)
Category: Tutorials

Yii behind a reverse proxy, SSL support and correct IP logging

Created 11 years ago by mrkmg, updated 11 years ago by mrkmg.

If you are hosting Yii behind a reverse proxy, for example nginx, and you are having issues with your logs showing the proxies IP, or the urls being created arn't being created for SSL because your SSL certs are located on your reverse proxy instead of the Yii server, this code may be able to help you. I placed them in the very top of Yii's entry script, index.php

0 0
2 followers
Viewed: 17 839 times
Version: 1.1
Category: Tips

Como trasponer una lista creada con CHtml::checkBoxList

Created 12 years ago by rdjteam, updated 12 years ago by rdjteam.

En ciertas ocasiones tenemos que lidiar con el tema de colocar una lista de checkboxes para hacer una seleccion especifica como es el caso de los dias de la semana para un calendario, para esta labor tenemos el comando CHtml::checkBoxList(), revisando un poco el funcionamiento de este temos los siguientes parametros:

2 0
4 followers
Viewed: 17 897 times
Version: 1.1
Category: Tips

Yii2cdn Component

Created 7 years ago by junaidatari, updated 7 years ago by junaidatari.

A Yii Framework 2 component for using assets in different environments (Local/CDNs)

0 0
2 followers
Viewed: 17 902 times
Version: 2.0
Category: How-tos
Tags: assets, CDN, yii2

Serial Numbers (item counts) in GridView

Created 11 years ago by PeRoChAk, updated 11 years ago by Maurizio Domba Cerin.

Sometime we need to display numbers of items per page with their counting as a serial number.

0 0
4 followers
Viewed: 17 942 times
Version: 1.1
Category: How-tos

Integrating FirePHP

Created 13 years ago by ricardograna, updated 13 years ago by ricardograna.
  • Install Firebug plugin for Firefox from here.
7 0
6 followers
Viewed: 17 977 times
Version: 1.1
Category: Tutorials
Tags:

Using MBMenu and Rights to automatically create menu item for your modules

Created 12 years ago by dinhtrung, updated 12 years ago by dinhtrung.

Using Rights generator component, we can easily create a dynamic menu, in which we scan every modules' controllers, to access the index page of them.

1 1
2 followers
Viewed: 18 096 times
Version: 1.1
Category: Tips

ClientValidation for files (modern browsers)

Created 10 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by CeBe.

There are cases that you want to validate the file format, size, extension etc but how to do that without submit the form ?

2 0
6 followers
Viewed: 18 104 times
Version: 1.1
Category: How-tos
2 0
1 follower
Viewed: 18 146 times
Version: 1.1
Category: How-tos

Advanced CTabView using CClipWidget

Created 15 years ago by krillzip, updated 11 years ago by Yang He.

Here is a way to dynamically extend tabs based on clips.
Probably even more complex things could be done.

2 0
2 followers
Viewed: 18 181 times
Version: 1.1
Category: Tutorials
Tags:

YII2 Pagination Options

Created 9 years ago by VivekYii, updated 9 years ago by VivekYii.

solution here If we are using default pagination option like

1 0
1 follower
Viewed: 18 251 times
Version: 2.0
Category: Tips

ChromePHP for Yii

Created 13 years ago by imehesz, updated 13 years ago by imehesz.

ChromePHP is a console logging extension for Google Chrome.

3 1
4 followers
Viewed: 18 264 times
Version: 1.1
Category: Tips