Wiki articles in category How-tos

Showing 221-240 of 373 items.

TimeZone dropDown

Created 11 years ago by Tibor Katelbach, updated 11 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: 14 538 times
Version: 1.1
Category: How-tos

Load the Yii-Bootstrap Extension on Specific Actions

Created 11 years ago by chuntley, updated 11 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: 27 923 times
Version: 1.1
Category: How-tos

PayPal Integration And IPN (Instant Payment Notification)

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

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

5 0
15 followers
Viewed: 42 876 times
Version: 1.1
Category: How-tos

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

Created 11 years ago by shulme, updated 11 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: 72 401 times
Version: 1.1
Category: How-tos

MigrateCommand class for multiple sites using one code base

Created 11 years ago by Hudson Nguyen, updated 11 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: 6 339 times
Version: 1.1
Category: How-tos
Tags:

How to use YiiBooster TbFileUpload widget

Created 11 years ago by Antonio Ramirez, updated 11 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: 54 321 times
Version: 1.1
Category: How-tos

Multilanguage Lorem Ipsum Text Generator

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

How to use YiiBooster Bootstrap Gallery

Created 11 years ago by Antonio Ramirez, updated 11 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: 35 892 times
Version: 1.1
Category: How-tos

Syncing sessions between Yii and KCFinder

Created 12 years ago by Thanasis Fotis, updated 10 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: 16 978 times
Version: 1.1
Category: How-tos

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

Created 12 years ago by kiran sharma, updated 12 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: 64 588 times
Version: 1.1
Category: How-tos
Tags: SEO, SiteMap, XML

Image resize on the fly

Created 12 years ago by Tpoxa, updated 12 years ago by Tpoxa.
3 0
11 followers
Viewed: 32 752 times
Version: 1.1
Category: How-tos

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

Created 12 years ago by skworden, updated 11 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: 59 813 times
Version: 1.1
Category: How-tos
2 0
1 follower
Viewed: 19 202 times
Version: 1.1
Category: How-tos
3 0
4 followers
Viewed: 20 892 times
Version: 1.1
Category: How-tos

pass variables or content block from view file to layout file

Created 12 years ago by yiqing95, updated 12 years ago by Maurizio Domba Cerin.

If you use yiic to generate webApplication there will be a layout folder under the protected/views/, and the Controller class under protected/components which will use by default these layouts files.

2 0
6 followers
Viewed: 51 355 times
Version: 1.1
Category: How-tos

Localized version of CFormatter

Created 12 years ago by marcovtwout, updated 10 years ago by marcovtwout.

To replace the application component 'format', which is registered by CApplication by default, you can put this in your application 'components' config:

2 0
5 followers
Viewed: 10 488 times
Version: 1.1
Category: How-tos

Create custom button button with AJAX function in CGridView

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

This will call the controller function using AJAX instead of redirecting the user to the url using GET parameters.

5 0
15 followers
Viewed: 68 052 times
Version: 1.1
Category: How-tos

Install, update and use Yii with WAMP server

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

Here I am describing how you can install and update Yii in WAMP sever.

0 0
5 followers
Viewed: 88 950 times
Version: 1.1
Category: How-tos

URL management for Websites with secure and nonsecure pages

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

In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.

19 0
34 followers
Viewed: 59 059 times
Version: 1.1
Category: How-tos
Tags: URL

Hyphenation of routes in URL management

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

In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.

15 0
21 followers
Viewed: 36 015 times
Version: 1.1
Category: How-tos
Tags: URL