Customize url in ci-3

url structure: base_url/controllername/functionname Remove controllername from url: /application/config/routes.php $route['default_controller'] = 'welcome'; $route['^(?!other|controller).*'] = 'welcome/$0'; $route['404_override'] = ''; $route['translate_uri_dashes'] = FALSE; Remove index.php from url: create .htaccess file at root directory…

0 Comments

Controller in ci-3

<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Welcome extends CI_Controller { public function index() { $this->load->view('header'); $this->load->view('index'); $this->load->view('footer'); } function about(){ $this->load->view('header'); $this->load->view('about'); $this->load->view('footer'); } } /* filename…

0 Comments

Codeigniter errors

Creation of dynamic property CI_URI::$config is deprecated /system/core/URI.php #[\AllowDynamicProperties] class CI_URI { /system/core/Router.php #[\AllowDynamicProperties] class CI_Router { /system/core/Loader.php #[\AllowDynamicProperties] class CI_Loader { /system/core/Controller.php #[\AllowDynamicProperties] class CI_Controller { /system/database/DB_driver.php #[\AllowDynamicProperties] abstract…

0 Comments

Folder Structure in CI-3

There are only two main folder : 1. system and 2. application. system folder is a core files folder of ci so dont disturb it. application folder is customizable folder.…

0 Comments

jQuery Checkbox “checked” event

$(document).ready(function() { $('#premium_services').change(function() { if($(this).is(":checked")) { var returnVal = confirm("Are you sure?"); $(this).attr("checked", returnVal); } }); }); $(document).ready(function() { $('#premium_services').change(function() { if($(this).is(":checked")) { let premium_services = 500; $('#premium_cost').text(premium_services); } else{…

0 Comments

ckeditor in laravel

In this tutorial, we are going to create a new Laravel application for creating blogs or posts. While creating a blog we’ll use CKEditor to take input or HTML input…

0 Comments

Post loading on page scroll

Friends, as you must have seen in WordPress, when we go to the page containing the block post and scroll to it, the block posts open automatically on infinite scroll.…

0 Comments