css render - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: css render (/showthread.php?tid=75752) |
css render - bitshifter - 03-12-2020 Hi I'm new here and plagued myself much too long with another product from the US. I find it amazing - in particular the docs, the whole philosophy of CI is simply great. No curlicue, no distractions, pure white meat. I love it. However I'm quite stuck with my first steps in using an applying CI. I can't get an external css file rendered while inline rendering in particular with <style></style> tags works flawless. Here my very basic code, a bit modded from the tutorial. I am pretty sure that I overlooked something and that the answer is literally laying in front of mine but I don't see it: config settings and database settings are cool, don't want to cite em here... Controller: Code: <?php PHP Code: <html> styles.css PHP Code: body { .git | application | | myProject | |------css | | | styles.css | |------public | | | index.php | | system | | vendor Any help is very appreciated as I invested already too much time in such a tiny affair. Greets RE: css render - jreklund - 03-12-2020 Your css folder should be in your public folder. PHP Code: <?php echo link_tag('css/styles.css'); ?> RE: css render - bitshifter - 03-12-2020 YES! that's it, great, thanks a lot. RE: css render - jreklund - 03-12-2020 Your welcome, glad it worked out. Welcome to the CI family btw! :-) |