
Build a full blog management system with PHP CodeIgniter, MySQL, and Bootstrap, mastering controllers, models, validations, authentication, CRUD, routes, and an admin panel.
Install xampp to set up a local development server with apache, mysql, php, and phpmyadmin for back-end development; walk through downloading, selecting components, firewall allowance, and verifying via localhost.
Install Visual Studio Code by downloading for Windows, skip adding to the path, create a desktop icon, and start coding; other editors like php storm or sublime text also work.
Design and code a blog system with an index featuring categories, search, and login links, plus post pages with title, author, image, body, and comments.
Configure php.ini to enable the required extension, locate and edit the file, then restart Apache and MySQL to apply changes, preparing your CodeIgniter project before creation.
Create a CodeIgniter 4 project by downloading the framework, configuring a ci-blog folder, enabling development mode and database, and setting base URL, index handling, plus htaccess and root index.
Learn to build a CodeIgniter 4 authentication system with Shield, including installation with composer, database setup, migrations, and login and registration workflows.
Create a reusable master template and home page in CodeIgniter 4, wire dynamic content sections, and implement a dynamic navbar with login state and assets.
Builds a full blog in PHP CodeIgniter 4 by creating a post model for the posts table, adding fields, and displaying posts on the home page.
display two latest blog posts on the home page by querying the post model with select and limit, passing data to the view, and looping to render image and title.
Learn to display business posts in a CodeIgniter 4 blog by filtering by category, ordering by id descending, limiting to two posts, and showing truncated previews with images.
Learn to display four recent posts in CodeIgniter 4 by ordering by title descending, looping through posts, and rendering images and truncated bodies.
Learn how to display posts by category in a CodeIgniter 4 blog, creating a category route, posts controller method, and category view.
Display categories with their post counts by building a categories table and model, then joining posts and categories, counting posts per category, in a CodeIgniter 4 blog system.
Explore displaying a single post in CodeIgniter 4: link categories to posts, set up routes, and render a dynamic post view with data, image, username, and comments.
Demonstrates building a blog comments system with CodeIgniter 4. Create a comments model and table with username, body, post_id, and timestamps, and fetch and display post-specific comments with clean routing.
Learn to display the number of comments and show related posts in a CodeIgniter 4 blog, excluding the current post, with a limited, ordered query and dynamic IDs.
Learn how to insert new comments in a CodeIgniter 4 blog: log in, post comments via store route, map inputs to the comments table, and display a success message.
Build a create post feature for a PHP CodeIgniter 4 blog by creating the create post page and a store post route with inputs for title, image, body, and category.
Add a delete button for posts and wire a get route to delete in CodeIgniter 4, validating authors via session user id and showing a success message.
Update blog posts in CodeIgniter 4 by loading post data into an edit form, submitting updates via the post ID, and viewing the updated post.
Implement backend validation in CodeIgniter 4 to ensure only the post owner can update or delete, by matching the session user_id with the post user_id and redirecting unauthorized users home.
Explore backend and frontend validation in a CodeIgniter 4 blog app by securing create post access, posting comments, and handling sessions for logged-in users.
Create a users controller and a my-posts route in codeigniter 4 to show the logged-in user's posts, using the posts model and session authentication.
Clean up and group routes for posts, categories, and singles with prefixes and closures. Create about and contact pages wired to controllers and views, then test login and new comments.
Implement a post search feature by wiring a search form to the posts controller, using the like keyword on the title to filter, and displaying results in the searches view.
Design and code a simple admin panel for a blog, featuring a login workflow, a dashboard with stats, and full CRUD for admins, categories, and posts.
Create and configure the admin panel by building the admin model, database table, and login route, then render the login view with a master admin template.
Implement a login flow in CodeIgniter 4 by routing a post login, validating email and hashed password with password_verify, starting a session, and redirecting to the admin index.
learn to validate authentication in a codeigniter 4 blog setup by using sessions to show or hide login and logout links, and protect access based on login state.
Secure a PHP CodeIgniter 4 blog by using filters to require login for the index page and prevent access to login when already logged in, with a dedicated admin logout.
This lesson shows how to display the counts of posts, admins, and categories on the index page by querying the database and passing the results to the view.
Learn to build and display all admins in a CodeIgniter 4 app by wiring routes, rendering an all-admins view, fetching admin records, and ensuring session data for navigation.
Create admins by rendering a form, posting to admins.store, hashing the password with password_hash, saving the data, and flashing an 'admin saved successfully' message before returning to all admins.
Access the admin section to display all categories, fetch them with the query builder, and render them in a descending id order on the categories page.
Create new categories with a single input form that saves the category name to the categories table and shows a flash success message.
Update a category with a dynamic id in a CodeIgniter 4 blog, building an edit form and handling the update to reflect changes in the categories list.
Learn how to delete a category by sending the id to the delete endpoint, calling the category model's delete method, and redirecting with a category deleted successfully message.
Display all posts in a CodeIgniter 4 blog by routing to an all posts function and fetching posts ordered by id desc for the admin view.
Learn how to delete posts by sending the post ID to a delete function, invoking the post model, redirecting to all posts, and displaying a success message.
Delete the post record and its image from public/assets/images to keep the folder clean and prevent clutter when hosting.
Learn how to build a full blog system from scratch using PHP CodeIgniter 4 in this beginner-friendly course.
This course is designed for beginners with very little experience in PHP or web development. We will start by covering the basics of PHP, and then we will dive into CodeIgniter 4. By the end of the course, you will be able to:
Create a new CodeIgniter 4 project
Configure a database
Create models, controllers, and views
Write secure and efficient code
Implement user authentication and authorization
Add features like comments, tags, and search
Creating full featured admin panel
The course is taught by an experienced web developer with significant experience. The lessons are clear and concise, and the code is well-commented so that you can easily follow along.
Who this course is for:
Absolute beginners with very little experience in PHP or web development
Developers who want to learn how to use CodeIgniter 4
Anyone who wants to build a full blog system from scratch
What you need to get started:
A computer with PHP installed
A web browser
A text editor or IDE
A basic understanding of PHP Codeigniter will help a lot
Enroll now and start learning how to build your own blog system with PHP CodeIgniter 4!