Sorted by viewsX
Displaying 441-450 of 757 result(s).

Simple Web APIs for your Yii App

Created about a year ago by shivHow-tos4 comments – viewed 12,126 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

Configuring different sessions for backend and frontend in Yii advanced app

Created about a year ago by Kartik VHow-tos2 comments – viewed 12,113 times – ( +46 ) – version 2.0
After you have setup your Yii2 advanced application, you now have setup your user authentication for both frontend and backend. However, if you have first logged into frontend, and try to access backend from the same client machine, you see no login screen, but find yourself automatically logged in.

How to change the confirmation message on admingridview button and call a ajax..Dynamic

Created 2 years ago by Ankit ModiTips0 comments – viewed 12,067 times – ( +3 ) – version 1.1
Hi Friends,

How to use bizRules in standard accessControl filter

Created 2 years ago by Maciej Li┼╝ewskiHow-tos8 comments – viewed 12,017 times – ( +3 ) – version 1.1
I assume you are familiar with accessControl standard filter. It allows you to separate privileges to run some action from action code itself. There is however one problem with most common usage - you cannot use bizRules, at least based on some parameters passed to 'checkAccess' just because it is hard to pass them in accessRules() result.

get summary of related model via STAT relation

Created 2 years ago by rootbearHow-tos2 comments – viewed 12,000 times – ( +7 / -1 ) – version 1.1
typical scenario: invoice, invoice items.

How to ensure unicity to url

Created 4 years ago by zaccariaTips3 comments – viewed 11,819 times – ( +14 ) – version 1.1
Many time for SEO porpouses is important that each page will have a unique address.
tags: SEO, unique, URL

Simple Mail Queue

Created 2 years ago by waterloomattTutorials3 comments – viewed 11,801 times – ( +10 / -2 ) – version 1.1
This tutorial shows how to create a simple mail queue. It is usually run from a cron job but can be run from the command line too.

URL component access functions

Created 4 years ago by Steve FriedlTips1 comment – viewed 11,736 times – ( +28 ) – version 1.1
Many applications wish to obtain parts of the URL for the current page (the hostname, the query string, etc.), and the CHttpRequest class wraps various $_SERVER variables to break down the URL into its constituent parts.
tags: URL, request

Save or Update Multiple related model values in one Tabular input form

Created about a year ago by Kostas Apazidis (KonApaz)Tutorials4 comments – viewed 11,727 times – ( +1 / -7 ) – version 1.1
In this wiki I will show you how to save/update a model with many related model For example: How to set a product to multiple categories only in one post form ?

Drills : Search by a HAS_MANY relation in Yii 2.0

Created 9 months ago by softarkTutorials1 comment – viewed 11,653 times – ( +12 ) – version 2.0
This article tries to describe the practical techniques of searching by a HAS_MANY relation using ActiveRecord of Yii 2.0.