Virtual Attributes In Model Won't Bind
Hi guys, Whenever I add a virtual attribute field to my model like so: class User extends CActiveRecord { public $title; I can't seem to bind the data in my update action in the controller: public...
View Article[extension] xflexslider
xflexslider v2.1 - support `Thumbnail ControlNav Pattern` - thanks to @got 2 doodle - support `Carousel Slider as Navigation` xflexslider v2.0
View ArticleForms in Bootstrap Modal with Ajax submit button
I copied the login form that comes with the Yii in a bootstrap Modal. Also used a 'ajaxSubmitButton' for the submit button. My goal is to log the user in using ajax. The problem I encountered is that...
View ArticleGet $_Post Value From View To Be Used In Model/search
Hi, I'm new in Yii, I have a question How can we get the value of _POST variable from view to be used in model->search? I want to make a dynamic page for report using CGridView. I have tried to set...
View ArticleUpload of too large files fail silently
I'm messing with the file upload capability, but am having problems with uploading large files whereby files that are too large (which I'll define below) are failing with no indication; Yii just...
View ArticleLogin Usuário E Administrador
Sou iniciante em Yii, tenho uma dúvida em relação ao login para um sistema básico de biblioteca. Eu deveria criar 2 módulos separados um para usuário outro para o administrador? Ou usuário e...
View ArticleCrud 为什么运行到一半不动了?
刚接触YII, 参照中文手册 crud user,运行到 …… generate index.php generate view.php _ 后面就不运行,光标一闪一闪,卡那了,什么原因呢?
View ArticleDifficulty Retrieving Encrypted Attributes From Db Into Model
Hi, I have a table where I am storing driver license details. In the database, the field is encrypted using MySQL AES_ENCRYPT. However, I am having a difficulty in getting the un-encrypted values using...
View ArticleDependent Bootstrap Dropdownlist Ajax Problem
my form <style type="text/css"> .alert{ width: 500px;} #hide{ visibility: hidden;} </style> <?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(...
View ArticleProblem With Sorting
Hi i have 2 models User and Calls with User has many Calls relationship.now i need to show data in cGridview,data is showing correctly but i need to apply sorting.in cGridview i had an attribute...
View ArticleHow To Displaying Relational Tables For Report
i've got some problem while displaying relational data from 2 table or more, what i expect for the result is something like the image that i attach here/below, i wonder what should i do to my app in...
View ArticleJui Tabs Disable
$this->widget('zii.widgets.jui.CJuiTabs', array( 'tabs'=>array( 'Static tab'=>'Static content', '[b]Render tab[/b]'=>$this->renderPartial('one',null,true), 'Ajax...
View ArticleGallery Manager extension
Often we have images gallery in our application. So I have written extension to manage images gallery. Features: * Optional image name/description * Multiple image upload in modern browsers(single...
View ArticleModel->Save() Duplication Issue
Hi I've created an import function in my module which is triggered by an action. The database is SQLite The flow are as follows Action: InitializeModule This action has no form and will redirect to...
View ArticleСвязанные Таблицы
Доброе утро всем. Есть две таблицы: table1(основная) и table2, а также связывающая таблица table1_table2(мнгогие ко многим). Есть еще одна таблица - table3. Хочу вывести в представлении table3 данные...
View ArticleHelp Me Understand Rbac Accessrules
Hi guys, I'm trying to understand the usage of accessRules in RBAC especially the actions, users and roles part. 1. What is the difference between actions in accessRules and RBAC operations? Assuming I...
View ArticleI18N Bug
Hi, I want to use i18n in my web application, and it doesn't work as it should (I guess), here is the code i'm using: Yii::t('types', 'FUN') And the result is that it displays 'FUN' instead of 'cool'....
View Article