Wiki articles

Showing 261-280 of 651 items.

Custom Number Formatting or Decimal Separators and i18n

Created 11 years ago by c@cba, updated 11 years ago by c@cba.

By default, the decimal separator in php (also in mysql) is a dot (.). So when we work with floats in Yii (in calculations, validation, sql statements etc.), the decimal separator has to be a dot. If we want to use for example a comma (,) as the decimal separator, that is if we want to display numbers and enable users to enter numbers with a comma before the decimals, we have to...

4 0
16 followers
Viewed: 86 493 times
Version: 1.1
Category: Tutorials

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 308 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...

Our WebApp that will run without downtime during update/upgrade

Created 12 years ago by Pinoy Coderz, updated 11 years ago by Maurizio Domba Cerin.

How many of us wonder how we can upgrade the website without hurting the operation of our WebApp?

8 2
7 followers
Viewed: 14 224 times
Version: 1.1
Category: Tutorials
Tags: tutorial

Customize CGridView columns directly in your view

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

You usually take a model instance passed into your view to provide data to a CGridView in this way:

2 1
5 followers
Viewed: 39 172 times
Version: 1.1
Category: Tips

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

Custom Archive in Blog system

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

Hi I had made simple archive system for blog system that can handle tbl_post. I had used simple CDbCriteria not more than that. I know there is more and many better way to this but I think this will give some idea to users to generate new idea or customized or modified this version of code.

1 0
2 followers
Viewed: 10 262 times
Version: 1.1
Category: Tips

CButtonColumn: Use special variable $data for the 'id' in the 'options' of a button

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

Inspired by it I extended the CButtonColumn class like this:

5 0
7 followers
Viewed: 43 370 times
Version: 1.1
Category: Tutorials

Simple RBAC

Created 11 years ago by hasanavi, updated 11 years ago by Stageline.

If you need simple Role based access control without the long RBAC process then this article is just for you. Lets jump to the point.

33 1
43 followers
Viewed: 118 620 times
Version: 1.1
Category: Tutorials

Create Yii Project In Cloud9

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

This tutorial will guide you through the process of creating a yii application using Cloud9. We will use a git workspace to enable version control and also show how to link the Cloud9 workspace to GitHub.

2 0
5 followers
Viewed: 37 968 times
Version: 1.1
Category: Tutorials

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 231 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 065 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 049 times
Version: 1.1
Category: How-tos

Beginner / Intro Tutorials (please add to / update this list)

Created 14 years ago by Ivo Roper, updated 11 years ago by Gerhard Liebenberg.

This is a central location to collect links to "Getting Started" documentation beyond the blog demo and Creating First Yii Application. Please help the community by adding general, introductory links and descriptions to this page.

4 0
8 followers
Viewed: 48 982 times
Version: 1.1
Category: Tutorials
Tags:

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

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

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

This tutorial gives you multiple options of how to fully implement showing, sorting and filtering related data in gridviews.

Intro

17 0
41 followers
Viewed: 74 441 times
Version: 1.1
Category: Tutorials

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

YiiBackboneBoilerplate - Project Setup for your Yii+BackboneJS applications

Created 11 years ago by Antonio Ramirez, updated 11 years ago by Antonio Ramirez.

YiiBackboneBoilerplate, aims to provide Yii Backbone developers with an application folder to ease the startup of their projects. It uses the flexibility of our YiiBoilerplate with a twist for BackboneJS applications.

9 0
22 followers
Viewed: 30 790 times
Version: 1.1
Category: Others

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 161 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 066 times
Version: 1.1
Category: How-tos
Tags: security