Wiki articles

Showing 221-240 of 651 items.

Multilanguage Lorem Ipsum Text Generator

Created 11 years ago by yasen, updated 11 years ago by yasen.

Taking futher the idea from Piotr Masełkowski - http://www.yiiframework.com/extension/elipsum/ here's how to generate multilanguage Lorem Ipsum text. This example uses English and Bulgarian sample paragraphs. Create a class in /protected/components/LoremIpsum.php. Wall of text incoming wohoo...

2 0
1 follower
Viewed: 11 791 times
Version: 1.1
Category: How-tos

Insert a model record using CGridview

Created 9 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by Kostas Apazidis (KonApaz).

CGridview displays existent rows of the table (using DataProvider)

2 0
1 follower
Viewed: 17 512 times
Version: 1.1
Category: How-tos

Prevent asset publishing for CListView

Created 12 years ago by Mike, updated 12 years ago by Mike.

If you don't want to use any of the AJAX features of CListView and thus want to prevent that it publishes any of its asset files, you can extend it and create a sub class like this:

2 0
6 followers
Viewed: 14 171 times
Version: 1.1
Category: How-tos

Creating HTML code using Jamboree Panels

Created 11 years ago by bluyell, updated 11 years ago by bluyell.
2 0
2 followers
Viewed: 16 804 times
Version: 1.1
Category: Tutorials

Upload Files to Rackspace Cloud Files CDN

Created 11 years ago by StephenMiracle, updated 11 years ago by StephenMiracle.

** I actually made this into an extension for easier use. You can view the extension: http://www.yiiframework.com/extension/rackspaceconnect/

2 0
3 followers
Viewed: 17 365 times
Version: 1.1
Category: Tutorials

Sub-domains with different databases in Yii!

Created 12 years ago by jwerd, updated 12 years ago by jwerd.

I used another example posted here a while back where the person was modifying the index.php and adding in a switch case for different domains and loading separate config files. This was actually too much for me, because all my portals are the exact same (as far as routes, modules, extensions, etc) and if I ever wanted to add another route it wouldn't be feasible opening up all the config files t...

2 0
12 followers
Viewed: 25 725 times
Version: 1.1
Category: How-tos

Make the authentication more securely

Created 9 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by Kostas Apazidis (KonApaz).

Suppose a hacker has an account of your website He could set the PHPSESSID to empty After of that He login in your system The PHPSESSID remains blank and user has already logged with this session

2 0
3 followers
Viewed: 15 469 times
Version: 1.1
Category: Tutorials

Adding a link to a CDataColumn

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

Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

2 0
8 followers
Viewed: 26 543 times
Version: 1.1
Category: Tips

BaseModuleAR class with MultiActiveRecord

Created 12 years ago by dinhtrung, updated 12 years ago by Gustavo.

MultiActiveRecord is an extension that add support for multiple database connection for your application.

2 0
0 follower
Viewed: 14 725 times
Version: 1.1
Category: Tips

View a related field in CGridView

Created 9 years ago by rafaelt88, updated 8 years ago by rafaelt88.

Generally we need to show one or more fields from a model that is related to another model used in CGridView. For our case we will use two related models, which explain how to use model "A" fields in a CGridView that used model "B".

2 0
3 followers
Viewed: 18 656 times
Version: 1.1
Category: Tips

Using updateAll and deleteAll with scopes

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

Using CActiveRecord->updateAll() and CActiveRecord->deleteAll() with scopes and criteria requires some tricks that are explained in this article. While findAll() , find() and some other methods use scopes automatically, updateAll() and deleteAll() do not.

2 0
4 followers
Viewed: 58 678 times
Version: 1.1
Category: How-tos

Using Google Maps in Yii Applications via Jquery

Created 11 years ago by bluyell, updated 11 years ago by bluyell.
2 0
6 followers
Viewed: 23 314 times
Version: 1.1
Category: How-tos

How to implement an event and attach it in a behavior

Created 10 years ago by seb7, updated 10 years ago by seb7.

This page explains how to implement an event and catch that event in a behavior.

2 0
9 followers
Viewed: 27 427 times
Version: 1.1
Category: How-tos

How to use a component before every action of a controller

Created 10 years ago by transistor, updated 10 years ago by transistor.

I guess this is a tip on how to execute some code before every action in a controller, because I will tell you how I did it and maybe you can use the idea in your project.

2 0
4 followers
Viewed: 50 590 times
Version: 1.1
Category: Tips

Enhance security of cookie-based login

Created 9 years ago by darkheir, updated 9 years ago by darkheir.

When talking about cookie-base login the Yii guide indicates the following:

2 0
2 followers
Viewed: 17 746 times
Version: 1.1
Category: How-tos

How to get & store Last Login DateTime in database?

Created 9 years ago by Rohit Suthar, updated 9 years ago by Rohit Suthar.

In this wiki I will show how could be store last login date & time in database. First we need a field LastLoginTime (Type must be datetime). this field store a user login detalis (like - Date & Time).

2 0
4 followers
Viewed: 24 879 times
Version: 1.1
Category: How-tos

Configuring CWebLogRoute for DB profiling

Created 12 years ago by Igor Ivanovic, updated 12 years ago by Igor Ivanovic.

require_once($yii); Yii::createWebApplication($config)->run();

2 0
6 followers
Viewed: 34 451 times
Version: 1.1
Category: Tutorials

Cron Jobs in Yii

Created 10 years ago by aarondfrancis, updated 8 years ago by Roman Solomatin.

I've gotten Yii running cron jobs, and wanted to explain briefly how I did it.

2 0
9 followers
Viewed: 34 159 times
Version: 1.1
Category: How-tos

Behaviour for Time Zone and Format conversion for Date, Time, timestamp, and datetime

Created 9 years ago by Smithesh, updated 8 years ago by Smithesh.

This Behaviour helps to view time/date/timestamp/datetime from db to local Date / Time / Date Time format and in local Timezone. And save into db in with db timezone and db format. You only need to include this behaviour in models where need this facility.

2 0
3 followers
Viewed: 21 692 times
Version: 1.1
Category: How-tos

Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

Created 10 years ago by Luis Lobo Borobia, updated 6 years ago by Luis Lobo Borobia.

We are running one frontend running NGINX and several app servers running Apache2. There are several issues we have come across but right now I'll be documenting one of them. I'll be completing this article when I get more time.

2 0
2 followers
Viewed: 14 441 times
Version: all
Category: Tips