Blog Archives

yii2 generate pdf and attach in mail using kartik-v


Hi friends While i was working with yii2 advanced project for my client,so i was intergrating the kartik-v mailer and pdf package.so while working on ecommerce for triggering mail on order place for customer and support,i came up with solution

Tagged with: , , , , , , , , , ,
Posted in yii2

How to split full name from model into firstname and lastname in yii2 view and concat to save in yii2 model


First create a model of the table using GII tool in yii2,then by using CRUD option in GII create MVC file ,which has create,update function in controller and add rules in model like [[‘first_name’,’last_name’], ‘trim’], [[‘first_name’,’last_name’], ‘required’], [[‘first_name’,’last_name’], ‘string’, ‘max’

Tagged with: , , , , , , , , , ,
Posted in yii2

My new experience with jquery


Disable the all  input fields with unique (ID) like numbers  in table : $(“#table_id  input[type=’text’][id=” + id + “]”).prop({ disabled: true }); Disable the all  Select fields with unique (ID)  like numbers in table : $(“select[id=” + id + “]”).prop({

Tagged with: , , , , , , , ,
Posted in javascript and jquery

Find mysql_query issue


Paste the code below mysql_query or mysqli_query to find correct issue,recently i used it in project and found that table itself not exited in database. if (!$res) { printf(“Error: %s\n”, mysqli_error($this->conn)); exit(); }

Tagged with: , , , , , ,
Posted in php

Points to Remember in Yii


1)Yii application is build using Model-View-Controller(MVC) architecture. 2) Yii implements two kinds of model form model (CFormModel class) and active records(CActiveRecord class),which are extended by same base class cmodel. 3)form model represent the logic for form fields validation and bussiness logic.

Tagged with: , , , , , ,
Posted in php, yii framework
Follow php tutorial on WordPress.com
categories
Calendar
September 2017
M T W T F S S
« Aug    
 123
45678910
11121314151617
18192021222324
252627282930  
Follow me on Twitter
Blog Stats
  • 75,483 hits