Wiki

Sorted by ratingX
Displaying 571-580 of 777 result(s).

Instanciar clase hija basada en campo de modelo padre (CActiveRecord)

Created 3 years ago by robregonmHow-tos0 comments – viewed 8,392 times – ( +2 ) – version 1.1
[EN] [ES]

Syncing sessions between Yii and KCFinder

Created 3 years ago by Thanasis FotisHow-tos8 comments – viewed 8,265 times – ( +2 ) – version 1.1
Info: As KCFinder's documentation mentions, if your application (Yii in our case) session handling is using the PHP environment configuration - meaning no change in session handling at all, then no change is needed also on KCFinder side to be able to use this session and thus have this simple interface between your Yii webapp and KCFinder. If that's your case then you probably need not read the rest of this article but rather just make sure that before a user attempts to upload or browse your server a session variable is already set for him (or her) with his specific configuration already waiting for KCFinder there. What can this session interface be useful for? For example, for having per-user upload directory. You could have uploadURL variable established in the session variable to contain the user's id. When an upload or browse use case will occur, the client side will trigger the KCFinder completely decoupled from the Yii application. Yet, since you've already synced your user-specific-configuration with KCFinder via the session, KCFinder will pick it up and use it.
tags: File upload

caching controllers with filters()

Created 5 years ago by RusAlexHow-tos1 comment – viewed 12,368 times – ( +2 ) – version 1.1
Hello, this article will describe some aspects about caching controllers with filters() method in your controller. And I will describe some problems I meet when using this approach for caching, the main problem was

Update related models of a model using listBox and checkBoxList in the form

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 12,368 times – ( +2 ) – version 1.1
Suppose you want to have a list in Category with its related products and you want to updates the list (removing or insert product items) This wiki show us how to do that

Multilanguage Lorem Ipsum Text Generator

Created 3 years ago by yasenHow-tos2 comments – viewed 6,688 times – ( +2 ) – version 1.1
Taking futher the idea from Piotr MaseĊ‚kowski - http://www.yiiframework.com/extension/elipsum/ here's how to generate multilanguage Lorem Ipsum text. This example uses English and Bulgarian sample paragraphs. Create a class in /protected/components/LoremIpsum.php. Wall of text incoming wohoo...

Insert a model record using CGridview

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 8,384 times – ( +2 ) – version 1.1
CGridview displays existent rows of the table (using DataProvider)

Update specific cgridview html row after AJAX request

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 11,107 times – ( +2 ) – version 1.1
After of model update (successfull or not) throught CGridView (check the below link) you probably need to updates the specific row html in cgridview (not entire cgridview)

Prevent asset publishing for CListView

Created 5 years ago by MikeHow-tos2 comments – viewed 9,017 times – ( +2 ) – version 1.1
If you don't want to use any of the AJAX features of CListView and thus want to prevent that it publishes any of its asset files, you can extend it and create a sub class like this:
tags: CListView, Assets

Upload Files to Rackspace Cloud Files CDN

Created 3 years ago by StephenMiracleTutorials0 comments – viewed 10,996 times – ( +2 ) – version 1.1
** I actually made this into an extension for easier use. You can view the extension: http://www.yiiframework.com/extension/rackspaceconnect/

Sort and save order of model-elements drag & drop

Created 2 years ago by Kostas Apazidis (KonApaz)Tutorials2 comments – viewed 6,479 times – ( +2 ) – version 1.1
Suppose you have Products,Categories and each product belongs in many categories