Wiki articles

Showing 1-20 of 652 items.
Created 2 months ago by samdark.

When to use Active Record

When to use Active Record is a common question among developers, Yii and overall.

6 0
2 followers
Viewed: 5 421 times
Version: all
Category: FAQs
Created 2 months ago by Necip, updated 2 months ago by Necip.

What SQL-Statement creates yii?

The usual way to find out what Yii has created for an SQL query is to mutilate the SQL in the sourcecode and call the program again so that the SQL statement with errors is displayed. Or you can use the SQL logger, which must be switched on and off each time and logs all SQL statements, which leads to an enormous slowdown in program execution and decelerates your workflow.

0 0
1 follower
Viewed: 1 522 times
Version: 1.1
Category: Tips
Created 3 months ago by Necip, updated 2 months ago by Necip.

An alternative way to ElasticSearch

This article is for those who have dealt with the complexity of Elasticsearch or any other indexing machines and are looking for an easier way to index the existing database without additional effort.

1 0
2 followers
Viewed: 2 926 times
Version: all
Category: How-tos
Created a year ago by Trejder, updated a year ago by Trejder.

Interactive mode command-line command for Yii1

For one of my projects I needed an interactive console command in Yii 1, i.e. the one that is gathering all information from user in an interactive mode (a serie of questions and answers displayed directly in the console), ignoring command-line arguments at all.

0 0
1 follower
Viewed: 11 585 times
Version: 1.1
Category: How-tos
Created 2 years ago by Scott_Huang, updated 2 years ago by Scott_Huang.

How to customize your grid columns visible and order by user themselves

The export to excel function will affected by the final resorted columns in case you use my export grid to excel extends hzlexportgrid too, Since that export extention just depends on the grid columns configs, and that columns been customized by user themselves just now.

0 0
1 follower
Viewed: 8 891 times
Version: 1.1
Category: How-tos
Created 2 years ago by Preacher, updated 2 years ago by Preacher.

Yii 1.1.17 Ubuntu AutoInstall Bash Script

Just thought I would share this bash script I wrote to help automate a base install of YII on an Ubuntu server. This script does the following:

1 1
1 follower
Viewed: 8 172 times
Version: 1.1
Category: Others
Created 2 years ago by Alexandre Rodichevski, updated 2 years ago by Alexandre Rodichevski.

Background task with Ajax

This article discusses how one can run a long task in background in yiiframework 1.1 using Ajax technique.

0 0
1 follower
Viewed: 16 052 times
Version: 1.1
Category: Tutorials
Created 2 years ago by kv4nt, updated 2 years ago by kv4nt.

CMenu widget like bootstrap navbar with submenu

0 0
1 follower
Viewed: 14 505 times
Version: 1.1
Category: Tutorials
Created 3 years ago by oligalma, updated a year ago by Maurizio Domba Cerin.

How to have truly multilingual URLs

We can easily have a multilingual site if we put a "lang" parameter that comes via GET. For example:

0 0
3 followers
Viewed: 8 048 times
Version: 1.1
Category: How-tos
Created 3 years ago by MadAnd, updated 3 years ago by MadAnd.

Single PHP entry point with Nginx

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

3 0
3 followers
Viewed: 8 621 times
Version: all
Category: How-tos
Created 3 years ago by ezekielnoob, updated 3 years ago by ezekielnoob.

Simple way to implement Dynamic Tabular Inputs

grid

1 0
9 followers
Viewed: 26 160 times
Version: all
Category: Tutorials
Created 3 years ago by bluyell, updated 3 years ago by bluyell.

Console Based CAuthManager Helper

This behavior enable you to command the RBAC via console. This avoids you to install a entire rbac graphic toolkit to set up some rules in the rbac, maybe you are running inside a ssh console.

0 0
1 follower
Viewed: 7 133 times
Version: 1.1
Category: How-tos
Created 3 years ago by le_top, updated 3 years ago by le_top.

Relation scope to test existence of related records ("EXISTS")

When one needs to select a record in a table that do not have related records through a relation, it is generally suggested to use a subquery. Personnaly, I prefer a high level approach, and I have a method to do it with scopes.

1 0
2 followers
Viewed: 8 068 times
Version: 1.1
Category: How-tos
Created 3 years ago by Gerhard Liebenberg, updated 3 years ago by Gerhard Liebenberg.

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.

We probably have all used a virtual attribute (model function) to retrieve complex or related data for a CGridView column:

0 0
4 followers
Viewed: 9 453 times
Version: 1.1
Category: How-tos
Created 3 years ago by Trejder, updated 3 years ago by Trejder.

Using Yii Gallery Manager in your Yii 1.x application

Finding good looking, working and not abandoned gallery manager for Yii 1.x application is a tough task. Out of all I found, only yii-gallery-manager extension looked promising. But, after downloading it, it turned out, that there are certain unusual things to do, to include it in your application. So, I decided to write this article...

0 0
2 followers
Viewed: 9 292 times
Version: 1.1
Category: How-tos
Created 3 years ago by oligalma, updated 3 years ago by oligalma.

How to register scripts and css

Then, we write this in the config > main.php:

0 0
1 follower
Viewed: 52 790 times
Version: 1.1
Category: How-tos
Created 3 years ago by Bizley, updated 3 years ago by Bizley.

Active Record snapshotting (Model data base history)

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.

1 0
5 followers
Viewed: 9 612 times
Version: 1.1
Category: Tutorials
Created 3 years ago by VINAY Kr. SHARMA, updated 3 years ago by VINAY Kr. SHARMA.

Things to Consider when application hosting on AppFog

I faced many issues when hosted our company website on AppFog.

1 0
2 followers
Viewed: 4 542 times
Version: 1.1
Category: Tips
Created 3 years ago by VINAY Kr. SHARMA, updated 3 years ago by VINAY Kr. SHARMA.

MailGun Api Wrapper to send emails

MailGun.php Class

1 0
1 follower
Viewed: 6 007 times
Version: 1.1
Category: How-tos
Tags: email, mailgun
Created 3 years ago by le_top, updated 3 years ago by le_top.

Selecting best language based on Browser language and available languages.

Your application is international and you have to select the best language for the user. Your user may have selected 'fr_CA' and you have 'fr_FR' or 'fr' available. What do you do? Here is a tip.

2 0
2 followers
Viewed: 7 718 times
Version: 1.1
Category: Tips