Wiki

Displaying 401-410 of 741 result(s).

Yii behind a reverse proxy, SSL support and correct IP logging

Created 2 years ago by mrkmgTips0 comments – viewed 4,681 times – version 1.1
If you are hosting Yii behind a reverse proxy, for example nginx, and you are having issues with your logs showing the proxies IP, or the urls being created arn't being created for SSL because your SSL certs are located on your reverse proxy instead of the Yii server, this code may be able to help you. I placed them in the very top of Yii's entry script, index.php

Extending CJuiDialog

Created 2 years ago by dstudioHow-tos0 comments – viewed 9,279 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:

How to render a view in Fancybox using ajax

Created 2 years ago by rix.rix.How-tos1 comment – viewed 19,068 times – ( +7 ) – version 1.1
Sometimes you want to render a view in Fancybox.
tags: fancybox, ajax, views

How to create front and admin side login form

Created 2 years ago by vibhaJadwaniHow-tos7 comments – viewed 56,233 times – ( +6 ) – version 1.1
In this WIKI you can learn how to create front and admin login form, using database.

Auto set model fields values

Created 2 years ago by vibhaJadwaniTutorials3 comments – viewed 15,833 times – ( +9 ) – version 1.1
This is a tutorial for how to auto set model values without any code.

Alternative wildcard characters CDbCriteria

Created 2 years ago by maigretHow-tos0 comments – viewed 5,807 times – ( +3 ) – version 1.1
In SQL, wildcard characters can be used in "LIKE" expressions; the percent sign (%) matches zero or more characters, and underscore (_) a single character. Sometimes users are not familiar with these or they are using different ones like (*) and (+) similar to regular expressions. My colleages do so and then i decided to add this feature by extending CbCriteria. Especially adding a new parameter $wildcard_chars to the method addSearchCondition to replace them if needed with standard SQL characters:

Working with CGridView in Admin Panel

Created 2 years ago by vibhaJadwaniTutorials18 comments – viewed 65,899 times – ( +43 / -1 ) – version 1.1
This is a tutorial for how to add input text-Field, check-box, buttons in CGridView.

How to setup CKeditor

Created 2 years ago by Dark-SunTutorials4 comments – viewed 18,122 times – ( +3 ) – version 1.1
To start with you need to download the latest stable release of CKeditor. Extract the downloaded file and place the ckeditor/ folder in your applications webroot directory. (beside "protected" and "css" and other directories)

Working with radiobutton list

Created 2 years ago by vibhaJadwaniTutorials3 comments – viewed 39,097 times – ( +10 ) – version 1.1
This is a tutorial to work with radioButtonList which will handle enum datatype. Form design and validation both are detailed here.

Publish yii webapp using Git push

Created 2 years ago by rootbearHow-tos6 comments – viewed 8,450 times – ( +2 ) – version 1.1
I did not invent this instructions, I read it somewhere and re-organized in my way as I was trying and it works for me;
tags: git