Wiki

Articles in category "how-tos"X
Displaying 171-180 of 322 result(s).

Load the Yii-Bootstrap Extension on Specific Actions

Created 2 years ago by chuntleyHow-tos5 comments – viewed 15,589 times – ( +10 ) – version 1.1
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.
tags: bootstrap, filter

PayPal Integration And IPN (Instant Payment Notification)

Created 2 years ago by yasenHow-tos3 comments – viewed 16,628 times – ( +9 ) – version 1.1
Had to implement PayPal payments for a client and would like to share part of my code with you. Because the tutorial will become too long, I'll leave some code to be done by you, e.g. creating models, controllers and db tables for products, orders.

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

Created 2 years ago by shulmeHow-tos11 comments – viewed 35,082 times – ( +24 ) – version 1.1
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:

MigrateCommand class for multiple sites using one code base

Created 2 years ago by Hudson NguyenHow-tos1 comment – viewed 3,069 times – ( +1 ) – version 1.1
My CMS supports multiple sites using one code base therefore the db connection can only be configured by detecting the site's domain.

How to use YiiBooster TbFileUpload widget

Created 2 years ago by Antonio RamirezHow-tos15 comments – viewed 32,949 times – ( +11 ) – version 1.1
The following wiki is to explain how to make use of the TbFileUpload widget from YiiBooster. I have received a couple of requests and I thought was worth writing a wiki for it.

Multilanguage Lorem Ipsum Text Generator

Created 2 years ago by yasenHow-tos2 comments – viewed 4,742 times – ( +2 ) – version 1.1
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...

How to use YiiBooster Bootstrap Gallery

Created 2 years ago by Antonio RamirezHow-tos3 comments – viewed 21,642 times – ( +4 ) – version 1.1
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.

Syncing sessions between Yii and KCFinder

Created 2 years ago by Thanasis FotisHow-tos7 comments – viewed 5,420 times – ( +1 ) – version 1.1
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 that's your case then you probably need not read the rest of this article but rather just make sure that before a user attempts to upload or browse your server a session variable is already set for him (or her) with his specific configuration already waiting for KCFinder there. What can this session interface be useful for? For example, for having per-user upload directory. You could have uploadURL variable established in the session variable to contain the user's id. When an upload or browse use case will occur, the client side will trigger the KCFinder completely decoupled from the Yii application. Yet, since you've already synced your user-specific-configuration with KCFinder via the session, KCFinder will pick it up and use it.
tags: File upload

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

Created 2 years ago by kiran sharmaHow-tos1 comment – viewed 11,004 times – ( +5 / -5 ) – version 1.1
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.
tags: SEO, SiteMap, XML

Image resize on the fly

Created 2 years ago by TpoxaHow-tos4 comments – viewed 14,208 times – ( +4 ) – version 1.1
For example have folder with image resources which are public accessible
tags: yii, image-resize