In this class I show you how to create a VirtualHost in WAMP ( Apache ) and point this host to the root (“public” folder) of our project in CodeIgniter 4 . (WAMP was the tool of choice because it is the tool I am using in class. Below are links that show how to create virtual hosts in the most popular tools;).
In addition to creating the host, I also show how to enable “rewrite_mod” in Apache, to enable the use of URL rewriting (Friendly URLs). That way, we can remove the “index.php” from the URL, for example, making it more “lean”.
Hello dear readers,
Continuing with the series of classes on CodeIgniter 4 , in today’s video I go deeper into the concept of Views and show you how to easily create a template structure within CI4.
With this structure, just create the template areas (header, menu, footer, etc.) in separate Views and then include them within the other Views . This feature makes development faster and more organized and avoids code rewriting.
Hey guys, how are you?
I just published on my Youtube channel the fourth video of the series on CodeIgniter 4. In this video, I show what the Views are (The letter “V” of the MVC architecture), what is their purpose and how to create the Views inside the framework.
In the class, it is shown how to load a View and also how we can do to dynamically send data from the Controller to the View, in order to use them in the application’s template (interface).
Hey guys. All right???
The third video on the CodeIgniter 4 framework is already on the air . In this lesson, I show you how to operate the routes in CI4 and how you can change the basic structure of the URLs in the application.
In the video I create a test controller called ” Products ” with the standard action ” index ” and with the action ” details “. Then, in the app/config/Routes.php file I add 2 routes, one that shows the simple redirection of “shopping” to the “products” controller and another that shows how to insert dynamic parameters and make the product details URL more ” lean ”.
Continuing the series of videos about CodeIgniter 4 , in today’s class I show you how to create your own “ controllers ” and “ actions ” (methods) in CI4. In addition, I also explain the URL structure of our application made with the framework .