Showing 261-280 of 826 items.

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 536 times
Version: 2.0
Category: How-tos

Saving CGridView filter

Created 12 years ago by sefburhan sefburhan, updated 12 years ago by CeBe CeBe. 5 comments

In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps

1 0
31
Viewed: 16 376 times
Version: 1.1
Category: Tutorials

Integrate Zend 2 XML writer into Yii

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

By Integrating the Zend 2.* framework into Yii you can quickly and painlessly generate XML outputs from your controllers. This will be helpful to anyone who has never done this before or only done it with Zend 1 as the introduction of namespaces can be strange when you first view them.

2 0
4
Viewed: 52 234 times
Version: 1.1
Category: Tutorials

Tags manipulation using Select2 in single field

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

Sometime its very important to perform many actions/operation with limited time frame for friendly use, select2 provides a lot of such functionality , I just extend it tags functionality to provide a quick use for developer to save time, as I spent much time on it.

2 0
35
Viewed: 52 166 times
Version: 1.1
Category: Tutorials

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 759 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 167 times
Version: 1.1
Category: How-tos

Extension Development (beginner)

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

To extend the functionality of you web application relative to your requirements you are supposed to use existing yii core libraries or use external libraries. There are some steps to ensure security, uniqueness, modularity, performance and to avoid rework in future.

Step 01: Have a Strategy

  • Is my extension just for fun/demonstration purposes or for everyday use in the real world? -...