This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
allw
hi all,
title says it all really, i am looking how to pull the variables created onstart in the code section of the page, and i have tried using things like
{{ result['description'] }} or {{ $result['description'] }}
btw a dump contains null, but if i put print_r($result) contains all the info.
but as of yet i cannot get it to work, obviously i am doing something wrong but i am not sure what?
thanks,
allw
Daniel81
Try {{ result.description }}
https://octobercms.com/docs/cms/themes#php-section
http://twig.sensiolabs.org/documentation
Last updated
1-2 of 2