Timeline for Add View Name to CSS Class on Body
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 29, 2017 at 7:01 | answer | added | Tan Nguyen | timeline score: 5 | |
S Apr 28, 2016 at 19:30 | history | suggested | Shaz | CC BY-SA 3.0 |
Removed answer from the question + FIXED word in title.
|
Apr 28, 2016 at 18:58 | review | Suggested edits | |||
S Apr 28, 2016 at 19:30 | |||||
Apr 28, 2016 at 18:46 | history | edited | Mat | CC BY-SA 3.0 |
added 225 characters in body; edited title
|
Apr 28, 2016 at 18:43 | vote | accept | Mat | ||
Apr 28, 2016 at 18:39 | answer | added | Stuart | timeline score: 9 | |
Apr 28, 2016 at 18:38 | answer | added | Alex Munoz | timeline score: 6 | |
Apr 28, 2016 at 18:36 | answer | added | Shyam Naru | timeline score: 5 | |
Apr 28, 2016 at 18:36 | answer | added | Filip Koblański | timeline score: 1 | |
Apr 28, 2016 at 18:31 | comment | added | Mat | @Matt Hi Matt, I'm using Laravel so I'm assuming that I'd need to make a controller for capturing the view name then convert it to a variable. Once it's in a variable, I'd need to echo it to the class like {{ $viewname }} or something along these lines. It's just getting to this point that I'm confused about. | |
Apr 28, 2016 at 18:29 | comment | added | Matt | if you are using dynamic urls like ?action=home or ?action=about then you can use <body class="<?php $_GET['action'] ?>"? | |
Apr 28, 2016 at 18:24 | history | asked | Mat | CC BY-SA 3.0 |