How to set the value remains display in the field even some error comes codeigniter 4
to re-populate the input value use set_value(‘input_name’) method, like below <input type=”text” name=”username” class=’form-control’ value='<?= set_value(‘username’)?>’>
how to create a custom constant file in ci4
-Create a folder in project root directory or app directory. I am creating a folder with name Includes in App folder:(C:xampp/htdocs/ci4/App/Includes) -Create a file CustomConstants.php, and define your constants in that file. Save the file inside Includes folder -use include… Read More
CodeIgniter 4 Theme Integration
In this session, we are going to explain How to integrate a theme in codeIgniter 4. By using View Layouts and its methods. CodeIgniter 4 supports a simple, yet very flexible, layout system to create web applications. We can… Read More
Controllers in CodeIgniter 4
Controllers are the heart of your application, as they determine how HTTP requests should be handled. A Controller is a class file, which contains collection of methods and properties to handle HTTP Requests. The name of the controller class will… Read More
CodeIgniter URLs
URLs in CodeIgniter are designed to be search-engine and human-friendly. Rather than using the standard “query-string” approach to URLs that is synonymous with dynamic systems, CodeIgniter uses a segment-based approach: URL : gophp.in/news/article/my_article URL Structure: gophp.in/class/method/ID Here news is the name of the… Read More
CodeIgniter 4 MVC Architecture
When we are learning any framework, it’s very important to know about MVC architecure. If we can understand MVC flow, we can easily learn framework. All the frameworks which are created in PHP are based on MVC only. So that… Read More
CodeIgniter 4 Application Structure or Folder Structure
Default Directories A fresh install has following directories: /app, /system, /public, /writable, /tests. Each of these directories has a very specific part to play. Lets discuss about each and every directory in details app This is the heart of our… Read More
CodeIgniter 4 Installation
We can install CodeIgniter in the following ways: Manually: Download⇒ Extract ⇒ copy to server location Using Composer: composer create-project codeigniter4/appstarter <project-folder-name> Note: Composer installation is always recommended
CodeIgniter 4 Server Requirements
PHP version 7.2 or newer is required, with the *intl* extension and *mbstring* extension installed. These extensions are enabled in php.ini file. The following PHP extensions should be enabled on your server: php-json, php-mysqlnd, php-xml To work with CURLRequest, you… Read More