A PHP Error was encountered

Severity: Notice

Message: Undefined variable: staticTitle

Filename: views/header.php

Line Number: 16

Backtrace:

File: /home/spfoundationbd/public_html/application/views/header.php
Line: 16
Function: _error_handler

File: /home/spfoundationbd/public_html/application/controllers/BlogController.php
Line: 1346
Function: view

File: /home/spfoundationbd/public_html/index.php
Line: 315
Function: require_once

PHP & Website Design, Development Tutorials | SP Foundation
how to mail send when register in codeigniter framework

how to mail send when register in codeigniter framework

Md. Shahab uddin
22-03-2018

Controller.........

public function register_process() {
$data['baseurl'] = $this->baseurl;

$name = 'Name';

$email = 'email';

$this->RegisterModel->sendCustomerVerificationEmail($name, $email);
redirect('view-cart');
}

Read More
How to file or picture delete from folder with database use codeigniter

How to file or picture delete from folder with database use codeigniter

Md. Shahab uddin
19-10-2017

Views file:

<td class="text-center">

      <?php echo anchor('post-edit/' . $single->post_id, ' ', array('class' => 'btn btn-info fa fa-edit', 'title' => 'Edit')); ?> |

      <?php echo anchor('post-delete/' . $single->post_id, ' ', array('class' => 'btn btn-danger fa fa-trash-o','onclick' => "return confirm('Do you want to delete it ?')", 'title' => 'Delete')); ?>

</td>

 

 

Read More
how to insert multiple row use codeigniter

how to insert multiple row use codeigniter

Md. Shahab uddin
12-04-2017

its a method of model

    public function savesMeals($allData) {

        $this->db->insert('meal_tbl', $allData);

        $this->session->set_flashdata('success', 'Data save successfully!');

    }

 

    public function checkMeal($mid, $created) {

        $this->db->where('member_id', $mid);

        $this->db->where('created', $created);

        $this->db->from('meal_tbl');

        $query = $this->db->get();

        if ($query->num_rows() > 0) {

            return $query->result();

        } else {

            return FALSE;

            ;

        }

    }

Read More
How to create a data pagination from database use codeigniter

How to create a data pagination from database use codeigniter

Md. Shahab uddin
08-04-2017

<div class="row">

        <div class="text-center">

            <?php echo $pagination; ?>  

        </div>

    </div>

Read More
How to data delete from database use codeigniter framework

How to data delete from database use codeigniter framework

Md. Shahab uddin
21-03-2017

just create a method of controller...............

Read More
How to data edit or update  from database use codeigniter framework

How to data edit or update from database use codeigniter framework

Md. Shahab uddin
21-03-2017

Just create some method of controller & model............ write bellow the code 

Read More
Data Show from database use codeigniter framwork in a table

Data Show from database use codeigniter framwork in a table

Md. Shahab uddin
21-03-2017

How to data show in a table from database use codigniter framework. 

just at first a method create in a controller......

public function index() {

        $data['alldata'] = $this->MainModel->allclassList();

        $this->load->view('create',$data);

    }

Read More
How to create a form & Data insert of my database use codeigniter framework (CRUD Project)

How to create a form & Data insert of my database use codeigniter framework (CRUD Project)

Md. Shahab uddin
19-03-2017

At first create a view page..

Application > Views > addclass page create then........

 

                    Add Class 

               

Read More
How to remove index.php overwrite  .htaccess  use codeigniter

How to remove index.php overwrite .htaccess use codeigniter

Md. Shahab uddin
05-03-2017

got to application/config

$config['index_page'] = 'index.php'; overwrite $config['index_page'] = ""; and

$config['uri_protocol'] = 'REQUEST_URI';

Read More