Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 131-140 of 189 result(s).

How to obtain a grammatically correct translation of the model name in giix-generated view files

Updated about a year ago by c@cbaHow-tos0 comments – viewed 5,189 times – ( +4 )
The giix code generator has out of the box i18n support for model names and attribute labels (besides other cool features > check it out!) . But I want to factor in not only the plural form, but also the grammatical cases (especially the accusative) while translating 'Manage Objects', 'Create Object', 'Edit Object' etc.

X-Sendfile - serve large static files efficiently from web applications

Updated about a year ago by Maurizio DombaHow-tos5 comments – viewed 24,142 times – ( +24 )
Normally when we want users to download a file, that file is put in a folder under the web application root and the web server does the rest.

How to handle decimal separators (e.g comma instead of dot) for l18n

Updated about a year ago by jpabloHow-tos2 comments – viewed 6,597 times – ( +1 )
Yii i18n does not cover decimal format. Some languages like Spanish (I live in Argentina) uses comma ',' instead of dot '.' as decimal separator.

How to use a Widget as an Action Provider

Updated about a year ago by Antonio RamirezHow-tos8 comments – viewed 18,962 times – ( +22 )
As written on the API docs: An Action Provider Widget is a widget that has declared several actions by using its 'public static function actions()'. After, a Controller can easily import all its declared actions on its 'public function actions()'.
tags: Widgets, CAction

Tarpit for bad bots

Updated about a year ago by mitherealHow-tos4 comments – viewed 3,915 times – ( +1 )
I recently built a tarpit for bad bots.
tags: tarpit, bots

Database driven Cmenu

Updated about a year ago by twisted1919How-tos1 comment – viewed 11,084 times – ( +12 )
This is a simple example that will give you a base for designing a database driven menu system that will use CMenu to be rendered.

Rendering a view file in a console application

Updated about a year ago by TompiHow-tos1 comment – viewed 4,574 times – ( +2 )
When someone want to send formatted HTML mails from a console application she/he will probably come across the problem of rendering view files.

CPhpAuthManager - how it works, and when to use it

Updated about a year ago by François GannazHow-tos5 comments – viewed 12,757 times – ( +1 / -3 )
Before reading this article, you should first learn this How to setup RBAC with a php file

How to validate CSRF token with session

Updated about a year ago by yangmlsHow-tos0 comments – viewed 18,688 times – ( +17 )
First of all, You must change component config to enable the default Yii CSRF validation.
tags: CSRF, session

Increasing AR performance in connections with Oracle

Updated about a year ago by Igoru-sanHow-tos6 comments – viewed 10,809 times
Please, note. This article is entirely based on a work done by me colleague developer, who hasn't got account on this webpage and also hasn't got time for writing this article. I'm writing it for him. I will try to forward him any comments that may appear, but can't assure if/when he'll be able to answer. I'm far, far less experienced in Oracle therefore I won't probably be able to help myself.