Wiki articles

Showing 181-200 of 826 items.

two or more different collected data in one CGridView

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

Assume that you have teachers and students model.

2 1
6 followers
Viewed: 22 234 times
Version: 1.1
Category: How-tos

free PHP IDE CodeLobster supports Yii framework

Created 14 years ago by clod clod, updated 14 years ago by clod clod.

This page is created to supply short directions and general tips for managing a Yii application in Codelobster PHP Edition.

5 0
1 follower
Viewed: 22 272 times
Version: 1.1
Category: Tutorials

Yet another implementation of CPhpAuthManager.

Created 13 years ago by seenivasan seenivasan, updated 13 years ago by seenivasan seenivasan.

In this wiki, I try to implement a simple authorization schema without putting much logic inside a file or into database table. We are constructing authorization hierarchy inside the controller. We are getting roles for the current user from database table and assigning only roles to user that are declared in the particular controller. We have brought down the work of loading of auth data at ma...

5 1
7 followers
Viewed: 22 315 times
Version: 1.1
Category: How-tos

Check online users / set specific user offline

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

How to check the online users or how to logout a specific user from your admin panel? This wiki shows how to do that

1 0
4 followers
Viewed: 22 319 times
Version: 1.1
Category: How-tos

URL component access functions

Created 15 years ago by Steve Friedl Steve Friedl, updated 15 years ago by Steve Friedl Steve Friedl.

Many applications wish to obtain parts of the URL for the current page (the hostname, the query string, etc.), and the CHttpRequest class wraps various $_SERVER variables to break down the URL into its constituent parts.

28 0
16 followers
Viewed: 22 397 times
Version: 1.1
Category: Tips
Tags: request, URL

Rendering a view file in a console application

Created 14 years ago by Tompi Tompi, updated 14 years ago by Tompi Tompi.

When someone want to send formatted HTML mails from a console application she/he will probably come across the problem of rendering view files.

2 1
7 followers
Viewed: 22 445 times
Version: 1.1
Category: How-tos

Advanced CTabView using CClipWidget

Created 17 years ago by krillzip krillzip, updated 14 years ago by Yang He Yang He.

Here is a way to dynamically extend tabs based on clips.
Probably even more complex things could be done.

2 0
2 followers
Viewed: 22 511 times
Version: 1.1
Category: Tutorials
Tags:

Auto-update denormalized attributes with MongoDb and Yii2

Created 12 years ago by edoardo849 edoardo849, updated 12 years ago by CeBe CeBe.

You have different collections in MongoDb with de-normalized attributes. As you may know, due to its not-join nature, MongoDb tends to encourage repetition of the same value in different collections (de-normalization). In this MongoDb is opposed to a more SQL-like approach where you usually reference only the ID of the value with a foreign key.

1 0
3 followers
Viewed: 22 577 times
Version: 2.0
Category: Tips

Clear CGridView Filters, Sort & Pager

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

Clearing CGridView filters and sort orders from the web pages, is usefull for the end user. Yii does not seem to propose a standard method. Furthermore, this is especially usefull when filters are "remembered" in the user's session.

2 0
3 followers
Viewed: 22 615 times
Version: 1.1
Category: How-tos

Publish yii webapp using Git push

Created 14 years ago by rootbear rootbear, updated 14 years ago by rootbear rootbear.

I did not invent this instructions, I read it somewhere and re-organized in my way as I was trying and it works for me;

2 0
8 followers
Viewed: 22 725 times
Version: 1.1
Category: How-tos
Tags: git

Safely checking if a model class exists (without exploding)

Created 12 years ago by Boaz Boaz, updated 12 years ago by CeBe CeBe.

While rewriting the PcReportContent extension I'm maintaining I've bumped to a challenge. This wiki was born out of it.

1 0
2 followers
Viewed: 22 775 times
Version: 1.1
Category: How-tos

An important tip when you are using CArrayDataProvider.

Created 13 years ago by sirin k sirin k, updated 9 years ago by Maurizio Domba Cerin Maurizio Domba Cerin.

Yii's CArrayDataProvider is very helpful to display model relation data's directly on it.But it is truely a confusing one because by default it will assume a table field named “id” as primary key for its pagination purpose and what if you dont have field named “id” as primary key on your table? so its truely confusing and if you tried to display without an “id” field on ur table you will get an...

5 1
5 followers
Viewed: 22 791 times
Version: 1.1
Category: Tips

A simple action for XUpload extension

Created 15 years ago by tydeas_dr tydeas_dr, updated 15 years ago by tydeas_dr tydeas_dr.

All the basic functionality for an action used by the xupload extension. Check resources for the source code of this action

3 0
5 followers
Viewed: 22 828 times
Version: 1.1
Category: Tips
1 0
3 followers
Viewed: 22 839 times
Version: 1.1
Category: How-tos

Auto TDD - How to auto-run PHPUnit

Created 15 years ago by imehesz imehesz, updated 15 years ago by imehesz imehesz.

If you are lucky enough and have the privilege to develop on a Linux based environment, this little tip might boost-up your TDD process (at least the Unit Testing part). Please note, that this should work just fine with Apple computers also, but not tested!

3 0
6 followers
Viewed: 22 869 times
Version: 1.1
Category: Tips

Using Yii with PHP 5.4 built-in webserver instead of Apache

Created 14 years ago by samdark samdark, updated 14 years ago by samdark samdark.

Since version 5.4 PHP can work as a simple webserver so you can develop Yii applications without installing Apache. That's how to use it:

21 0
5 followers
Viewed: 22 929 times
Version: 1.1
Category: How-tos

Using phpseclib with Yii

Created 13 years ago by nkd nkd, updated 13 years ago by nkd nkd.

I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does...

0 0
6 followers
Viewed: 22 941 times
Version: 1.1
Category: How-tos
Tags: security

WordPress Role Based Authentication in Yii

Created 12 years ago by Bob G Bob G, updated 12 years ago by CeBe CeBe.

This tutorial is for people that are integrating Yii into WordPress. Meaning that WordPress is the host platform, and that Yii will be handling AR, CRUD, etc.

4 0
8 followers
Viewed: 23 016 times
Version: 1.1
Category: Tutorials
2 0
1 follower
Viewed: 23 028 times
Version: 1.1
Category: How-tos