Wiki articles

Showing 101-120 of 650 items.

Attaching multiple event handlers to onBeginRequest

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

There came the need to perform two operations, always, on 'application boot' time. Example? My real world example involved some geo-location logic (that's the first operation) and syncing of some session details so KcFinder can be in sync with the user in context - each user with his own session container (the second).

1 0
2 followers
Viewed: 10 636 times
Version: 1.1
Category: How-tos

How to limit number of guest page views

Created 5 years ago by PeRoChAk, updated 5 years ago by CeBe.

In some cases, we have to limit the number of page views for the guests users. Yii provide an efficient method to get this.

2 0
5 followers
Viewed: 6 313 times
Version: 1.1
Category: How-tos

How to create a simple logout link in the view?

Created 5 years ago by mi.sarah, updated 5 years ago by CeBe.

Here you learn to create and set a simple ahref-link to logout the current user.

0 2
1 follower
Viewed: 30 334 times
Version: 1.1
Category: How-tos

Image Puzzle Game

Created 5 years ago by nachi, updated 5 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: 6 069 times
Version: 1.1
Category: Others
Tags: game, image, puzzle

Email by YiiMailer, Call Outlook, IMAP

Created 5 years ago by Scott_Huang, updated 5 years ago by CeBe.

In Yii community we have lots of extention can send emails, such as YiiMailer and Swift and so on, or even IMAPI, thanks for team contribution. However, sometimes, in the intranet enviroment, the program cannot run successfully since SMTP /IMAP port been banded. So you need to seek other ways. The most simple way is call outlook as COM.

0 0
6 followers
Viewed: 11 657 times
Version: 1.1
Category: How-tos

CGridView customized CCheckBoxColumn

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

Hi friends,

3 0
6 followers
Viewed: 15 813 times
Version: 1.1
Category: Tips

Configuring Yii to run on both Windows and OSX

Created 5 years ago by trond, updated 5 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: 8 355 times
Version: 1.1
Category: How-tos
Tags: config

Upload image and content using AJAX and Store it in different table

Created 5 years ago by Selvakumar Kaliyappan, updated 5 years ago by CeBe.

var formData = new FormData($("#post-form")[0]);
$.ajax({
    url: '<?php echo Yii::app()->createUrl("forumPost/uploadPost"); ?>',
    type: 'POST',
    data: formData,
    datatype:'json',
    // as...
1 0
5 followers
Viewed: 60 622 times
Version: 1.1
Category: How-tos

How to apply a layout to an AJAX update

Created 5 years ago by trond, updated 5 years ago by CeBe.
  1. The Main template holds the header, main navigation and footer
  2. One or more layout files holds the column setup, sub navigation etc.
  3. The view files hold the actual page content.
1 0
4 followers
Viewed: 11 364 times
Version: 1.1
Category: How-tos
Tags: AJAX, views

How to implement magento cron on yii

Created 5 years ago by Ankit Modi, updated 5 years ago by CeBe.

Hi Friends, First I would to say sorry but I am not very familiar to magento so after a 1 week spend I will implement the magneto cron functionality on yii I hope it's may be some helpful.

0 0
3 followers
Viewed: 7 149 times
Version: 1.1
Category: How-tos

Saving CGridView filter

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

In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps

1 0
31 followers
Viewed: 10 477 times
Version: 1.1
Category: Tutorials

Integrate Zend 2 XML writer into Yii

Created 5 years ago by Jonny, updated 5 years ago by CeBe.

By Integrating the Zend 2.* framework into Yii you can quickly and painlessly generate XML outputs from your controllers. This will be helpful to anyone who has never done this before or only done it with Zend 1 as the introduction of namespaces can be strange when you first view them.

2 0
4 followers
Viewed: 7 013 times
Version: 1.1
Category: Tutorials
Tags: XML, zend

How to create Module based Login

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

Lets say we have 3 modules (customer, user, admin) in an application and we need, separate logins for each module.

1 0
7 followers
Viewed: 16 439 times
Version: 1.1
Category: How-tos

Tags manipulation using Select2 in single field

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

Sometime its very important to perform many actions/operation with limited time frame for friendly use, select2 provides a lot of such functionality , I just extend it tags functionality to provide a quick use for developer to save time, as I spent much time on it.

2 0
35 followers
Viewed: 7 962 times
Version: 1.1
Category: Tutorials

Simple Multiple Environment Setup with Default Yii Installation

Created 5 years ago by Ibrar Turi, updated 5 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: 10 588 times
Version: 1.1
Category: How-tos

Database Driven CMenu

Created 5 years ago by Preacher, updated 5 years ago by CeBe.

Purpose

0 0
4 followers
Viewed: 5 605 times
Version: 1.1
Category: Tutorials
Tags:

Simple Web APIs for your Yii App

Created 5 years ago by shiv, updated 5 years ago by CeBe.

Its very common now-a-days to have Mobile app for web apps. For Mobile apps we need web APIs to fetch data or even post/update on web. We found a very simple method to make such interface. Mobile App can call plain get or post request and receive data back in JSON format. JSON is relatively easy for mobile app to handle while plain standard GET/POST request for easy for Web server to handle. This...

1 2
10 followers
Viewed: 24 401 times
Version: 1.1
Category: How-tos
Tags: API, JSON

Extension Development (beginner)

Created 5 years ago by sefburhan, updated 5 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? -...

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

Created 5 years ago by toph, updated 2 years ago by toph.

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

0 0
6 followers
Viewed: 45 461 times
Version: 1.1
Category: How-tos

default csrf security and ajax post in one controller

Created 5 years ago by jasonban, updated 5 years ago by CeBe.

Hello Yii friends

0 3
8 followers
Viewed: 19 469 times
Version: 1.1
Category: Tutorials