How to create custom view folder |
Hello friends,
Please I want someone to help me on this. I am trying to change the view folder to something else like "themes". And I will like this folder to be in the root directory. I try using namespace to point the themes folder in the root directory i discovered you must create another folder name "Views" into the themes folders. Here is what I need when I use the namespace to point to home.php Codeigniter4 root directory => themes => home.php instead of this Codeigniter4 root directory => themes => Views => home.php. I try this but not working PHP Code: function view(string $name, array $data = [], array $options = []): string I will always appreciate your help. Thanks |
Messages In This Thread |
How to create custom view folder - by Chivinsdev - 04-17-2020, 06:09 PM
RE: How to create custom view folder - by kilishan - 04-17-2020, 08:50 PM
RE: How to create custom view folder - by Chivinsdev - 04-17-2020, 11:25 PM
RE: How to create custom view folder - by jekslek - 04-19-2020, 05:51 AM
RE: How to create custom view folder - by Chivinsdev - 01-03-2022, 08:12 AM
|