Wiki

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

Syncing sessions between Yii and KCFinder

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

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

Created 6 months ago by Kartik VHow-tos2 comments – viewed 4,944 times – ( +27 / -4 ) – version 2.0
In Yii 2.0, the yii widgets that use Twitter Bootstrap CSS & JS directly, are part of the yii2-bootstrap extension, starting with yii/bootstrap namespace. For customizing bootstrap extension specific widget assets, you could configure your own assets (CSS/JS) using the new Yii Asset Manager in your Yii Config file. Something like:

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

Created about a year ago by Alexander PalamarchukTips1 comment – viewed 4,932 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

Named scope - Get orphan AR without losing primary key

Created 4 years ago by cmaTutorials0 comments – viewed 4,927 times – version 1.1
Sometime, in a many-to-many relation, you need to retrieve AR that aren't linked. In practice, AR with null value in the join table. So you implements a criteria like this :

How to Display tooltp(qtip) on CGridview dynamic

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

ePay Integration - Bulgarian Payment Provider

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

using editors of yiibooster - fix issues - configuration

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

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

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

New Relic Error Alert with Yii

Created about a year ago by simon604Tips2 comments – viewed 4,772 times – ( +5 )
Introduction

ClientValidation for files (modern browsers)

Created 9 months ago by KonApazHow-tos0 comments – viewed 4,733 times – ( +4 ) – version 1.1
There are cases that you want to validate the file format, size, extension etc but how to do that without submit the form ?