Wiki articles

Showing 241-260 of 650 items.

Handling recursive deletion in Yii

Created 6 years ago by JamesBarnsley, updated 3 years ago by JamesBarnsley.

I www.jamesbarnsley.com was tasked to find a way to do recursive deletion in Yii. As I asked other developers and looked around the internet the usual answers all came up, use a plugin or use cascade delete at the DB level, but I did not want to do either of these.

3 0
5 followers
Viewed: 12 578 times
Version: 1.1
Category: How-tos

TimeZone dropDown

Created 6 years ago by Tibor Katelbach, updated 6 years ago by Maurizio Domba Cerin.

I spend a bit of time looking for the this piece of code while building time feature on a site this tutorial also helped Local time zones and locales

3 0
4 followers
Viewed: 11 159 times
Version: 1.1
Category: How-tos

Speedup unit tests by moving MySql data to memory (in Ubuntu)

Created 6 years ago by seb, updated 6 years ago by François Gannaz.

There are several ways to speedup slow unit tests which interact with database:

1 1
3 followers
Viewed: 17 319 times
Version: 1.1
Category: Tips

Load the Yii-Bootstrap Extension on Specific Actions

Created 6 years ago by chuntley, updated 6 years ago by chuntley.

A big problem I've hit with the Yii-Bootstrap extension is that all AJAX requests are initializing Bootstrap because of preload. This is a huge waste of resources, especially when using AJAX-based file uploaders that split the file into chunks. Large file uploads using that method could be initializing bootstrap hundreds of times.

7 0
15 followers
Viewed: 23 208 times
Version: 1.1
Category: How-tos

PayPal Integration And IPN (Instant Payment Notification)

Created 6 years ago by yasen, updated 6 years ago by yasen.

<?php $this->endWidget(); ?>

5 0
15 followers
Viewed: 28 132 times
Version: 1.1
Category: How-tos

CKEditor Integration (includes steps for file uploads) - Step by Step

Created 6 years ago by shulme, updated 6 years ago by shulme.

Hey guys, I'm hoping other people will find this helpful. Today I went through the process of adding CKEditor to one of my projects, and then integrating KCFinder as the image uploader. It will be used in a CActiveForm, without the use of any crazy weird widgets. All paths are relative, using Yii functions, so this will work no matter where you install. Here it is:

10 0
22 followers
Viewed: 62 890 times
Version: 1.1
Category: How-tos

MigrateCommand class for multiple sites using one code base

Created 6 years ago by Hudson Nguyen, updated 6 years ago by Hudson Nguyen.

My CMS supports multiple sites using one code base therefore the db connection can only be configured by detecting the site's domain.

0 0
2 followers
Viewed: 4 649 times
Version: 1.1
Category: How-tos
Tags:

How to use YiiBooster TbFileUpload widget

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

I normally create a files folder and I allocate it within my www one, that is where I keep my css, js, images files. So, even though you can place it where ever you wish and for the sake of the example, I will use the files folder name.

7 0
19 followers
Viewed: 48 987 times
Version: 1.1
Category: How-tos

An Easy Solution for Dependent dropDownList Using AJAX

Created 6 years ago by mrs, updated 5 years ago by Kostas Apazidis (KonApaz).

Sometimes new Yii guys face problem to manage dependent dropDownList using AJAX. I am going to discuss an easy solution about this issue.

7 1
24 followers
Viewed: 92 496 times
Version: 1.1
Category: Tips

Drills : Search by a HAS_MANY relation in Yii 1.1

Created 6 years ago by softark, updated 9 months ago by softark.

Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider in Yii 1.1. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

22 0
27 followers
Viewed: 57 380 times
Version: 1.1
Category: Tutorials

Multilanguage Lorem Ipsum Text Generator

Created 6 years ago by yasen, updated 6 years ago by yasen.

Taking futher the idea from Piotr Masełkowski - http://www.yiiframework.com/extension/elipsum/ here's how to generate multilanguage Lorem Ipsum text. This example uses English and Bulgarian sample paragraphs. Create a class in /protected/components/LoremIpsum.php. Wall of text incoming wohoo...

2 0
1 follower
Viewed: 8 990 times
Version: 1.1
Category: How-tos

Use crypt() for password storage

Created 6 years ago by fsb, updated 4 years ago by fsb.

Update: This wiki has been rewritten to be in line with Yii 1.1.14. Since many of the detailed complexities are now handled by Yii, the article focuses on how the crypt() built-in function works and why it's important to use it correctly.

15 0
21 followers
Viewed: 111 533 times
Version: 1.1
Category: Tutorials

How to use YiiBooster Bootstrap Gallery

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

Since version 1.0.4, Yii developers can make use of the image gallery provided by Sebastian Tshan, a great javascript developer that has created some true gems like the jquery file upload plugin.

3 0
9 followers
Viewed: 30 935 times
Version: 1.1
Category: How-tos

Installing Yii Users and Rights to Newly Created Yii app

Created 6 years ago by Rajith R, updated 5 years ago by Rajith R.

After creating an yii app . we need to implement permission, Authentication and Authorization .so the best way is to use the Yii users and Rights modules.

10 1
40 followers
Viewed: 95 878 times
Version: 1.1
Category: Tutorials

Syncing sessions between Yii and KCFinder

Created 6 years ago by Thanasis Fotis, updated 5 years ago by Boaz.

>Info: As KCFinder's documentation mentions, if your application (Yii in our case) session handling is using the PHP environment configuration - meaning no change in session handling at all, then no change is needed also on KCFinder side to be able to use this session and thus have this simple interface between your Yii webapp and KCFinder. If t...

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

Create sitemap.xml file dynamically on root folder with one hit

Created 6 years ago by kiran sharma, updated 6 years ago by kiran sharma.

I had created one controller file which can create sitemap.xml file(which is used for seo, google crawler and many other puropse) dynamically with one run.

2 1
9 followers
Viewed: 20 269 times
Version: 1.1
Category: How-tos
Tags: SEO, SiteMap, XML

Image resize on the fly

Created 6 years ago by Tpoxa, updated 6 years ago by Tpoxa.
3 0
11 followers
Viewed: 26 896 times
Version: 1.1
Category: How-tos

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created 6 years ago by Xgamer99, updated 6 years ago by Maurizio Domba Cerin.

I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it o...

1 0
7 followers
Viewed: 17 239 times
Version: 1.1
Category: Tips

Cheat Sheet: Displaying Name instead of Numbers and Displaying Alphanumeric instead of numeric values

Created 6 years ago by skworden, updated 6 years ago by skworden.

I keep a reference to some simple but painful task if you forget a common or something. I am new to Yii and this took awhile for me to figure out. Everything I read said do this or do that and not a single one worked for me. However, the following did.

3 1
6 followers
Viewed: 23 422 times
Version: 1.1
Category: How-tos
2 0
1 follower
Viewed: 12 937 times
Version: 1.1
Category: How-tos