Wiki

Sorted by viewsX
Displaying 71-80 of 467 result(s).

Implementing cron jobs with Yii

Created 2 years ago by samdarkHow-tos4 comments – viewed 28,762 times – ( +26 / -1 )
There are two ways to run a cron job:
tags: cron, cli

How to log and debug variables using CWebLogRoute

Created 2 years ago by Antonio RamirezHow-tos4 comments – viewed 28,616 times – ( +13 )
I have seen a couple of articles about how to integrate external libraries to debug our PHP code (i.e. firePHP) but after you read this article you will realize that there is no need for such libraries when using Yii.
tags: Logging

Creating a database-driven hierarchical Structure combined with CMenu and superfish

Created 3 years ago by thyseusTutorials8 comments – viewed 28,564 times – ( +15 )
Note: Please also take a look at the newer EMenu extension. This works even better that the deprecated CDropDownMenu!
tags: menu

Yii and XAMPP server on Windows

Created 2 years ago by TrejderTutorials0 comments – viewed 28,365 times – ( +3 )
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

How to create nice modal login widget with a CJuiDialog

Created 2 years ago by Igor IvanovicTutorials2 comments – viewed 28,327 times – ( +8 )
...folder /protected/components/UserLoginWidget.php... ...extending the CWidget class...
tags: user, login, modal, widget

CListView AJAX filtering

Created 2 years ago by DragaTutorials14 comments – viewed 28,253 times – ( +14 )
This tutorial shows how to filter CListView items by AJAX, and it's compatible with disabled JavaScript users In my case this has been done to filter users list

Theming your Zii Widgets

Created 2 years ago by Luis Lobo BorobiaTutorials16 comments – viewed 28,226 times – ( +19 )
One aspect of User Interface Design has to do with the coherence of the design and the use of the colors between the different User Interface Components used.

How to customize Yii core messages?

Created 4 years ago by qiangTutorials6 comments – viewed 27,596 times – ( +14 )
Yii core messages refer to static text strings in the core Yii framework code which are meant to be displayed to end-users (e.g. core exception messages, default validation error messages). Customization of these core messages is needed in two circumstances:

Installing WAMP - Apache, MySQL, & PHP on Windows 7

Created 2 years ago by YetiTutorials1 comment – viewed 27,529 times – ( +2 )
Installing WAMP on XP was pretty easy; W7 is not so trivial. It's not difficult once you know, but it took me best part of a day to figure out and required gleaning various bits of information from around the web; this tutorial brings it all together in one place to (hopefully) make other peoples lives that bit easier. It does assume that you are reasonably happy configuring Apache, PHP, and MySQL and mainly deals with the W7 quirks.

Use shortcut functions to reduce typing

Created 4 years ago by qiangTutorials8 comments – viewed 27,182 times – ( +47 )
Because Yii intends to be integrated nicely with third-party libraries, it does not define any global functions. Everything in Yii needs to be addressed with full class name or object scopes. For example, to access the current user, we need to use Yii::app()->user; to access application parameters, we need Yii::app()->params['name']; and so on. While editors like textmate can help alleviate the problem of these lengthy typings, it is worthwhile to define global shortcut functions to some commonly used method calls. They will make the application code look cleaner.