Wiki

Sorted by viewsX
Displaying 561-570 of 786 result(s).

Using your own forked version of extensions with composer

Created 3 years ago by Kartik VTutorials3 comments – viewed 12,381 times – ( +39 / -5 ) – version 2.0
So you want to use a fork of any existing vendor extension with your Yii 2 install and use the fork, instead of original source. This does not need you to push any update or register your package on packagist.org. You are recommended to follow the approach below:

ISA hierarchy of tables inside a database and how to implement a single form

Created 6 years ago by pligorHow-tos2 comments – viewed 12,367 times – ( +1 / -1 ) – version 1.1
Please consider the following Dear software engineers imagine I have a simple ISA hierarchy: parent A with children B and C. So let's say we have the corresponding tables named "a", "b", "c" and (created with the help of the gii model creator) the classes A, B, C The following is a screenshot from MySQL workbench:

Directory independent extensions

Created 7 years ago by GOshaTips3 comments – viewed 12,274 times – ( +16 / -2 ) – version 1.1
Many people want to use downloaded extensions in their own way. As for me most of the extensions require me to correct Yii::import() instructions inside their source code. All these extensions are directory dependent. To avoid the situation described above, I suggest to implement pseudo-anonymous aliases:

Yii code completion and calltips in Komodo Edit

Created 7 years ago by viterTips1 comment – viewed 12,255 times – ( +6 / -1 ) – version 1.1
My favourite editor is Komodo Edit (free and crossplatform) and I use it for my everyday coding work. Just recently I found out how to make it help me to work with Yii. :) So follow these steps:
tags: Komodo Edit

关于Yii CHttpSession性能优化篇之源码流程分析

Created 6 years ago by Darwin WenTips0 comments – viewed 12,216 times – ( +1 / -2 ) – version 1.1
当我们使用Yii数据库去保存Session时,只要简单的配置就可以完成这个功能,在进行性能优化这个主题之前,我们先来查看一下CHttpSession和CDBHttpSession源代码,探讨CHttpSession和CDBHttpSession的流程再进行深一步优化主题。

View a related field in CGridView

Created 3 years ago by rafaelt88Tips1 comment – viewed 12,213 times – ( +6 / -1 ) – 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".

Turn Web HTML Into Newsletter

Created 5 years ago by yasenHow-tos1 comment – viewed 12,195 times – ( +8 / -1 ) – version 1.1
These newsletters have always been hard to create as regular web HTML is not properly read by web email interfaces and email clients. I thought that the simplest solution would be to use a web page that would serve as a web version of the newsletter and turn it somehow into newsletter HTML.

Using Pear Mail Mail_Mime and Mail_Queue

Created 6 years ago by LorenHow-tos2 comments – viewed 12,154 times – ( +7 / -1 ) – version 1.1
Create a component (/protected/components/PearMail.php) Edit this as needed based on where you put the files from PEAR.

Check users online, user last activity, user last ip

Created 3 years ago by frazelliHow-tos5 comments – viewed 12,118 times – ( +5 / -1 ) – version 1.1
DbHttpSession

WordPress Role Based Authentication in Yii

Created 4 years ago by Bob GTutorials0 comments – viewed 12,082 times – ( +4 / -2 ) – version 1.1
This tutorial is for people that are integrating Yii into WordPress. Meaning that WordPress is the host platform, and that Yii will be handling AR, CRUD, etc.