Blog Archives

Add table string inside html php variable


We can use strrpos function to find the position of the string and use substr function to insert the particular string in particular position. <?php $html = "\html/Please Click Here to Complete Questionnaire/html/" $str_to_insert = "pramodh"; $pos = strrpos($html,"Please Click

Tagged with: , , , , , , ,
Posted in Practice Makes a beginner to become php programmer expert(practical task to become php programmer)

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 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
Follow Tutorial on WordPress.com
categories
Calendar
May 2018
M T W T F S S
« Apr    
 123456
78910111213
14151617181920
21222324252627
28293031  
Follow me on Twitter
Blog Stats
  • 78,424 hits