Wiki

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

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

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

Simple Web APIs for your Yii App

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

get summary of related model via STAT relation

Created about a year ago by rootbearHow-tos2 comments – viewed 11,737 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,731 times – ( +14 ) – version 1.1
Many time for SEO porpouses is important that each page will have a unique address.
tags: SEO, unique, URL

URL component access functions

Created 4 years ago by Steve FriedlTips1 comment – viewed 11,632 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

Simple Mail Queue

Created 2 years ago by waterloomattTutorials3 comments – viewed 11,549 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.

Ordering Models by Weight with CJuiSortable

Created 5 years ago by Matt KelliherTutorials2 comments – viewed 11,403 times – ( +10 ) – version 1.1
In this tutorial we will be setting up a content type to be ordered by weight using the JUI Sortable plugin.

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created 2 years ago by Xgamer99Tips3 comments – viewed 11,367 times – ( +1 ) – version 1.1
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it or on the 'select all' checkbox.

[Guide] How to actually separate Frontend (User) and Backend (Admin) on Yii2 Advanced

Created 3 months ago by Wade ShulerHow-tos1 comment – viewed 11,340 times – ( +8 / -1 ) – version 2.0
I am writing this guide because I struggled to find a resource that included ALL of the necessary steps to completely separate the frontend from the backend. After reading guides like Configuring different sessions for backend and frontend in yii-advanced-app and yii2 configuring different sessions for backend and frontend in yii advanced application template, there are still steps missing. It is funny how the 2nd one says it is an extension of the first one's article. So I guess, my wiki guide here is yet a 3rd and more complete extension of both of them. I also found a few StackOverflow questions and blog posts regarding this topic. None of them fully worked, and must be missing some magic sauce!

Advanced CTabView using CClipWidget

Created 6 years ago by krillzipTutorials1 comment – viewed 11,293 times – ( +2 ) – version 1.1
Here is a way to dynamically extend tabs based on clips. Probably even more complex things could be done.