How to use view to load a CSS file |
I am delighted that the CI4 Alpha Version has been released and decided to rewrite some very, very old scripts that started even before CI2 was released.
The old script has been modified extensively and currently uses CI_VERSION: 3.1.8 This script was acceptable but now fails and curious to know the correct way to load the variable: PHP Code: $data['styleTest'] = view('incs/styleTest.css', $data, true); Error Message: Argument 3 passed to view() must be of the type array, boolean given, called in /home/john/www/test-ci4-version I have tried numerous options and this KLUDGE works but I would far prefer to use the correct method of loading the file: KLUDGE: PHP Code: $tmp = file_get_contents( '/incs/styleTest.css' ); |
Messages In This Thread |
How to use view to load a CSS file - by John_Betong - 05-19-2018, 09:05 PM
RE: How to use view to load a CSS file - by ciadmin - 05-19-2018, 09:27 PM
RE: How to use view to load a CSS file - by John_Betong - 05-20-2018, 10:04 PM
RE: How to use view to load a CSS file - by kilishan - 05-21-2018, 05:46 AM
RE: How to use view to load a CSS file - by John_Betong - 05-21-2018, 08:59 AM
|