Wiki

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

Syncing sessions between Yii and KCFinder

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

Automatic Parameter Binding to POST vars in Yii2

Created 6 months ago by aarondfrancisHow-tos2 comments – viewed 4,156 times – version 2.0
I wrote about this on my blog, but wanted to post it here too.
tags: yii2, controllers

using editors of yiibooster - fix issues - configuration

Created 9 months ago by KonApazTips0 comments – viewed 4,077 times – ( +5 )
if you have use the yiibooster extension, you have definitely used the amazing redactor, html5 and ckEditor editors.

How to Display tooltp(qtip) on CGridview dynamic

Created 9 months ago by Ankit ModiTips1 comment – viewed 4,066 times – ( -1 )
Hi Friends,

Entire Messages into javascript object

Created about a year ago by markuxHow-tos0 comments – viewed 4,003 times – ( +2 ) – version 1.1
I needed all messages with their translation into javascript. This is my solution:

Integrating ZF2 into Yii - use case demonstrated

Created 10 months ago by BoazHow-tos2 comments – viewed 3,964 times – ( +8 ) – 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.

Simple Web APIs for your Yii App

Created 3 months ago by shivHow-tos3 comments – viewed 3,954 times – ( +2 / -2 ) – version 1.1
Its very common now-a-days to have Mobile app for web apps. For Mobile apps we need web APIs to fetch data or even post/update on web. We found a very simple method to make such interface. Mobile App can call plain get or post request and receive data back in JSON format. JSON is relatively easy for mobile app to handle while plain standard GET/POST request for easy for Web server to handle. This mixed approach saves lot of time on server side. We not really need to handle actual REST requests and still be able to exchange data between web and mobiles or ajax java-scripts or even node.js.
tags: API, JSON

Multilanguage Lorem Ipsum Text Generator

Created about a year ago by yasenHow-tos0 comments – viewed 3,947 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...

WordPress Role Based Authentication in Yii

Created 4 months ago by Bob GTutorials0 comments – viewed 3,882 times – ( +4 / -1 ) – version 1.1
This tutorial is for people that are integrating Yii into WordPress. Meaning that WordPress is the host platform, and that Yii will be handling AR, CRUD, etc.

New Relic Error Alert with Yii

Created 8 months ago by simon604Tips2 comments – viewed 3,881 times – ( +5 )
Introduction