Posts

codeignitor 3 google robot or not code

first go to link register your site it will give you 2 key  https://www.google.com/recaptcha/ view <div class="login-form"> <form action="<?php echo base_url(); ?>user/forgetpasswordprocess" method="post"> <div class="form-row"> <div class="form-group"> <label for="">Email Address</label> <input type="email" class="form-control" placeholder="Enter Email Address" name="email" required> <?php echo "<span class='text-danger'>".form_error('email')."</span>"; ?> </div><br> <div class="form-group registerfom">      <div class="g-recaptcha" data-sitekey="6Le2q64ZAAAAACCzc-vnHfmrrWO6VSokrFbfaP4j"></div>      <?php if(!empty($capchtaerror)){ echo "...

codignitor3 validation with custom password

 //user registration function  public function registrationProcess() {     if(checkUsersession())     {         redirect('user');     }         $data['title'] = "Registration";         $sitesetting = $this->my_model->getData('tblsetting',$resultType = 'row_array',$arg=[]);         $data['countries'] = $this->my_model->getData('tblcountries',$resultType = 'result_array',$arg=[]);         $data['sitename'] = $sitesetting['sitename'];         $data['sitelogo'] = $sitesetting['logo'];         $data['sitefavicon'] = $sitesetting['favicon'];         $data['metakeyword'] = $sitesetting['metakeyword'];         $data['contactphone'] = $sitesetting['contactphone'];         $data['contactemail'] = $sitesetting['contactemail'];   ...

codeignitor 3 live search

view.php  $('#searchtext').keyup(function(){           var search = $(this).val();           if(search != '')           {             load_data(search);           }           else           {             load_data();           }     });     function load_data(query)     {        var zakatmasterid = $('#zakatmasterid').val();        var zakatcurrencyid = $('#zakatcurrencyid').val();        $.ajax({            url:"<?php echo base_url();?>User/liveSearch",            method:"POST",            data:{'query':query,'zakatmasterid':zakatmasterid,'zakatcurrencyid':zakatcurren...

codeignitor 3 Crud (jquery)

Contoller.php      public function insertBlog() {     if(!checkAdminsession())                {           redirect('admin');      }                $title = $this->input->post('title');     $content = $this->input->post('content');     $error = "";     if(empty($title))     {         $error .="Blog title is required\n"."<br>";     }     if(empty($content))     {         $error .="Blog content is required\n"."<br>";     }     if(isset($_FILES["image"]["name"]))     {          $photo =  $_FILES["image"]["name"];     }     else     {         $erro...

codeignitor 3 setup custom code

//My_model .php <?php defined('BASEPATH') OR exit('No direct script access allowed'); class My_model extends CI_Model  { function insertData($table,$data) { $this->db->insert($table,$data); } function getData($table,$resultType = 'result_array',$arg=[]) { if(isset($arg['select'])) { $this->db->select($arg['select']); } if(isset($arg['where'])) { $this->db->where($arg['where']); } if(isset($arg['join'])) { $this->db->join($arg['join']['table'], $arg['join']['query'], $arg['join']['type']); } if (isset($arg['group'])) { $this->db->group_by($arg['group']['col']); } if (isset($arg['limit'])) { $this->db->limit($arg['limit']['upto']); } if (isset($arg['order'])) { $this->db->order_by($arg['o...