Confusing Problem With Saving A Model - Help Please?
Hi all, I am having some trouble with the following method in one of my Models public function assignUserRole($user, $project, $role){ Yii::log('into assignUserRole','info',...
View ArticleRegisterscript For Two Different Scripts For A Grid Editable
I'm trying to implement a grid editable. I'm using this code that is working for one column but not with two columns. For the event, I use this script with the function registerscript:...
View ArticleNeed Advice On Update Of Cgridview In Ajax Call
Setup is as follows: I render ajaxbased tabs (one for each day of the week). Each tab contains 1 gridview and multiple cjuisortable objects. The gridview contains entries that can be put into one of...
View ArticleCaptcha In Yii Framework Don't Appear (Show)
what's wrong? Please help.. ------Model-------- public $verifyCode; public function rules() { return array(array('verifyCode', 'captcha', 'allowEmpty'=>!CCaptcha::checkRequirements()), ); } public...
View ArticleYiibooster
Recently launched YiiBooster, YiiBooster is a collection of widgets that will ease the task of developing Yii applications, as well as, giving your application a little boost. Basically, YiiBooster...
View ArticleValidation Every Step On Sformwizard
Hello, I am on trouble using SFormWizard.. I wanna make user can not go to next step if the required fields on current step are not filled.. What should I do? Here is my code <?php...
View ArticleTeam Needed (Long Term) Expanding An Existing Project
My company has developed and placed into production a 100% YII/Jquery/Mysql project and i need more developers to speed up the the release schedule. Depending on the quality of the work this could...
View ArticleModel Relation with composite key
Hi All, I need help in creating a model relation to a table with composite key. Scenario:- Table 1. id (primary) level Table 2. id (primary) program Table 3. id (primary) section table 4. id (primary)...
View Articlelinks inside ajax generated list not working
Hello guys, I am using fancybox extension in yii. There is a div containing links to open fancybox. At this point fancybox is working perfectly. In my code ajax is updating this div's content and...
View ArticleLoad View With Fancybox
Hi I created app with yii and i needed to load view form in Fancy-box so i did that but my problem when i clicked on submit button , from redirected me to controller action without validated form . How...
View Article[EXTENSION] Gcalendar
Welcome any comment, suggestion or feedback to my very first Gcalendar extension !
View ArticleNested View Folders
I am trying to render the nested view folders but it does not work. I must have missed something. I also attach the screenshot of my file structure below. ---UI --MenuTypes --create.php --update.php In...
View ArticleError Line 13 Gii
Hi, Im really excited about using yii but I cant even get gii working Sorry im not getting an error RATHER I put in the password and NOTHING happens? Just stays at password prompt, If i try the wrong...
View ArticleFiltering In Create Form
I have this in my Create or in my _form upon creating a core session through a modal form the data is saved in that gridview. in filling up the modal for adding coresession there is a foreign key named...
View ArticleFipvalidator
Download From yii website. Extract in Extension Folder. Example: array(‘Attribute Name’,'ext.FIpValidator’,'enableClientValidation’=>true), //allow ipv4 and ipv6 //array(”, ‘extFIpValidator’),...
View ArticleEditablegridview
1. Download From Yii Website. 2. Extract In Extension Folder. 3. Put Below Code in Your Admin Page. $this->widget(‘ext.grid.CEditableGridView’, array( ‘dataProvider’=>$model->search(),...
View ArticleSolve Problem This Ruels Validator
this is my code what correct this code ? public function rules() { if(isset($_POST['ProfileViewModel']['username'])) { $rulesArray[] = array('username', 'length', 'min' => 3, 'max' => 20,...
View ArticleGetting rid of * for required labels
In CActiveForm, the $form->labelEx($model,'username'); produces a label. It also includes an asterix * if the field is required. Is there a way to prevent the asterix from being included? follow-up...
View ArticleCaching In An Activerecord Subclass
Hello all, I have recently inhereted a Yii 1.1.8 application (had no prior knowledge of Yii), and am tasked with improving the performance. Pageviewes commonly generate between a 100 and 200 database...
View ArticleProblems With Rbac Business Rules
Hi all, I am relatively new to Yii and am currently developing my first proper application using the framework. I have been using the Agile Yii book as a reference for part of my project - since the...
View Article