Showing 21-40 of 652 items.

CSS Naming Conventions

Created 16 years ago by qiang qiang, updated 7 years ago by samdark samdark. 4 comments

In this article, we introduce a set of CSS naming conventions that we have applied in several big projects and achieved success. The goal of these naming conventions is to eliminate the possibility of naming conflicts, facilitate debugging and maintenance, and to simplify the naming process.

35 0
24
Viewed: 59 757 times
Version: 1.1
Category: Tutorials

What SQL-Statement creates yii?

Created 8 years ago by Necip Necip, updated 8 years ago by Necip Necip. 0 comments

The usual way to find out what Yii has created for an SQL query is to mutilate the SQL in the sourcecode and call the program again so that the SQL statement with errors is displayed. Or you can use the SQL logger, which must be switched on and off each time and logs all SQL statements, which leads to an enormous slowdown in program execution and decelerates your workflow.

0 0
1
Viewed: 17 988 times
Version: 1.1
Category: Tips

Organize directories for applications with front-end and back-end

Created 17 years ago by qiang qiang, updated 8 years ago by CeBe CeBe. 10 comments

Large applications are often divided into front-end and back-end (or even more ends) depending on the target user groups. The front-end should be used by common users, while the back-end mainly the administrators or staff members. The two ends usually have dramatically different appearance, even though they may share a lot of code underneath. In this tutorial, we describe a way of organizing direc...

25 0
34
Viewed: 108 236 times
Version: 1.1
Category: Tutorials

    Adding Yii Search to Your Browser Search Box

    Created 15 years ago by qiang qiang, updated 8 years ago by CeBe CeBe. 1 comment

    The official Yii project site now supports OpenSearch. This means you can customize your browser's search box to enable direct search of the content in yiiframework.com. For example, by entering a Yii class name in the browser's search box, the corresponding class API page will be shown in the browser.

    25 0
    6
    Viewed: 72 747 times
    Version: all
    Category: Tips

    An important tip when you are using CArrayDataProvider.

    Created 14 years ago by sirin k sirin k, updated 9 years ago by Maurizio Domba Cerin Maurizio Domba Cerin. 0 comments

    Yii's CArrayDataProvider is very helpful to display model relation data's directly on it.But it is truely a confusing one because by default it will assume a table field named “id” as primary key for its pagination purpose and what if you dont have field named “id” as primary key on your table? so its truely confusing and if you tried to display without an “id” field on ur table you will get an...

    5 1
    5
    Viewed: 23 602 times
    Version: 1.1
    Category: Tips

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

    Created 14 years ago by sirin k sirin k, updated 9 years ago by Maurizio Domba Cerin Maurizio Domba Cerin. 0 comments

    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
    Viewed: 20 266 times
    Version: 1.1
    Category: Tips

    Solution for session lose of Facebook iframe application in Internet Explorer .

    Created 14 years ago by sirin k sirin k, updated 9 years ago by Maurizio Domba Cerin Maurizio Domba Cerin. 0 comments

    Facebook iframe app’s session is losing in Internet Explorer when doing a second redirection inside the facebook iframe app.The main reason is ,by default IE wont allow cookies in its priavacy settings If cookies not available means session is also not available for our Facebook iframe app in IE.

    2 0
    4
    Viewed: 18 400 times
    Version: 1.1
    Category: Tips

    Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

    Created 13 years ago by Luis Lobo Borobia Luis Lobo Borobia, updated 9 years ago by Luis Lobo Borobia Luis Lobo Borobia. 0 comments

    We are running one frontend running NGINX and several app servers running Apache2. There are several issues we have come across but right now I'll be documenting one of them. I'll be completing this article when I get more time.

    2 0
    2
    Viewed: 19 444 times
    Version: all
    Category: Tips

    i18n All-in-one format and timezone conversions for date, time, timestamp and datetime.

    Created 13 years ago by Gerhard Liebenberg Gerhard Liebenberg, updated 9 years ago by Gerhard Liebenberg Gerhard Liebenberg. 3 comments

    Countries sometimes change their laws pertaining to time zones and daylight saving times. This means that GMT+2 can be a different local time this August compared to last August! It could even be a different date!

    6 0
    13
    Viewed: 41 524 times
    Version: 1.1
    Category: How-tos