Wiki articles in category How-tos

Showing 81-100 of 292 items.

Multiple-database support in Yii

Created 13 years ago by Steve Friedl, updated 11 years ago by phazei.

The customary configuration of a Yii application includes just a single database section in the protected/config/main.php file, but it's easy to extend this to support more than one, tying each Model to one of the databases.

20 0
39 followers
Viewed: 144 133 times
Version: 1.1
Category: How-tos
Tags: database

How to use Multiple instances of the same model in the same form

Created 11 years ago by kiran sharma, updated 11 years ago by Maurizio Domba Cerin.

When i had created this functionality then i found some difficulties and not got much idea from wiki and forums. so, i think this will be useful for newbie users and save time of other developers when create related functionality. I refer Collecting Tabular Input tutorial but not got clear idea for create/update...

Entire Messages into javascript object

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

I needed all messages with their translation into javascript. This is my solution:

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

How to setup RBAC with a php file

Created 14 years ago by bettor, updated 11 years ago by Stageline.

In this cookbook I will attempt to explain how to use the lightweight version of Role-Based Access Control using a php file. This version does not use database but a php file and is controlled by CPhpAuthManager class.

24 4
21 followers
Viewed: 111 017 times
Version: 1.1
Category: How-tos

YouTube API v2.0 – Browser-based Uploading

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

Through the YouTube API you can upload files directly to the Youtube server. Youtube currently offers two services 1. Direct Link 2. Browser Based Uploading. In this wiki I will demonstrate how you can quickly set Browser Based Uploading for your Yii application. This is the protocol request that takes place.

2 0
7 followers
Viewed: 24 008 times
Version: 1.1
Category: How-tos

Setting up PHPUnit and Selenium with IntelliJ IDEA/PhpStorm

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

This article intends to summarize the steps taken to set up PHPUnit and Selenium for a Yii project, with IntelliJ IDEA Ultimate (the IDE). It was done on Mac OS X 10.6.

7 0
10 followers
Viewed: 51 001 times
Version: 1.1
Category: How-tos

Creating and updating model and its related models in one form, inc. image

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

We start slowly and simple...

6 1
21 followers
Viewed: 169 536 times
Version: 1.1
Category: How-tos

How to hide index.php on Microsoft Windows Server with IIS7

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

I've seen lot of people struggling in finding a way to hide the script name when installing their Yii Application. In an Apache environment everything is well documented in this wiki article, but for those who are running their app on a Windows Server machine there are no hints.

6 0
6 followers
Viewed: 69 581 times
Version: 1.1
Category: How-tos

Elementary introduction to using jQuery ajax and the yii framework

Created 11 years ago by dhimes, updated 11 years ago by François Gannaz.

In doing internet searches trying to learn how to incorporated ajax into web pages generated by the yii framework I noticed that there seems to be a lot of confusion. I worry that too-clever hacks will be broken in upgrades of the framework.

2 0
15 followers
Viewed: 53 059 times
Version: 1.1
Category: How-tos
Tags: AJAX

Using phpseclib with Yii

Created 11 years ago by nkd, updated 11 years ago by 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: 19 000 times
Version: 1.1
Category: How-tos
Tags: security

A simple go back button widget

Created 11 years ago by CTala, updated 11 years ago by bennouna.

We all know that widgets are really useful. We can use the almost everywhere we want, and we can use the same code a lot of times ( Almost OOP ).

2 1
6 followers
Viewed: 36 950 times
Version: 1.1
Category: How-tos

Serial Numbers (item counts) in GridView

Created 11 years ago by PeRoChAk, updated 11 years ago by Maurizio Domba Cerin.

Sometime we need to display numbers of items per page with their counting as a serial number.

0 0
4 followers
Viewed: 17 942 times
Version: 1.1
Category: How-tos

Hyphenation of routes in URL management

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

In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.

15 0
21 followers
Viewed: 35 481 times
Version: 1.1
Category: How-tos
Tags: URL

URL management for Websites with secure and nonsecure pages

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

In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.

19 0
34 followers
Viewed: 58 136 times
Version: 1.1
Category: How-tos
Tags: URL

Install, update and use Yii with WAMP server

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

Here I am describing how you can install and update Yii in WAMP sever.

0 0
5 followers
Viewed: 87 934 times
Version: 1.1
Category: How-tos

Integrating Wordpress and Yii,Working Out The Details.

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

First things first,follow the instructions in fr0d0z's article to set up WordPress.Regarding the WpController,I did not use an index view.So the code for WpController is

class WpController extends Controller
{
    public function init()
    {
	 // note that we disable the layout
        $this->layout = false;
        parent::init();
    }

7 0
13 followers
Viewed: 33 561 times
Version: 1.1
Category: How-tos
Tags: wordpress

Create custom button button with AJAX function in CGridView

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

This will call the controller function using AJAX instead of redirecting the user to the url using GET parameters.

5 0
15 followers
Viewed: 67 359 times
Version: 1.1
Category: How-tos

pass variables or content block from view file to layout file

Created 11 years ago by yiqing95, updated 11 years ago by Maurizio Domba Cerin.

If you use yiic to generate webApplication there will be a layout folder under the protected/views/, and the Controller class under protected/components which will use by default these layouts files.

2 0
6 followers
Viewed: 50 395 times
Version: 1.1
Category: How-tos
3 0
4 followers
Viewed: 20 339 times
Version: 1.1
Category: How-tos
2 0
1 follower
Viewed: 18 148 times
Version: 1.1
Category: How-tos