Wiki

Sorted by viewsX
Displaying 401-410 of 784 result(s).

Simple Web APIs for your Yii App

Created 3 years ago by shivHow-tos4 comments – viewed 18,693 times – ( +2 / -3 ) – 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

Twitter Bootstrap style Breadcrumbs

Created 4 years ago by junaidatariHow-tos0 comments – viewed 18,581 times – ( +5 / -2 ) – version 1.1
1: Create breadcrumb in your view file.

Logout CSRF Protection

Created 6 years ago by Rodrigo CoelhoTutorials1 comment – viewed 18,563 times – ( +10 / -1 ) – version 1.1
CSRF is the acronymn for Cross-site request forgery. It is an attack which forces an end user to execute unwanted actions on a web application in which he/she is currently authenticated.

A simple class to use a different db for a module

Created 6 years ago by tydeas_drTips3 comments – viewed 18,563 times – ( +10 / -1 ) – version 1.1
What would you do if you want/need to have a different than the main database connection in an module's models?

What to do when composer fails to update your vendor packages?

Created 3 years ago by Kartik VTutorials0 comments – viewed 18,477 times – ( +38 / -6 ) – version 2.0
Have you faced some of these problems when using composer with your Yii 2 installation?

Upload files in Yii2 with MongoDb and GridFs

Created 3 years ago by edoardo849How-tos3 comments – viewed 18,389 times – ( +8 / -1 ) – 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).

Radio Button List with enum values for column of type ENUM >+> incorporate into giix

Created 4 years ago by pckabeerHow-tos1 comment – viewed 18,248 times – ( +7 / -1 ) – version 1.1
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue'). We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a Radio Button List, which has the enum values as options. This is a rewrite of c@cba in the wiki article of enumDropdownListThe main code was contributed by zaccaria in the forum (see this post).

Starting with YII 1.1.x in Windows Environment (WAMP)

Created 2 years ago by Rajith RTutorials0 comments – viewed 18,084 times – ( +8 / -1 ) – version 1.1
As we know YII is the Leading Framework of PHP. Lots of new developers are starting to use YII day by day. Most of the beginners are little bit confused with how to start with YII . I think this note will help them. Follow the simple steps To run a Yii-powered Web application, you need a Web server that supports PHP 5.1.0.
tags: newbie, yii, yiic

How to implement an event and attach it in a behavior

Created 4 years ago by seb7How-tos0 comments – viewed 17,912 times – ( +6 / -1 ) – version 1.1
This page explains how to implement an event and catch that event in a behavior.
tags: event, behavior