Catching Database Connection Error And Showing An Alternate Error Page
When Yii isn't able to connect to DB i get an error like: CDbException CDbConnection failed to open the DB connection I find it ugly and it could scare away a noob user, regardless it also displays a...
View ArticleProblema Con Ereditarietà Dei Controller Dentro Ad Un Model
ho un modulo whmcs che contiene, a parte il DefaultController, altri due controller. Ora ho pensato di creare un WhmcsController, dove inserire alcuni filtri e la index di default. Ho modificato gli...
View ArticleAlternative To .htaccess When
hi all thanks to this great community ! I am trying to build mu first web application with yii From what I understood a .htaccess file must be in the project folder in the localhost every things work...
View ArticleSelect Dropdownlist (Value Of A Column Cgridview) Without Triggering The...
Hi all, The value of my column in the CGridView is a dropdownlist. In the property "selectionChanged" I put a redirect to another page, the problem is that when the dropdownlist is selected, the page...
View ArticleAwecrud
I've uploaded a new extension called AweCrud, the tries to simplify and enhance the code generation using Gii and Bootstrap look-and-feel. For more information:...
View ArticleCactiveform - Can You Disallow Edits Of Certain Ar Fields?
Hi folks, I have had a thorough dig about and I can't seem to find a way to do this... It's pretty simple - I have a system where an XML parser create AR classes based on parsed attributes and saves...
View ArticleJson Data Cgridview
Is it possible to provide json object instead of a model class object to cgridview ??? i am getting all the data through an API returning json. Thanks
View ArticleYiibooster Highchart Widget, How To Use With Date Field
I am using yiibooster extension. This extension have Grid/Chart component and tbhighchart widget. Both of them is wrapper of highchart as I understand. I have three columns in my db query....
View ArticleDatabase Fail Over
Hello all! I am currently working on a project for which we have chosen Yii as our new Framework of choice. I am currently trying to figure out the best way to implement some sort of automatic database...
View ArticleFlush Certian Query Cache (Using Memcache)
Hi All I have small question I'm using memcache to cache queries but i want to ask if there is away to flush one query caching not flush_all? or any simple way to use set&get with caching
View ArticleComo Hacer Un Administrador Para Mi Aplicacion Yii
Como hacer lo siguiente: Que cuando se entra con admin/admin este usuario (que es el administrador) pueda gestionar algunas tablas de la base de datos, me refiero al CRUD, insertar proveedores,...
View ArticleA Couple Questions About Dynamic Content And Ajax
I want to show some dynamic content to the user, so use a dropdown like so: <?php $form->dropdownListRow($model, 'type', array_merge(array(''=>'---'),ProfileFieldRule::itemAlias('type')) ,...
View ArticleInsert A New Record Via Model Instead Of Controller
Hi, does anyone have any guide on how to insert a new record via model instead of controller? Thanks.
View ArticleНе Могу Настроить Виджет Yii Bootstrap
Скачал виджет, сделал все по инструкции http://www.cniska.net/yii-bootstrap/setup.html Но в инструкции, так и не нашел, как подключать css и js в шаблон из папки \protected\extensions\bootstrap\assets\...
View ArticleFull Database Backup
Hey Y!! For my current project I needed to perform a full database backup. I took the following code from David Walsh and adapted into usage in Yii. I wanted to use the existing Yii::app()->db...
View ArticleCome Eseguire Una Action Di Un Controller Da Un'altro Controller?
Avrei la strana necessità che un controller chiami una action di un'altro controller (che da in output una stinga frutto di un renderPartial). Come si fa? In qualsiasi modo lo faccio, ottengo una...
View ArticlephpUnit and getMock
I am using phpunit in my yii project. I'm new to phpUnit and have run into a tough problem. I am testing a function in a class whose constructor I absolutely have to disable because it news up an...
View Article[MODULE] HybridAuth
This is a forum page for the module Hybridauth (http://www.yiiframework.com/extension/hybridauth/) for social logins. I've just put up the first release. Comments/thoughts etc let me know! Thanks, Mark
View Article