This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

michal4543
michal4543

Is there a way to access partial parameters in code tab?

If i reference partial like this: {% partial 'foo' bar={baz: 'qux'} %}

How I'm supposed to get 'baz' value so i can do something with it in php?

Sorry for a lame question, but I'm kind of a newbie here.

Daniel81
michal4543
michal4543

@Daniel81 Thanks, I've seen the docs. I know how to create variable in php and then use it in partial. What I want do do is other way round: take partial parameter value and use it in php.

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.