Wiki

Articles tagged with "widgets", sorted by date (updated)X
Displaying 1-10 of 11 result(s).

YiiBooster: How to implement files and images upload on TbRedactor Widget

Updated 2 months ago by Antonio RamirezHow-tos2 comments – viewed 4,715 times – ( +10 )
I have been requested to provide a tutorial on how to use the file upload feature of the TbRedactor widget, and even though I am no longer supporting the library due that the work belongs to Clevertech, I feel that I owe that to the Yii developers. So, here is the  tutorial.

XUpload Workflow

Updated 6 months ago by AsgarothTutorials18 comments – viewed 20,418 times – ( +27 )
This wiki describes a more complex workflow using the XUpload widget

A simple go back button widget

Updated 7 months ago by bennounaHow-tos5 comments – viewed 6,950 times – ( +3 / -2 )
We all know that widgets are really useful. We can use the almost everywhere we want, and we can use the same code a lot of times ( Almost OOP ).

How to hide index.php on Microsoft Windows Server with IIS7

Updated 8 months ago by GiulianoHow-tos1 comment – viewed 4,041 times – ( +7 )
I've seen lot of people struggling in finding a way to hide the script name when installing their Yii Application. In an Apache environment everything is well documented in this wiki article, but for those who are running their app on a Windows Server machine there are no hints.

How to use a Widget as an Action Provider

Updated about a year ago by Antonio RamirezHow-tos8 comments – viewed 18,360 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

Manage (Target) Language in Multilingual Applications + A Language Selector Widget (i18n)

Updated about a year ago by c@cbaTutorials9 comments – viewed 14,693 times – ( +9 )
In case of a multilingual application, one might consider it a reasonable approach to store the preferred language of the user in a session variable, and after that, every time a page is requested, to check this session variable and render the page in the indicated language. This tutorial shows a Yii-way of doing this. We implement an event handler for the onBeginRequest event; as the name of the event suggests, this event handler will be called at the beginning of each request, so its a good place to check whether a language is provided (via post, session or cookie) and set the application language accordingly. We also implement a simple Language-Selector Widget, which can render the language options as ajax-links or as a drop-down list.

Send asset folder path to a javascript of a widget

Updated about a year ago by sensorarioTips4 comments – viewed 10,096 times – ( +4 )
When you develop a widget, you could need one image that is in the assets folder, you can use it simply within a css. You can load a css or javascript script doing this:

Customizing Yii's formatting rules (extending CFormatter)

Updated about a year ago by HaenselTips0 comments – viewed 8,427 times – ( +14 )
CFormatter is one of Yii's core components and used to format values displayed in widgets like CGridView or CDetailView. All classic formats like numbers, text, urls or datetime are supported but you may have to use a formatting rule that isn't built in. Let's say we want to display arrays of strings (like tags associated with a product model). When using CDetailView we would usually make use of PHPs implode function to create a simple string value of all values in the $product->tags array.

Yii实战中8个必备常用的扩展,模块和

Updated 2 years ago by Darwin WenTips2 comments – viewed 11,568 times – ( +2 / -3 )
在经过畅K网的实战后,总结一下在Yii的项目中会经常用到的组件和一些基本的使用方法,分享给大家,同时也给自己留个备忘录,下面我以代码加图片说明.
tags: module, Widgets

Using the jqueryslidemenu plugin with CMenu

Updated 2 years ago by pc131How-tos0 comments – viewed 20,728 times – ( +18 / -1 )
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.