Member Avatar

I'm building an API and on the aspect of sending a mail. I'm getting mail not sent error. In my API, the front-end sends a JSON request consisting of the mail parameters. { "to":"gideonappoh@gmail.com", "subject":"Testing Reviewer's Page", "body": "Hello Gideon", "headers":"oksana.v@scopicsoftware.com" } I then decode them and pass them through a PHPMail method in my controller. But its not working, and I can't find whats wrong. Can someone help me. These are my codes. public function actionSendMail() { //Getting request from frontend $request = file_get_contents('php://input'); //Decoding input into an array $input = json_decode($request, true); //Validating request if (is_null($input)) { $response …

Member Avatar
+0 forum 11
Member Avatar

Hi, I am new to yii and php and i want to deleveop a database design for school exam time table and maintain the time table for school management. How can I procced the same? Please help me? :(

Member Avatar
+0 forum 8
Member Avatar

**Problem** I need an jax pagination in YII, The problems are * its not showing the required results for the first time. ie. it is showing the complete result * When clicked on more, it again shows the complete result below that section as it is **What Needed** * i need to show, say 5 records for the first time * load the remaining results (5 rows) once clicked on more and so on **My Wordkout** **ControllerAction** public function actionShopStoresByCategory($storecategory, $affusername = NULL) { $this->ticker_news = NewsTicker::model()->getTickerNews(); if (!empty($affusername)) $this->VarifyUser($affusername); $this->layout = "layout_home"; $model = new Stores(); $criteria = new …

+0 forum 0
Member Avatar

I have a form for editing a user record. Its updates the record for the first time but when i press the update button again, it shows me an empty screen and it unsets the picture as well. I cannot figure out what I am doign wrong Below is my code public function actionEditProfile($affusername = NULL) { $this->layout = 'layout_home'; if ($this->VarifyUser($affusername) && Yii::app()->user->id) { $model = new Users('edit'); //apply rules if user comes directly to signup page // uncomment the following code to enable ajax-based validation if (isset($_POST['ajax']) && $_POST['ajax'] === 'editprofile-form') { CActiveForm::validate($model); Yii::app()->end(); } if (isset($_POST['Users'])) { …

+0 forum 0
Member Avatar

I have a new button in the view. I want to make it look in similar style like view/delete button. please help me. <!--Content--> <?php $details=$details; ?> <h3><?php echo $name; ?></h3> <div id="content"> <?php $form=$this->beginWidget('CActiveForm', array( 'id'=>'nimsoft-host-form', //'enableAjaxValidation'=>true, 'enableClientValidation' => true, 'clientOptions' => array( 'validateOnSubmit' => true, 'validateOnChange' => true, // allow client validation for every field ), 'htmlOptions' => array('enctype' => 'multipart/form-data'), )); ?> <?php $this->endWidget();?> <h3><?php echo htmlspecialchars($title); ?></h3> <h3><?php echo $title; ?></h3> <div style="padding: 10px;"> <a href="<?php echo $this->createUrl('/Nimsoft/create?id='.$details->host_customer_id);?>" title="Create New Host" class="btn btn-primary circle_ok" style="text-decoration: none;" >Add New Host to Customer</a> <div style="float:right"> <?php echo CHtml::link('Upload …

+0 forum 0
Member Avatar

I need to store stock market data and stock graph datas for my site . so i am selecting two db's mongo and cassandra and i finalize cassandra db, i am using windows 7 , Xampp and i need to use this in yii. i am installing data stack it is working in cli and its also working in (localhost:8888) . so now how can i connect it in yii site . Is this requirement solvable . i need the steps to connect. because diffrent site tells the different solution .

Member Avatar
+0 forum 9

The End.