Wiki articles

Showing 1-20 of 650 items.

When to use Active Record

Created a year ago by samdark.

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

9 0
3 followers
Viewed: 31 601 times
Version: all
Category: FAQs

What SQL-Statement creates yii?

Created a year ago by Necip, updated a year ago by Necip.

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: 6 779 times
Version: 1.1
Category: Tips

An alternative way to ElasticSearch

Created a year ago by Necip, updated a year ago by Necip.

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: 7 506 times
Version: all
Category: How-tos

Interactive mode command-line command for Yii1

Created 2 years ago by Trejder, updated 2 years ago by Trejder.

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: 13 661 times
Version: 1.1
Category: How-tos

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

Created 2 years ago by Scott_Huang, updated 2 years ago by Scott_Huang.

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: 12 138 times
Version: 1.1
Category: How-tos

Yii 1.1.17 Ubuntu AutoInstall Bash Script

Created 3 years ago by Preacher, updated 3 years ago by Preacher.

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 957 times
Version: 1.1
Category: Others

Background task with Ajax

Created 3 years ago by Alexandre Rodichevski, updated 3 years ago by Alexandre Rodichevski.

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

0 0
1 follower
Viewed: 17 892 times
Version: 1.1
Category: Tutorials

CMenu widget like bootstrap navbar with submenu

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

How to have truly multilingual URLs

Created 3 years ago by oligalma, updated 2 years ago by Maurizio Domba Cerin.

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

0 0
3 followers
Viewed: 10 009 times
Version: 1.1
Category: How-tos

Single PHP entry point with Nginx

Created 4 years ago by MadAnd, updated 4 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: 10 115 times
Version: all
Category: How-tos

Console Based CAuthManager Helper

Created 4 years ago by bluyell, updated 4 years ago by bluyell.

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: 8 171 times
Version: 1.1
Category: How-tos

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

Created 4 years ago by le_top, updated 4 years ago by le_top.

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: 9 246 times
Version: 1.1
Category: How-tos

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 4 years ago by Gerhard Liebenberg, updated 4 years ago by Gerhard Liebenberg.

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: 10 453 times
Version: 1.1
Category: How-tos

Using Yii Gallery Manager in your Yii 1.x application

Created 4 years ago by Trejder, updated 4 years ago by Trejder.

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
1 follower
Viewed: 10 351 times
Version: 1.1
Category: How-tos

How to register scripts and css

Created 4 years ago by oligalma, updated 3 years ago by oligalma.

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

1 0
1 follower
Viewed: 65 125 times
Version: 1.1
Category: How-tos

Active Record snapshotting (Model data base history)

Created 4 years ago by Bizley, updated 4 years ago by Bizley.

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: 11 013 times
Version: 1.1
Category: Tutorials

Things to Consider when application hosting on AppFog

Created 4 years ago by VINAY Kr. SHARMA, updated 4 years ago by VINAY Kr. SHARMA.

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

1 0
1 follower
Viewed: 5 326 times
Version: 1.1
Category: Tips

MailGun Api Wrapper to send emails

Created 4 years ago by VINAY Kr. SHARMA, updated 4 years ago by VINAY Kr. SHARMA.

MailGun.php Class

1 0
1 follower
Viewed: 7 043 times
Version: 1.1
Category: How-tos
Tags: email, mailgun

Selecting best language based on Browser language and available languages.

Created 4 years ago by le_top, updated 4 years ago by le_top.

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
1 follower
Viewed: 9 762 times
Version: 1.1
Category: Tips

How to create a custom exception and show it friendly with CJuiDialog

Created 4 years ago by Fábio Sales, updated 4 years ago by Fábio Sales.

Sometimes we need to create our custom exception and show it to the end user through a friendly way . In this article, I'm showing how to do it using CJuidialog.

0 0
1 follower
Viewed: 14 373 times
Version: 1.1
Category: How-tos