Wiki articles in category How-tos

Showing 141-160 of 292 items.
2 0
1 follower
Viewed: 18 235 times
Version: 1.1
Category: How-tos

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

Created 11 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: 31 166 times
Version: 1.1
Category: How-tos

Image resize on the fly

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

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

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

Syncing sessions between Yii and KCFinder

Created 11 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 532 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 371 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: 11 810 times
Version: 1.1
Category: How-tos

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: 53 843 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 104 times
Version: 1.1
Category: How-tos
Tags:

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: 71 589 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: 41 513 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 476 times
Version: 1.1
Category: How-tos

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 185 times
Version: 1.1
Category: How-tos

Handling recursive deletion in Yii

Created 11 years ago by JamesBarnsley, updated 8 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: 16 325 times
Version: 1.1
Category: How-tos

jQuery UI Datepicker

Created 11 years ago by softark, updated 10 years ago by Shahcheraghean.

We all love the convenient gadget, namely jQuery UI Datepicker as an input element for date. Yii supports it as CJuiDatePicker. Let's see how to use it.

5 0
12 followers
Viewed: 97 063 times
Version: 1.1
Category: How-tos

Handling Bootstrap active tabs in Yii via URL

Created 11 years ago by JamesBarnsley, updated 8 years ago by JamesBarnsley.

I (www.jamesbarnsley.com) found that when using the Yii Bootstrap tabs component you will sometimes want to direct the user to a specific tab and not necessarily the first tab. Yii Bootstrap already provides the "active" variable so you can define whether the tab is the active tab or not in PHP. I generally find though that a PHP solution to...

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

Turn Web HTML Into Newsletter

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

These newsletters have always been hard to create as regular web HTML is not properly read by web email interfaces and email clients. I thought that the simplest solution would be to use a web page that would serve as a web version of the newsletter and turn it somehow into newsletter HTML.

6 0
9 followers
Viewed: 16 527 times
Version: 1.1
Category: How-tos

Kickstart development with Yii-App

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

I recently created a project called Yii-App on GitHub to kickstart my development of smaller Yii applications. The main goal of the project is to provide a ready-to-use application template that includes my bootstrap extension and many other useful extensions. After reading this article you will be able to use...

14 0
40 followers
Viewed: 40 897 times
Version: 1.1
Category: How-tos

Using Bootstrap with LESS

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

I discovered Twitter Bootstrap almost two years ago. After trying it out for a while I fell in love with it. It didn't take long before I realized that it would be great to write an extension that allowed developers to start using Bootstrap in their Yii projects. One night I sat down and started writing what later became my now popular [bootstrap extension](http://ww...

11 0
14 followers
Viewed: 55 685 times
Version: 1.1
Category: How-tos