Wiki

Sorted by viewsX
Displaying 411-420 of 771 result(s).

Impersonate Users within Yii Framework

Created 5 years ago by WoilTutorials6 comments – viewed 15,754 times – ( +22 ) – version 1.1
For some applications it can be advantageous for administration reasons to allow site administrators to login as other users. This is sometimes called user impersonation or "becoming that user".

Generate a multi-lever array sub-category for a menu

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos8 comments – viewed 15,740 times – ( +10 ) – version 1.1
Everyone have seen a multilayer menu in several CMS

Yii 2.0: Write & use a custom Component in Yii2.0 (Advanced Template)

Created about a year ago by Deepak PradhanHow-tos1 comment – viewed 15,691 times – version 2.0
This is an extension to Yii 2.0: Write & use a custom Component in Yii2.0 for Advanced Template

Upload files in Yii2 with MongoDb and GridFs

Created 2 years ago by edoardo849How-tos3 comments – viewed 15,654 times – ( +8 ) – version 2.0
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).

Extending an ActiveRecord model

Created 3 years ago by BogseyHow-tos3 comments – viewed 15,570 times – ( +2 / -3 ) – version 1.1
Introduction

Get 'source' data from the database - for TbEditableColumn or EditableColumn ('type'=>'select' / dropdownlist)

Created 2 years ago by Gerhard LiebenbergHow-tos0 comments – viewed 15,371 times – ( +4 / -1 ) – version 1.1
If you want to edit data directly in the gridview in a 'dropdownlist' style, then you could use the 'type' => 'select' option of TbEditableColumn (YiiBooster) or EditableColumn (x-editable for Yii). This wiki shows how to get data from the db for the 'dropdownlist', by converting AR model data into an array that is passed in json format.

Open Dialog from ajax content

Created 3 years ago by TouzasHow-tos1 comment – viewed 15,361 times – ( +4 / -1 ) – version 1.1
This tutorial will show you how to create Ajax dialog. It's very simple code.

BUM - Add Additional Info to a User

Created 2 years ago by fireflyHow-tos1 comment – viewed 15,298 times – ( +1 ) – version 1.1
How to add additional information to a user when using BUM extension?

Simple Web APIs for your Yii App

Created 2 years ago by shivHow-tos4 comments – viewed 15,267 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

Changing Controllers Name

Created 5 years ago by TrejderHow-tos0 comments – viewed 15,244 times – ( +5 ) – version 1.1
This very short how-to presents steps required to change controller name. It is oriented for less experienced users, which are starting their journey with Yii, to avoid common newbie pitfalls.