Wiki articles in category How-tos

Showing 161-180 of 292 items.

Serial Numbers (item counts) in GridView

Created 7 years ago by PeRoChAk, updated 7 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: 12 737 times
Version: 1.1
Category: How-tos

A simple go back button widget

Created 7 years ago by CTala, updated 7 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: 30 040 times
Version: 1.1
Category: How-tos

Using phpseclib with Yii

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

Additional form data with XUpload

Created 7 years ago by Asgaroth, updated 6 years ago by Asgaroth.

In this article you'll learn how to send additional form data when uploading files using XUpload widget

7 0
13 followers
Viewed: 40 746 times
Version: 1.1
Category: How-tos

Javascript and AJAX with Yii

Created 7 years ago by François Gannaz, updated 5 years ago by François Gannaz.

This page intends to provide an exhaustive guide of how to use Javascript (JS) in Yii. It does not explain how to learn coding in JS, but how to deal with it "the Yii way".

23 0
30 followers
Viewed: 158 493 times
Version: 1.1
Category: How-tos

Elementary introduction to using jQuery ajax and the yii framework

Created 7 years ago by dhimes, updated 7 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: 45 313 times
Version: 1.1
Category: How-tos
Tags: AJAX

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

Created 7 years ago by Giuliano, updated 7 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: 26 051 times
Version: 1.1
Category: How-tos

How to "masquerade" a non-required form element as 'required' one (in the view only)

Created 7 years ago by Boaz, updated 2 years ago by mrun.

Consider the following use case:

5 1
6 followers
Viewed: 19 752 times
Version: 1.1
Category: How-tos

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

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

We start slowly and simple...

6 1
21 followers
Viewed: 111 546 times
Version: 1.1
Category: How-tos

Setting up PHPUnit and Selenium with IntelliJ IDEA/PhpStorm

Created 7 years ago by rAWTAZ, updated 7 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: 43 285 times
Version: 1.1
Category: How-tos

Integrating Wordpress and Yii,Working Out The Details.

Created 7 years ago by drumaddict, updated 6 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: 28 022 times
Version: 1.1
Category: How-tos
Tags: wordpress

YouTube API v2.0 – Browser-based Uploading

Created 7 years ago by Vaibhav, updated 7 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: 18 808 times
Version: 1.1
Category: How-tos

Entire Messages into javascript object

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

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

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

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

Created 7 years ago by kiran sharma, updated 7 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...

Extending CJuiDialog

Created 7 years ago by dstudio, updated 7 years ago by Maurizio Domba Cerin.

Sometimes you have CJuiDialog with different content but same buttons (or width, height). If you don't want to repeat yourself this is a great solution:

1 2
2 followers
Viewed: 14 292 times
Version: 1.1
Category: How-tos

How to render a view in Fancybox using ajax

Created 7 years ago by rix.rix., updated 7 years ago by 张 迪.

Sometimes you want to render a view in Fancybox.

4 0
14 followers
Viewed: 26 646 times
Version: 1.1
Category: How-tos

How to create front and admin side login form

Created 7 years ago by vibhaJadwani, updated 7 years ago by vibhaJadwani.

In this WIKI you can learn how to create front and admin login form, using database.

4 0
15 followers
Viewed: 87 800 times
Version: 1.1
Category: How-tos

Alternative wildcard characters CDbCriteria

Created 7 years ago by maigret, updated 7 years ago by maigret.

In SQL, wildcard characters can be used in "LIKE" expressions; the percent sign (%) matches zero or more characters, and underscore (_) a single character. Sometimes users are not familiar with these or they are using different ones like (*) and (+) similar to regular expressions. My colleages do so and then i decided to add this feature by extending CbCriteria. Especially adding a new parameter $...

1 0
2 followers
Viewed: 9 754 times
Version: 1.1
Category: How-tos

Publish yii webapp using Git push

Created 7 years ago by rootbear, updated 7 years ago by 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: 15 443 times
Version: 1.1
Category: How-tos
Tags: git

ACL and RBAC

Created 7 years ago by zeroByte, updated 7 years ago by kevinkorb.

This HowTo assumes that you have a smattering of ACL in general and of how the acl-extension works basically. It will introduce you into the abstract and give you a hint on how to use Business-Rules. If you have in-depth questions, please refer to the extension documentation. Using ACL in an RBAC-manner cannot and should never obs...

0 0
4 followers
Viewed: 23 168 times
Version: 1.1
Category: How-tos