Last active
April 14, 2018 04:45
-
-
Save campaignupgrade/6e0c857bf26047ad073f2052c161bf57 to your computer and use it in GitHub Desktop.
Multiple values in an array variable in Sober Controller (Sage 9)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// in controller | |
public function homepageFields() { | |
return array ( | |
$subheading => get_field('subheading'), | |
$video = get_field('video_link') | |
) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ $homepage_fields['subheading'] }} | |
{{ $homepage_fields['video'] }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment