Blog Archives

How to validate sunday date or skip sunday date in php

Hi Friends I was working on yii2 framework project in which i as working on delivery date in which it should skip shipping or delivery date on sunday as saturday is also working day,so i came up with idea to

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

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 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
Follow Tutorial on
November 2017
« Sep    
Follow me on Twitter
Blog Stats
  • 76,471 hits