Wiki articles in category How-tos

Showing 161-180 of 292 items.

Serial Numbers (item counts) in GridView

Created 12 years ago by PeRoChAk PeRoChAk, updated 12 years ago by Maurizio Domba Cerin 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: 19 197 times
Version: 1.1
Category: How-tos

A simple go back button widget

Created 12 years ago by CTala CTala, updated 12 years ago by bennouna 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: 38 693 times
Version: 1.1
Category: How-tos

Using phpseclib with Yii

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

Additional form data with XUpload

Created 12 years ago by Asgaroth Asgaroth, updated 12 years ago by Asgaroth Asgaroth.

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

7 0
13 followers
Viewed: 48 249 times
Version: 1.1
Category: How-tos

Javascript and AJAX with Yii

Created 12 years ago by François Gannaz François Gannaz, updated 11 years ago by François Gannaz 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: 184 293 times
Version: 1.1
Category: How-tos

Elementary introduction to using jQuery ajax and the yii framework

Created 12 years ago by dhimes dhimes, updated 12 years ago by François Gannaz 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: 56 670 times
Version: 1.1
Category: How-tos
Tags: AJAX

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

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

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

Created 12 years ago by Boaz Boaz, updated 8 years ago by mrun mrun.

Consider the following use case:

5 1
6 followers
Viewed: 26 815 times
Version: 1.1
Category: How-tos

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

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

We start slowly and simple...

6 1
21 followers
Viewed: 185 322 times
Version: 1.1
Category: How-tos

Setting up PHPUnit and Selenium with IntelliJ IDEA/PhpStorm

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

Integrating Wordpress and Yii,Working Out The Details.

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

YouTube API v2.0 – Browser-based Uploading

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

Entire Messages into javascript object

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

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

1 0
3 followers
Viewed: 11 513 times
Version: 1.1
Category: How-tos

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

Created 13 years ago by kiran sharma kiran sharma, updated 13 years ago by Maurizio Domba Cerin 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 13 years ago by dstudio dstudio, updated 13 years ago by Maurizio Domba Cerin 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: 19 797 times
Version: 1.1
Category: How-tos

How to render a view in Fancybox using ajax

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

Sometimes you want to render a view in Fancybox.

4 0
14 followers
Viewed: 32 478 times
Version: 1.1
Category: How-tos

How to create front and admin side login form

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

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

4 0
15 followers
Viewed: 102 197 times
Version: 1.1
Category: How-tos

Alternative wildcard characters CDbCriteria

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

Publish yii webapp using Git push

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

ACL and RBAC

Created 13 years ago by zeroByte zeroByte, updated 13 years ago by kevinkorb 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
3 followers
Viewed: 33 637 times
Version: 1.1
Category: How-tos