
Discover CodeIgniter as a lightweight PHP framework with minimal configuration, time-saving libraries, and a vast community, while learning its three layers: motile, the controller, and the view.
Discover how the model-view-controller pattern works in CodeIgniter 4: the controller handles logic and talks to the model for database operations, then the view renders the resulting data for users.
Download CodeIgniter 4 from official site, note that 4 is in alpha while 3.1.9 is current, then create a project folder, move the files, and install Schempp to run locally.
Install XAMPP, start Apache and MySQL, and place your CodeIgniter project in htdocs to run locally; then update the base URL to localhost and test.
Compare Sublime Text and Brackets as preferred text editors, install the emet extension via package control, and boost coding speed with practical editor extensions.
Learn how to delete index.php from the url by editing the .htaccess and replacing index.php references, then clear the index_page variable in the application/config/config.php to blank and refresh.
Configure a local virtual host in XAMPP by editing the hosts file, setting a domain, and pointing Apache to the CodeIgniter 4 project's public folder, then adjust app settings.
Create your first controller in CodeIgniter 4 with uppercase class and file names. Use the default index function and route to a hello world function via the URL.
Send variables to a CodeIgniter controller's functions by defining slug and id in the url, retrieving them via the uri, and using checks to avoid errors.
Learn to change the default controller in CodeIgniter 4 by setting it to dashboard, and see how routes determine the loaded page when no URI is provided.
Learn how to call internal controller functions in CodeIgniter 4, switch a public method to protected, and control access while passing parameters between actions.
Learn how to load views in CodeIgniter 4 and pass data to them with a data array, then access the values in the view by their keys.
Demonstrate loading the CodeIgniter 4 parser, creating a data array with title and content, and rendering a view template with those variables.
Create a new database using the admin panel, name it code igniter, and set UTF 8 encoding, then prepare to create tables in the next class.
Configure the database in CodeIgniter by editing application/config/database.php. Set hostname to localhost and use the database name coding Knightfall with an empty password, noting hosting may vary.
Create a users table in the database with columns id, name, username, password, role, and last access; set id as an auto-incrementing primary key and define appropriate data types.
Create a CodeIgniter 4 model for the users table, set table name, primary key, allowed fields, and soft deletes. Load the model in the controller and insert a new user.
Search for and download a blog template, review the demo with a three-image slider, and explore posts, categories, and popular links for a quick, easy setup.
Learn how to separate a CodeIgniter 4 template into header, content, and footer files to avoid duplicating code, then save and include them from the index view.
Create an assets folder, update base_url references, and map images and css to assets paths in CodeIgniter 4 to ensure correct file loading.
Create a public load views function in CodeIgniter 4 to load header, a requested view, and footer, and manage assets in public folder while handling missing views and session states.
Create the posts table in the database for a CodeIgniter 4 project, outlining fields such as id, title, image, author, created on, intro, content, and category, with comments separate.
Create a posts model in CodeIgniter 4 by matching the database fields such as intro content, category, created_at, created_by, and tags, then test inserting a post via the dashboard controller.
Create a blog post form in codeigniter 4 to upload files, using a multipart/form-data form, an upload post function, and placing uploaded files into the uploads directory.
Configure the database for the forum in CodeIgniter 4 by adding slack and slug fields to posts, creating the categories table and modal, loading the model, and validating the form.
Learn to implement form validation in CodeIgniter 4 by applying required rules, loading the form validation service, setting validation rules, handling errors, and displaying success messages.
Implement post creation validations in CodeIgniter 4 by defining required fields (title, intro, content as textarea), populating categories via modal, and enforcing minimum length with custom errors.
Add styles to the post form in CodeIgniter 4, implement image validation (type, size, dimensions), and save the post with slug and created at to the database.
Install and integrate the Summernote WYSIWYG editor into a CodeIgniter 4 project, attach it to the post form textarea, include bootstrap and jQuery scripts, and configure image uploads and styling.
Fix data handling in the index function by conditionally sending data to views to ensure the page loads, and restore header script placement with Bootstrap CSS for consistent styling.
Modify the footer to dynamically load posts using the show_home field in the database with CodeIgniter 4. Enable public uploads by configuring a root path and uploads folder.
In this course you will learn how to use the CodeIgniter framework from scratch. CodeIgniter is a framework Model-View-Controller (MVC) which is very powerful. You will be able to create almost everything that you have your mind set on in terms of development.
In this course you will learn by practising. We will create an application web, in this case a Blog, from scratch. You will be able to practise the most important aspects of CodeIgniter by applying them on this project.