How to not cache RBAC checkAccess() results?
So I have the following setup (which doesn't really make any sense, I was just doing this to get used to RBAC): $auth = Yii::app()->authManager; $auth->createOperation('create_entity', 'Create a...
View ArticleAction Into Widget
Hi I want some action in custom widget I found this wiki about that http://www.yiiframework.com/wiki/146/how-to-use-a-widget-as-an-action-provider/ But I want the actions function into widget not as an...
View ArticleDeb8.it
Built with Yii-bootstrap and Yii v1.1.13, just under 2 weeks of out-of-hours work Deb8.it - Online Debating Community Full Admin Back-end manages pages, topics, users, ranks, reports. Front end has...
View ArticlePermisos Cruge
Hola, Llevo unos días leyendo sobre este modulo, me parece genial como facilita la tarea de administrar usuarios y gestionar permisos pero tengo un problema: -Creo el rol Usuarios -Asigno a un usuario...
View ArticleCustom Validation
Hi All I am trying to do custom validation but the error is not getting displayed. steps i am following are 1. defining rule in model array 2. defining the function used in the model rule. 3....
View ArticleRealSelf.com - 1.5 million monthly visitors
I first heard about Yii on March 19th, and by the end of April we had migrated our website from Drupal to Yii. Yii was a big improvement in clarity and speed. These charts show that the Yii performance...
View Articlelearning by example
Would love to see something like an ajaxified section below method or prop details that would expand to show couples of practical examples in the class reference page, anyone else?
View ArticleMultilingual models
If you develop a multilingual website your most likely will have to translate your content as well (not just the interface with the normal I18N mechanisms). One way of doing that is to partition our...
View ArticleCustom Validator Rule For 2 Attributes
Hi, I have a Model Foo, with 2 attributes "bar" and "baz": Foo->bar, Foo->baz "bar" and "baz" are related (they depend on eachother) and need to be validated together When Foo is validated...
View ArticleOpen Two Dialog At Same Time
Hi everyone, I use Bootstrap Extension and I would like to open a Modal Window from another one! I has tested with zii.widgets.jui.CJuiDialog and the window opens but behind! Can you help please? Best...
View ArticleNamespaced Modles Problem
Hi, i have a little problem when using namespace in model class. The model has relation defined and when i want to access this relation data error is thrown: include(../foo/models/Iterator.php): failed...
View ArticleAccessing model validators and attributes via it's behavior
I'd like to implement some SluggableBehavior functionality, so I've decided to use behaviors as many times before, but I've got some troubles. When massively assigning attributes in controller, model...
View ArticleZurmo - Open Source CRM
Hello, We have been working on an Open Source CRM application that is written in PHP utilizing Yii, JQuery, and RedBeanPHP and relies heavily on test driven development. It might be one of the most...
View ArticleInserción Duplicada
Muy buenos días para todos, actualmente estoy realizando un módulo de pedidos, resulta y acontese que cuando registro la cabeza del pedido, se está registrando variablemente entre 1 y 6 inserciones, lo...
View ArticleAdding A Class To Cgridview Buttons Causes Multiple Submissions
Hi I have these two CGridView buttons: 'button1' => array( 'label'=> $parent_model->myModelDescSingular . "'s " . $child_model->myModelDescPlural, 'icon' => false,...
View ArticleКак Правильно Отделить Админку От Фронтенда?
Помогите пожалуйста! Создал админку своей будущей CMSки на основе Yii-каркаса. Присутствуют 3 модели (и соотв. таблицы): Menu (менюшка сайта), Post, Lookup (в ней также хранятся категории материалов и...
View ArticleWhat Is Best Approach To Combine 2 Applications
I would like to hear your experiences/ expert opinion on the best approaches to look at to combine 2 apps. I have an existing large application to which I have been asked to add many CRM features....
View ArticleDatabase Schemas Don't Map Date Column Types By Default?
I have a class based on CActiveRecord that processes columns in the model and needs to do slightly different things depending on the datatype of the column, specifically for date / datetime columns. It...
View ArticleUrlmanager To Point Mydomain.com/1 To Mydomain.com/model/view/1?
Is there a rule for pointing any integer after the root domain to a model/page/[integer]? Something to set in the urlManager like mydomain.com/1 => mydomain.com/myModel/view/1
View ArticleMultiselect Values How To Save In Database In Controller
i have using dropdown multiselect values save in db how to save ,i tryed in my controller side but its show error is "Array to string conversion" how to solve and my code for controller and view part...
View Article