pmall

I send $request->segment(1) through a view composer as an $active variable.

Then <li class="{ { $active == 'posts' ? 'active' : '' } }">posts</li>.

Return to Thread...