Wiki

Sorted by commentsX
Displaying 301-310 of 753 result(s).

How to hide index.php on nginx

Created 6 years ago by milesTutorials3 comments – viewed 48,355 times – ( +4 ) – version 1.1
For a complete sample Nginx+PHP-FPM config, view this how-to: Nginx & PHP-FPM
tags: URL

How to re enable logging during unit testing

Created 3 years ago by AsgarothHow-tos3 comments – viewed 13,107 times – ( +11 ) – 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.

Debuging variables in Yii2

Created 6 months ago by johonunuTips3 comments – viewed 3,937 times – ( +2 / -1 ) – version 2.0
This tutorial is explained following "basic" application structure.

How to access a component of a module from within the module itself

Created 6 years ago by OriginalCopyTutorials3 comments – viewed 25,799 times – ( +5 / -1 ) – version 1.1
The Yii documentation states:
tags: module

How to create/save more Model inputs and make them repeatable with jQuery

Created 6 years ago by qiangTutorials3 comments – viewed 36,722 times – ( +12 ) – version 1.1
This is the first real problem that I encountered using Yii, trying to make a Model input repeatable in the form, validate and save them.

Active Record snapshotting (Model data base history)

Created 5 months ago by BizleyTutorials3 comments – viewed 2,885 times – ( +2 ) – version 1.1
One of the common tasks the web application might be required to perform, especially the app using some kind of a CMS, is to save the history of data changes. Your client for sure will want the answer to this simple question - If I mess this up or delete by accident can we bring it back? Well, DB backup is one thing and quick recovery is another - let's talk about latter one.

The Comedy of Errors

Created 3 years ago by fsbOthers3 comments – viewed 8,574 times – ( +21 ) – version 1.1
Please join the party by adding your own favorite Yii programming errors. Be sure to leave at least a hint at the correction.

yii2-app-advanced on single domain (Apache, Nginx)

Created 5 months ago by MadAndHow-tos3 comments – viewed 9,260 times – ( +6 ) – version 2.0
If you develop rather complex applications with Yii2, you might already be familiar with yii2-app-advanced application template. Well, the template is awesome and provides high flexibility regarding code/configuration sharing among parts of an application.

Use application on production/development environment without making changes

Created 3 years ago by ifdatticTips3 comments – viewed 37,569 times – ( +8 / -1 ) – version 1.1
I like programing on my localhost, however it really bugged me to make changes to index.php & config files on my production server. After combining all available wiki articles on this topic and some trial and error this is what I use for my applications so I could just upload it to production server and it will work without any changes.

Multiple CGridView virtual attributes, retrieved from a single model function. Also communication between CGridView columns and rows; and between CGridView and its own parent view.

Created 5 months ago by Gerhard LiebenbergHow-tos3 comments – viewed 2,903 times – ( +1 ) – version 1.1
We probably have all used a virtual attribute (model function) to retrieve complex or related data for a CGridView column: