Wiki articles

Showing 241-260 of 651 items.

Sort and filter a custom or composite CGridView column - that may even contain data from different tables.

Created 10 years ago by Gerhard Liebenberg, updated 7 years ago by Gerhard Liebenberg.

I have a table (account) which contains "General Ledger" accounts. Each account has its own account_description - such as 'inventory', 'sales', etc.

6 0
6 followers
Viewed: 64 883 times
Version: 1.1
Category: How-tos

Using CJuiDialog to display flash Messages in Dialogues

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

In order to nicely display flash Messages, create view like this called views/site/dialog.php :

10 0
9 followers
Viewed: 28 760 times
Version: 1.1
Category: Tutorials
Tags:

Access log output from unit tests

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

Say, you want to write a test for a component which provides a caching feature. How would you know, that some method of your component returns a cached result? With the solution described here you can inspect all log outputs. So you could search the logs for accesses to the DB to really make sure, that the result was served from cache.

3 0
2 followers
Viewed: 15 340 times
Version: 1.1
Category: Tips

Create/Develop View files with plain HTML (Without using ActiveForm Class)

Created 10 years ago by kalpit, updated 10 years ago by CeBe.

Today i want to share with you is "How can we write HTML Code in view files? I am writing this article because many times we can not use CActiveForm to design our form...

2 2
6 followers
Viewed: 21 590 times
Version: 1.1
Category: How-tos

Update a part of content using AJAX when select a GridView row

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

Suppose you want to refresh a form or any content when a single row of CGridView is selected

1 0
9 followers
Viewed: 35 478 times
Version: 1.1
Category: How-tos

How to hide `index` action from URL

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

Here is my experiment inspired by my own question and others from the forum.

3 1
9 followers
Viewed: 24 680 times
Version: 1.1
Category: How-tos
Tags: index

Ajax update

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

Often happens to have the need of change a part of the page with ajax.

16 2
14 followers
Viewed: 57 865 times
Version: 1.1
Category: Tips
Tags: AJAX

Using Apostle.io to send formatted, trackable emails from Yii applications

Created 10 years ago by MikeT, updated 4 years ago by Maurizio Domba Cerin.

Apostle provides a nifty facility for sending app-generated, transactional emails from your application including Wordpress-like mail formatting and full tracking (delivery, opening, clicking etc.) of all emails sent. No need to set up email facilities on your app server!

2 1
2 followers
Viewed: 13 107 times
Version: 1.1
Category: How-tos
Tags: email, mail

How to Create Pdf Report / Excel Report By Using Parameters (From - Until)

Created 10 years ago by ruderbytes, updated 9 years ago by ruderbytes.

Asslamualaikum Wr.Wb Hello I'm Fahmi Azain i will share wiki tutorial about Creating Pdf Report / Excel Report by using Parms / Parameters.

0 2
7 followers
Viewed: 41 727 times
Version: 1.1
Category: How-tos

Using recaptchlib in your projects

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

It is good when someone writes extensions for us but trust, sometimes we forget about other approaches that, if we know the library, we shouldn't forget.

5 0
4 followers
Viewed: 15 297 times
Version: 1.1
Category: How-tos

HOW TO: Use token based authentication

Created 10 years ago by le_top, updated 10 years ago by CeBe.

After reading the other wiki article regarding token based access, I thought that it might be interesting to share my method.

2 0
10 followers
Viewed: 44 052 times
Version: 1.1
Category: How-tos

How to create a criteria condition for a multiple value text search i.e a "LIKE IN"

Created 10 years ago by toph, updated 7 years ago by toph.

This is a shortcut for adding a text search for multiple values i.e.

0 0
5 followers
Viewed: 54 434 times
Version: 1.1
Category: How-tos

Extension Development (beginner)

Created 10 years ago by sefburhan, updated 10 years ago by CeBe.

To extend the functionality of you web application relative to your requirements you are supposed to use existing yii core libraries or use external libraries. There are some steps to ensure security, uniqueness, modularity, performance and to avoid rework in future.

Step 01: Have a Strategy

  • Is my extension just for fun/demonstration purposes or for everyday use in the real world? -...

Code style

Created 13 years ago by zaccaria, updated 13 years ago by g3ck0.

Often, when writing widgets or editing Yii code, it is unclear whether or not the code is following the MVC pattern.

29 0
7 followers
Viewed: 27 794 times
Version: 1.1
Category: Tips
Tags: mvc

Simple Multiple Environment Setup with Default Yii Installation

Created 10 years ago by Ibrar Turi, updated 10 years ago by CeBe.

After installing Yii basic application on our systems, most of the time we want to have multiple environment such as local, dev and live setup. Most of the times when we want to make changes to configuration file, we have to over-write configurations file for each environment.

2 0
8 followers
Viewed: 16 766 times
Version: 1.1
Category: How-tos

Configuring Yii to run on both Windows and OSX

Created 10 years ago by trond, updated 10 years ago by CeBe.

If you develop your Yii project on both Windows and Mac, there can be a problem setting up the configuration unless the configurations for both system are identical. On my machines I have the following configurations:

1 0
4 followers
Viewed: 12 575 times
Version: 1.1
Category: How-tos
Tags: config

CGridView customized CCheckBoxColumn

Created 10 years ago by chandran, updated 10 years ago by CeBe.

Hi friends,

3 0
6 followers
Viewed: 19 860 times
Version: 1.1
Category: Tips

Image Puzzle Game

Created 10 years ago by nachi, updated 10 years ago by CeBe.

I have developed a extension for a image puzzle game. You can use your own images and you can also customize how many rows and columns for the image. It can be used in commercial sites. I just needed your thoughts on the game.

2 0
4 followers
Viewed: 9 437 times
Version: 1.1
Category: Others
Tags: game, image, puzzle

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

Quick Tip about Pagination Params

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

Developing custom Grids and ListViews for my new CMS I was facing a small challenge: If I was to update/delete/batch delete items of my Grid, how would I return to the current page view?

5 0
8 followers
Viewed: 62 817 times
Version: 1.1
Category: Tips