Showing 121-140 of 373 items.

Attaching multiple event handlers to onBeginRequest

Created 12 years ago by Boaz Boaz, updated 12 years ago by CeBe CeBe. 0 comments

There came the need to perform two operations, always, on 'application boot' time. Example? My real world example involved some geo-location logic (that's the first operation) and syncing of some session details so KcFinder can be in sync with the user in context - each user with his own session container (the second).

1 0
2
Viewed: 18 691 times
Version: 1.1
Category: How-tos

Email by YiiMailer, Call Outlook, IMAP

Created 12 years ago by Scott_Huang Scott_Huang, updated 12 years ago by CeBe CeBe. 0 comments

In Yii community we have lots of extention can send emails, such as YiiMailer and Swift and so on, or even IMAPI, thanks for team contribution. However, sometimes, in the intranet enviroment, the program cannot run successfully since SMTP /IMAP port been banded. So you need to seek other ways. The most simple way is call outlook as COM.

0 0
6
Viewed: 26 224 times
Version: 1.1
Category: How-tos

Configuring Yii to run on both Windows and OSX

Created 12 years ago by trond trond, updated 12 years ago by CeBe CeBe. 2 comments

If you develop your Yii project on both Windows and Mac, there can be a problem setting up the configuration unless the configurations for both system are identical. On my machines I have the following configurations:

1 0
4
Viewed: 16 665 times
Version: 1.1
Category: How-tos

Upload files in Yii2 with MongoDb and GridFs

Created 12 years ago by edoardo849 edoardo849, updated 6 years ago by pceuropa pceuropa. 4 comments

Uploading files in a webapp can be extremely tricky and sometimes the quickest way to do it is to store the file directly in the webserver or into a DNS (like Amazon S3) and then to save the link and the metadata inside a table in the DB. The thing is that you'll have to deal with file permissions, server storage, file management and so on (which is perfectly fine, by the way).

6 0
6
Viewed: 44 684 times
Version: 2.0
Category: How-tos

Simple Multiple Environment Setup with Default Yii Installation

Created 12 years ago by Ibrar Turi Ibrar Turi, updated 12 years ago by CeBe CeBe. 2 comments

After installing Yii basic application on our systems, most of the time we want to have multiple environment such as local, dev and live setup. Most of the times when we want to make changes to configuration file, we have to over-write configurations file for each environment.

2 0
8
Viewed: 20 814 times
Version: 1.1
Category: How-tos

Simple Web APIs for your Yii App

Created 12 years ago by shiv shiv, updated 12 years ago by CeBe CeBe. 4 comments

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...

1 2
10
Viewed: 38 281 times
Version: 1.1
Category: How-tos