Wiki

Sorted by commentsX
Displaying 571-580 of 683 result(s).

Extending CActiveForm for some form display fixes and language tweaks

Created 3 years ago by TrejderTips0 comments – viewed 12,459 times – ( +5 ) – version 1.1
In this simple example I'll demonstrate how to extend CActiveForm class to overload some drawing functions to achieve some commonly used fixes in forms.

Alternative wildcard characters CDbCriteria

Created 2 years ago by maigretHow-tos0 comments – viewed 4,858 times – ( +2 ) – 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:

Yii and XAMPP server on Windows

Created 3 years ago by TrejderTutorials0 comments – viewed 44,681 times – ( +3 ) – version 1.1
This article explains issues about installing XAMPP server package (Lite version) on Windows OS and configuring it for serving webapps written in Yii. Please note, that XAMPP is available for many more platforms and systems. I write about Windows edition as it was the only one tested by me.
tags: windows, xampp, server

Database Driven CMenu

Created 6 months ago by PreacherTutorials0 comments – viewed 2,336 times – version 1.1
Purpose

Extending CJuiDialog

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

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

Created about a year ago by mrkmgTips0 comments – viewed 4,009 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

Tags manipulation using Select2 in single field

Created 6 months ago by sefburhanTutorials0 comments – viewed 2,547 times – ( +33 ) – version 1.1
Sometime its very important to perform many actions/operation with limited time frame for friendly use, select2 provides a lot of such functionality , I just extend it tags functionality to provide a quick use for developer to save time, as I spent much time on it.

Integrate Zend 2 XML writer into Yii

Created 5 months ago by JonnyTutorials0 comments – viewed 2,061 times – ( +2 ) – version 1.1
By Integrating the Zend 2.* framework into Yii you can quickly and painlessly generate XML outputs from your controllers. This will be helpful to anyone who has never done this before or only done it with Zend 1 as the introduction of namespaces can be strange when you first view them.
tags: zend, XML

How to implement magento cron on yii

Created 5 months ago by Ankit ModiHow-tos0 comments – viewed 2,265 times – version 1.1
Hi Friends, First I would to say sorry but I am not very familiar to magento so after a 1 week spend I will implement the magneto cron functionality on yii I hope it's may be some helpful.

Upload files in Yii2 with MongoDb and GridFs

Created 5 months ago by edoardo849How-tos0 comments – viewed 5,532 times – ( +6 ) – 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).