Showing 241-260 of 652 items.

ACL and RBAC

Created 14 years ago by zeroByte zeroByte, updated 14 years ago by kevinkorb kevinkorb. 0 comments

This HowTo assumes that you have a smattering of ACL in general and of how the acl-extension works basically. It will introduce you into the abstract and give you a hint on how to use Business-Rules. If you have in-depth questions, please refer to the extension documentation. Using ACL in an RBAC-manner cannot and should never obs...

0 0
3
Viewed: 37 638 times
Version: 1.1
Category: How-tos

How to setup FCKeditor

Created 17 years ago by krillzip krillzip, updated 14 years ago by Dark-Sun Dark-Sun. 2 comments

Next to do is to download the Yii FCKeditor extension, created by Ascomae. Extract the downloaded file, and place the fckeditor/ widget folder in your web applications protected/extensions/ directory.

3 1
5
Viewed: 41 884 times
Version: 1.1
Category: Tutorials

    Alternative wildcard characters CDbCriteria

    Created 14 years ago by maigret maigret, updated 14 years ago by maigret maigret. 0 comments

    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
    Viewed: 14 287 times
    Version: 1.1
    Category: How-tos

    Using CAutoComplete to display one value and submit another

    Created 17 years ago by luoshiben luoshiben, updated 14 years ago by mohammad sharif ahrari mohammad sharif ahrari. 5 comments

    Have you ever wanted to use an auto-complete field to look up a user or some other data, but want the database ID of that user or data returned as well so that you can more easily perform some function when the form is submitted? Thanks to Yii's CAutoComplete widget and [jQuery's Autocomplete plugin](http://plugins.jquery.com/project/jq-autocomp...

    7 3
    11
    Viewed: 75 865 times
    Version: 1.1
    Category: Tutorials

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

    Created 14 years ago by mrkmg mrkmg, updated 14 years ago by mrkmg mrkmg. 0 comments

    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
    Viewed: 21 668 times
    Version: 1.1
    Category: Tips

    Simple way to use AutoComplete using different ID and Display Value

    Created 14 years ago by raheelk2k raheelk2k, updated 14 years ago by raheelk2k raheelk2k. 5 comments

    Usually when we use AutoComplete in a project, We need to show "title" or "name" in the list, while when the form is posted, we need some sort of integer ID referring to the selected value. Out of the Box, CJuiAutoComplete widget doesn't provides different display text and post values.

    6 0
    13
    Viewed: 68 354 times
    Version: 1.1
    Category: Tutorials

    Custom Number Formatting or Decimal Separators and i18n

    Created 14 years ago by c@cba c@cba, updated 14 years ago by c@cba c@cba. 8 comments

    By default, the decimal separator in php (also in mysql) is a dot (.). So when we work with floats in Yii (in calculations, validation, sql statements etc.), the decimal separator has to be a dot. If we want to use for example a comma (,) as the decimal separator, that is if we want to display numbers and enable users to enter numbers with a comma before the decimals, we have to...

    4 0
    16
    Viewed: 96 188 times
    Version: 1.1
    Category: Tutorials