Laravel eloquent

Laravel is an MVC based PHP framework. In MVC architecture, ‘M’ stands for ‘Model’. A Model is basically a way for querying data to and from the table in the database. Laravel provides a…

0 Comments

Crud in codeigniter

The acronym CRUD means Create, Read, Update, and Delete. Any application that uses persistent data must have CRUD operations. The CRUD is an important thing that developers keep in mind…

0 Comments

Retrive paramater from url in ci-3

http://localhost/codeigniter/ci3/index?id=3 (url) public function index() (controller) { $id = $_GET['id']; echo $id; die(); $arr['data'] = $this->WelcomeModel->index(); $this->load->view('pages/home', $arr); } http://localhost/codeigniter/ci3/index/4 public function index($id = 3, $name = 'homepage') { echo…

0 Comments

Models in ci-3

WelcomeModel .php (model): defined('BASEPATH') OR exit('No direct script access allowed'); class WelcomeModel extends CI_Model { function index(){ echo "about model"; } } Welcome.php (controller): defined('BASEPATH') OR exit('No direct script access…

0 Comments