Wiki

Sorted by viewsX
Displaying 531-540 of 686 result(s).

Syncing sessions between Yii and KCFinder

Created about a year ago by Thanasis FotisHow-tos7 comments – viewed 4,840 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

Making friends' configs, DB credentials and paths with version control

Created about a year ago by Alexander PalamarchukTips1 comment – viewed 4,830 times – ( +2 / -1 ) – version 1.1
In many cases developers of one project use their own local environments for coding. There may be a common test platform and, of course, production. All these environments usually have different DB credentials and directory structures (first of all, path to YII framework directory). Another feature is debugging. It's convenient to turn it on for local environments, eventually - on the test server and never (generally speaking) - on the production.
tags: config

an easy way to required multi columns(At least one cannot be blank)

Created 3 years ago by 1065227709Tips0 comments – viewed 4,788 times – ( +2 ) – version 1.1
in model add the following code:
tags: rules

ePay Integration - Bulgarian Payment Provider

Created about a year ago by yasenTutorials2 comments – viewed 4,779 times – ( +7 ) – version 1.1
I. In the view script add the following hidden fields:

How to Display tooltp(qtip) on CGridview dynamic

Created about a year ago by Ankit ModiTips1 comment – viewed 4,758 times – ( -1 )
Hi Friends,

using editors of yiibooster - fix issues - configuration

Created about a year ago by KonApazHow-tos0 comments – viewed 4,731 times – ( +5 ) – version 1.1
if you have use the yiibooster extension, you have definitely used the amazing redactor, html5 and ckEditor editors.

Implementing menu items with progress (wait) dialog

Created about a year ago by TrejderHow-tos0 comments – viewed 4,606 times – ( +1 ) – version 1.1
This article shows one of possible ways to implement menu items (as well as links), which displays a progress / wait dialog and are redirecting browser to destination URL in the same time. This is especially useful, for links or routes that are know to be loaded for a prolonged period of time (i.e. getting a lot of data from database).

New Relic Error Alert with Yii

Created 12 months ago by simon604Tips2 comments – viewed 4,573 times – ( +5 )
Introduction

Integrating ZF2 into Yii - use case demonstrated

Created about a year ago by BoazHow-tos2 comments – viewed 4,541 times – ( +9 ) – version 2.0
I needed to use a class from ZF2 in my Yii project. I've read probably all there is about this subject and still I needed lots of trial & errors to get it working, probably due to my lack of experience working with namepsaces and ZF2 in general. Also, the resources on the web are all partial, at best. Most simply refer to ZF1 where things are technically different. When I got it all working I decided to record my findings and that's how this article was born. The below recipe is what worked for me, accompanied by relevant comments. References: This article is partially based on this guide page. Be sure also to consult Zend Framework 2 documentation.

Yiistrap TbHtml::navbarSearchForm

Created 9 months ago by PatriceTips0 comments – viewed 4,467 times – version 1.1
Hi all,