Codeigniter Simple Template Library |
I am glad you like it!
If the CSS or Javascript snippet are loaded by every pages, I usually put them in the style.css or script.js It is useful for programmings like to hard-coding CSS and Javascript snippet in Controllers, just for styling single page or a few pages. For example, I hard-coding those CSS only for login and register page in User Controller. Output: If anyone don't like hard-coding, it can be loaded from View as a varible. PHP Code: // Load view into a variable for importing CSS I think it is convenient to use.
Personal blog: https://terryl.in
My personal project is called Dictpedia is currently using Codeigniter 3, welcome. |
Messages In This Thread |
Codeigniter Simple Template Library - by allenlee - 05-11-2016, 10:32 AM
RE: Codeigniter Simple Template Library - by natanfelles - 05-21-2016, 11:23 AM
RE: Codeigniter Simple Template Library - by allenlee - 05-22-2016, 10:54 AM
|