Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Partials and Session

Good afternoon, please how to get sessions values on partials ?! is it necessary to use PartialController ?!

Good afternnon,

Are you using Volt?



3.0k
edited May '15

Yeap, I use volt. well I have 3 variables on my session used in severale views, so the idea is about creating partial and include it into my volt files.

This should work:

{{ session.get("value") }}


3.0k

Thanx Andres



16.1k
Accepted
answer
edited May '15

Partials just extends a view to help manage your code. so when working on partial blocks just assume you are working on the view implementing that partial block.



3.0k

Hello Dominic, when you say assume you are working on the view that implement partial it means that there is a controller to initialize your view ?



3.0k

Thanx Dominic.