Wiki

Sorted by viewsX
Displaying 461-470 of 786 result(s).

YII SaaS Multi Tenant application with single database

Created 4 years ago by Rajith RTutorials5 comments – viewed 17,333 times – ( +11 / -11 ) – version 1.1
Lots of people are asking how to solve it with YII,We think its difficult with YII. But its easy to solve . There is no database triggers needed . we can simply sove it by extending a class(say "RActiveRecord") from CActiveRecord .Then extend all our model classes from that class.

Changing Controllers Name

Created 7 years ago by TrejderHow-tos0 comments – viewed 17,114 times – ( +5 / -1 ) – version 1.1
This very short how-to presents steps required to change controller name. It is oriented for less experienced users, which are starting their journey with Yii, to avoid common newbie pitfalls.

Update CGridview row separately using ajax request

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos10 comments – viewed 17,072 times – ( +8 / -1 ) – version 1.1
There are cases you want to update a record on CGridview directly

How to install Yii 2 advanced on a shared hosting environment

Created 2 years ago by oligalmaHow-tos1 comment – viewed 17,044 times – ( +3 / -1 ) – version 2.0
I've read many comments that it's not possible to install Yii 2 advanced on a shared hosting environment, as it has two webroots. This is partially true.

How to re enable logging during unit testing

Created 6 years ago by AsgarothHow-tos3 comments – viewed 16,843 times – ( +11 / -1 ) – version 1.1
Some of you have experienced the need to log some information while doing unit testing, due to the fact that the information given in the summary is just not enough, to know why the test is actually failing. this article focuses on 2 ways to get you logs up and running again.

Key web server settings after installing a fresh Yii 2 basic or advanced app

Created 3 years ago by Kartik VTips2 comments – viewed 16,740 times – ( +48 / -1 ) – version 2.0
So, you have installed a brand new Yii 2 app (basic) or (advanced). Here are a few tips for Apache web server users to get things running more secure and better with your yii2 app.

Auto TDD - How to auto-run PHPUnit

Created 7 years ago by imeheszTips3 comments – viewed 16,602 times – ( +3 / -2 ) – version 1.1
If you are lucky enough and have the privilege to develop on a Linux based environment, this little tip might boost-up your TDD process (at least the Unit Testing part). Please note, that this should work just fine with Apple computers also, but not tested!
tags: PHPUnit, testing, TDD

How to create/update a model with its related items using Listbox or CheckboxList

Created about a year ago by softarkTutorials1 comment – viewed 16,582 times – ( +4 / -1 ) – version 2.0
Assume we have many categories and many posts.

How to handle decimal separators (e.g comma instead of dot) for l18n

Created 5 years ago by jpabloHow-tos2 comments – viewed 16,578 times – ( +2 / -1 ) – version 1.1
Yii i18n does not cover decimal format. Some languages like Spanish (I live in Argentina) uses comma ',' instead of dot '.' as decimal separator.