Wiki articles

Showing 81-100 of 822 items.

Using the jqueryslidemenu plugin with CMenu

Created 13 years ago by Antonio Ramirez, updated 13 years ago by pc131.

Yii makes it really easy for all to use their already made objects that automate everything we do. It provides also great power of flexibility and styling but hey, we programmers tend to complicate our lives and push a little more the power of our tools.

18 1
8 followers
Viewed: 41 818 times
Version: 1.1
Category: How-tos

Yii2 RESTful API with OAuth 2.0

Created 6 years ago by sirin k, updated 5 years ago by sirin k.

https://cdn.pbrd.co/images/GMN5ROs.jpg

3 0
3 followers
Viewed: 67 585 times
Version: 2.0
Category: Tutorials

Use non Gmail/Gsuite on Gcloud projects

Created 6 years ago by Luis Armando, updated 5 years ago by Maurizio Domba Cerin.

Small companies and startups use cheap email services or even Cpanel's mail services which are less secure and compete directly with bigger email providers like Microsoft with Outlook and Google with Gmail. This creates a problem when you try to use their services to send/receive emails from this cheap services. <img width="750" src="https://static.techspot.com/fileshost/newspics3/2017/google-clo...

0 0
3 followers
Viewed: 15 697 times
Version: 2.0
Category: How-tos

Extending CActiveForm for some form display fixes and language tweaks

Created 13 years ago by Trejder, updated 13 years ago by Trejder.

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.

The colon

Here is overloaded version of CActiveForm.labelEx that adds colon (:) at the end of text of label with respecting CHtml::$afterRequiredLabel and CHtml::$beforeRequiredLabel

5 0
6 followers
Viewed: 23 920 times
Version: 1.1
Category: Tips

Alternative wildcard characters CDbCriteria

Created 11 years ago by maigret, updated 11 years ago by maigret.

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 $...

1 0
2 followers
Viewed: 11 555 times
Version: 1.1
Category: How-tos

Yii and XAMPP server on Windows

Created 13 years ago by Trejder, updated 13 years ago by Trejder.

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.

3 0
0 follower
Viewed: 79 206 times
Version: 1.1
Category: Tutorials

Database Driven CMenu

Created 10 years ago by Preacher, updated 9 years ago by CeBe.

Purpose

0 0
4 followers
Viewed: 7 780 times
Version: 1.1
Category: Tutorials
Tags:

Extending CJuiDialog

Created 11 years ago by dstudio, updated 11 years ago by Maurizio Domba Cerin.

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:

1 2
2 followers
Viewed: 18 302 times
Version: 1.1
Category: How-tos

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

Created 11 years ago by mrkmg, updated 11 years ago by mrkmg.

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

0 0
2 followers
Viewed: 17 840 times
Version: 1.1
Category: Tips

Tags manipulation using Select2 in single field

Created 10 years ago by sefburhan, updated 9 years ago by CeBe.

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.

2 0
35 followers
Viewed: 49 197 times
Version: 1.1
Category: Tutorials

Integrate Zend 2 XML writer into Yii

Created 10 years ago by Jonny, updated 9 years ago by CeBe.

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.

2 0
4 followers
Viewed: 48 617 times
Version: 1.1
Category: Tutorials
Tags: XML, zend

How to implement magento cron on yii

Created 10 years ago by Ankit Modi, updated 9 years ago by CeBe.

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.

0 0
3 followers
Viewed: 20 661 times
Version: 1.1
Category: How-tos

Changing Controllers Name

Created 13 years ago by Trejder, updated 10 years ago by Trejder.

This very short how-to presents steps required to change controller name. It is oriented for less experienced users, which are starting their journey with Yii, to avoid common newbie pitfalls.

4 0
2 followers
Viewed: 26 550 times
Version: 1.1
Category: How-tos

The MrFisk IRC Bot

Created 11 years ago by rAWTAZ, updated 10 years ago by rAWTAZ.

MrFisk is a sleek little bot hanging out in the official #yii IRC channel on freenode, meant to serve Yii users with documentation lookups and other things. This document intends to provide a summary of what MrFisk can do for you and how to use his fin^H^Heatures.

6 0
7 followers
Viewed: 36 319 times
Version: 1.1
Category: Others
Tags: bot, IRC, MrFisk, YiiBot

Custom Archive in Blog system

Created 11 years ago by nirmalroka, updated 11 years ago by nirmalroka.

Hi I had made simple archive system for blog system that can handle tbl_post. I had used simple CDbCriteria not more than that. I know there is more and many better way to this but I think this will give some idea to users to generate new idea or customized or modified this version of code.

1 0
2 followers
Viewed: 10 232 times
Version: 1.1
Category: Tips

Entire Messages into javascript object

Created 11 years ago by markux, updated 11 years ago by markux.

I needed all messages with their translation into javascript. This is my solution:

1 0
3 followers
Viewed: 10 512 times
Version: 1.1
Category: How-tos

Email by YiiMailer, Call Outlook, IMAP

Created 10 years ago by Scott_Huang, updated 9 years ago by CeBe.

In Yii community we have lots of extention can send emails, such as YiiMailer and Swift and so on, or even IMAPI, thanks for team contribution. However, sometimes, in the intranet enviroment, the program cannot run successfully since SMTP /IMAP port been banded. So you need to seek other ways. The most simple way is call outlook as COM.

0 0
6 followers
Viewed: 19 350 times
Version: 1.1
Category: How-tos

ChromePHP for Yii

Created 13 years ago by imehesz, updated 13 years ago by imehesz.

ChromePHP is a console logging extension for Google Chrome.

3 1
4 followers
Viewed: 18 264 times
Version: 1.1
Category: Tips

Get notified about the status of a Facebook user in your web app using periodic Ajax calls.

Created 11 years ago by sirin k, updated 6 years ago by Maurizio Domba Cerin.

hello,

 This article is helpful only if you have the following situation:
 A web app which uses facebook login to login its users and if a user is logged out from his/her facebook account through another browser tab, then your app dont know that he is logged out  out or not from his facebook account and he/she will remain as logged in your web application.Its ok if you have no problem wi...
4 0
6 followers
Viewed: 15 461 times
Version: 1.1
Category: Tips
Tags: facebook, user

Extending common classes to allow better customization

Created 13 years ago by Steve Friedl, updated 12 years ago by Steve Friedl.

The two most commonly-used base classes in most Yii applications are CController and CActiveRecord, each extended to your own particular models and controllers.

36 0
19 followers
Viewed: 41 301 times
Version: 1.1
Category: Tips
Tags: