Using Two Model Fields In One Form
In my application have two models user and address. The data saved to two tables using one form. But for validation purpose, only one model form fields are validated if all fields are empty. Means if...
View Article[Risolto] Problema 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 ArticleI Am Digging Yii Demo -- Blog
Hi All. I am digging demo-project blog I don't understand this piece of code $data->url in file blog/protected/views/post/_view.php <?php echo CHtml::link(CHtml::encode($data->title),...
View ArticleZii.widgets.grid.cgridview Nimmt Filter Nicht An
Hi, der Filter in meinem CGridview filtert einfach die Werte nicht. Ich habe den Filter so wie im Tutorial beschrieben eingebaut jedoch ohne Erfolg. Der Request wird laut firebug abgeschickt. Hier...
View ArticlePrivate Message Between Users
Hi there, I ask you all maby some one have messaging system between users. (with jQuery and mysql) The private messaging should include following functions: 1) inbox, 2) sent box, 3) Draft, 4) Trash,...
View ArticleNota Fiscal
Estou pensando em fazer um módulo ou extensão para emitir variados tipos de notas fiscais, mas não tenho nenhuma base de como funciona o "caminho" para assinar, validar, obter o campo "RESERVADO AO...
View ArticleYii Booster Modal Or Jui Dialogs
I'm trying to render diferents forms or views in a Jquery dialog or a Modal dialog, but the renderPartial does something anoying. First I tried to update the content of a div or the dialog itself like...
View ArticleHow To Get Relational Query Results Together
Hi all, While using relational query we get separate results for the model and for the relation. As the documentation says // retrieve the post whose ID is 10...
View ArticleModule Multiple Instances
Hello, I need to intantiate several times a module. After researching, I figured out that itcould be done in this way: 'modules' => array( 'instance_1' => array( 'class' =>...
View ArticleConsole Command For Rbac
I am trying to create a new command for yiic shell. I have create a new class named "RbacCommand". It extends CConsoleCommand. It overrides the run() function. When i run the help of yiic shell, it...
View ArticleYii Charset - Utf8
Hi , i have a issue with charsets in yii.Please help me I have a function to send sms via sms-gateway - send_sms($sms_number,$sms_content) if i use chirillic chars like "Автозавод" , i receive sms like...
View ArticleВерстка Yii
Начал верстать страницы и возникли вопросы... Подключил bootstrap к yii как расширение. По документации кажется что в расширении очень много изъято из оригинального bootstrap'а. Отсюда возник интерес к...
View ArticlePraise Or Bash
We created the Praise Or Bash platform to allow people to quickly express how they feel about a high profile person, place, or thing. We hope to capture people’s emotions in real time in order to...
View ArticleHAS_MANY relation and delete
Here is a relation in my Enquiry model: 'quotes'=>array(self::HAS_MANY, 'Quote', 'enquiry_id'), In my EnquiryController if I have the following:...
View ArticleHelp With Formmodel Payment Flow
Hello, I need to collect Shipping and Billing address, Credit Card Info and then allow user to confirm order. The shipping and billing info is stored in the database. The Credit Card info is not...
View ArticleClistview Pagination Only Shows First Page
I have a CListview widget with a dataProvider object assigned to it that uses pagination but only the first page shows up. I have buttons that link to all the other pages, but when I click on "Next...
View ArticleCode Review
This is my first Yii project and so wanted someone to do a code review. Any suggestion welcome Controller <?php class VerifyUsersController extends Controller { /** * @param string $param key to be...
View ArticleGuardar Datos Multiples
bnas todos, tengo el siguiente problema que no he entendido como resolverlo. tngo en mi accion create un guardado a diferentes modelos. public function actionCreate() { $model=new Buzon(); $model2=new...
View ArticleIn Cactiveform Can I Make The Enter Key Behave Like A Tab Key?
I'm using CActiveForm and was wondering if it is possible to use the enter key (return key) to tab (move to next field) instead of submitting the form.. I have already changed the SubmitButton to...
View ArticleEGMap and renderPartial
Hello! I'm triying to load an EGMap on a partial view. This is my code: This is the ajax button which calls the action loadmap: <?php echo CHtml::ajaxsubmitButton ("Press for geolocation",...
View Article