Sorted by ratingX
Displaying 681-690 of 757 result(s).

ISA hierarchy of tables inside a database and how to implement a single form

Created 4 years ago by pligorHow-tos2 comments – viewed 9,523 times – ( +1 ) – version 1.1
Please consider the following Dear software engineers imagine I have a simple ISA hierarchy: parent A with children B and C. So let's say we have the corresponding tables named "a", "b", "c" and (created with the help of the gii model creator) the classes A, B, C The following is a screenshot from MySQL workbench:

Using setFlash for displaying various kind of messages

Created 4 years ago by TrejderHow-tos6 comments – viewed 53,584 times – ( +4 / -5 ) – version 1.1
In this short how-to I will show how to customize setFlash() to display messages (flashes) styled to be success confirmation, error report or notice information. And how to achieve displaying errors in other way.
tags: flash, error, message

Easy way to redirect http:\\localhost\yii2-basic to http:\\localhost\yii2-basic\web\index.php

Created 11 months ago by Scott_HuangTips0 comments – viewed 6,830 times – ( +3 / -3 ) – version 2.0
First of all, install yii2 basic template according below link:

"safe" and "unsafe" Model validators (massive assignments)

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos4 comments – viewed 14,644 times – ( +4 / -6 )
Ok, it is a little bit difficult to full understanding the unsafe validator.

Two Login in same form in Yii application , with two tables

Created 2 years ago by BaluTutorials5 comments – viewed 17,894 times – ( +4 / -7 ) – version 1.1
login links will be


Created 6 years ago by jonahTutorials1 comment – viewed 12,158 times – ( +2 / -2 ) – version 1.1
Note: currently a variant of this class CTimestampBehavior is included into Yii distribution package.

Create/Develop View files with plain HTML (Without using ActiveForm Class)

Created about a year ago by kalpitHow-tos2 comments – viewed 9,343 times – ( +2 / -2 ) – version 1.1
Today i want to share with you is "How can we write HTML Code in view files? I am writing this article because many times we can not use CActiveForm to design our form...
tags: views, tutorial

How to Create Pdf Report / Excel Report By Using Parameters (From - Until)

Created about a year ago by ruderbytesHow-tos2 comments – viewed 20,538 times – ( +2 / -2 ) – version 1.1
Asslamualaikum Wr.Wb Hello I'm Fahmi Azain i will share wiki tutorial about Creating Pdf Report / Excel Report by using Parms / Parameters.

Simple Web APIs for your Yii App

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

Extending CJuiDialog

Created 3 years ago by dstudioHow-tos0 comments – viewed 9,890 times – ( +2 / -2 ) – version 1.1
Sometimes you have CJuiDialog with different content but same buttons (or width, height). If you don't want to repeat yourself this is a great solution: