Wiki articles

Showing 1-20 of 649 items.
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: 10 287 times
Version: 1.1
Category: How-tos
Created a year ago by Scott_Huang, updated a year 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: 7 815 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: 7 814 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: 15 208 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: 13 738 times
Version: 1.1
Category: Tutorials
Created 2 years ago by oligalma, updated 10 months 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: 7 169 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 096 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: 23 917 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: 6 750 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: 7 432 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: 8 973 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: 8 836 times
Version: 1.1
Category: How-tos
Created 3 years ago by oligalma, updated 2 years ago by oligalma.

How to register scripts and css

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

0 0
1 follower
Viewed: 47 224 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 140 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 311 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: 5 522 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 227 times
Version: 1.1
Category: Tips
Created 3 years ago by Fábio Sales, updated 3 years ago by Fábio Sales.

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

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
2 followers
Viewed: 11 244 times
Version: 1.1
Category: How-tos
Created 3 years ago by le_top, updated 3 years ago by le_top.

CJuiDatePicker extended for more/better language support

The number of languages supported by the standard CJuiDatePicker implementation is limited and the language code to use is different from the application's language code. This Wiki shows how to improve on that.

1 0
1 follower
Viewed: 6 000 times
Version: 1.1
Category: How-tos
Created 3 years ago by oligalma, updated 2 years ago by oligalma.

How to validate the uniqueness of multiple columns

I am going to show you an effective way to validate the uniqueness of multiple columns.

1 0
2 followers
Viewed: 8 038 times
Version: 1.1
Category: How-tos