I'm not sure I'm using some of the ccv6 features correctly.
Loop function
I believed the difference between the repeater view and the loop function had something to do with an MVC pattern but the loop function seems to output everything unless you put the result in a var.
What's the difference between the two?
var.set
I put the following code in a php function (myphp):
I create an event with content:
I change the event to:
Why is that?
I chenge the content of the event to:
I want to use gOutside as a provider of another function but it's not working. I also tried creating another php function that return gOutside but that too is empty for other functions [EDIT: I can't reproduce this, now it seems to work, it could be because now the loop is set to return the result as var].
I am missing something but what is it?
Thank you
maxx
Loop function
I believed the difference between the repeater view and the loop function had something to do with an MVC pattern but the loop function seems to output everything unless you put the result in a var.
What's the difference between the two?
var.set
I put the following code in a php function (myphp):
$tmp = $this->get('gOutside', [li]);I put this function in a loop function (myloop).
$tmp[/li] = ("aField" = 45);[br]$this->set('gOutside', $tmp);
I create an event with content:
{fn:myloop}I expect to find gOutside in the output of the debug function but it is not there.
{debug:}
I change the event to:
{fn:myloop}and the content of gOutside is displayed.
{var/pr:gOutside}
Why is that?
I chenge the content of the event to:
{var.set:foo$(val:3)}but foo is not there to be seen.
{debug:}
I want to use gOutside as a provider of another function but it's not working. I also tried creating another php function that return gOutside but that too is empty for other functions [EDIT: I can't reproduce this, now it seems to work, it could be because now the loop is set to return the result as var].
I am missing something but what is it?
Thank you
maxx