Farzin.b
Farzin.b

Hi to all I run my onHello() method in component. for example: The onHello() method call in one.htm view, and i want to show the result of onHello() method in two.htm view. i use this command in onHello() method: $this->data['test'] = "Hello Dear!"; and use this command in two.htm view: {{ Books.data.test }} But the "Hello Dear" not displayed.

ndcisiv
ndcisiv

Assuming that your form is calling the onHello() method and is set to update some id on the page with your two.htm partial, then you should be able to have that method set:

$this->page['test'] = "Hello Dear!"

Then in your two.htm partial you write:

{{ test }}

And it should be displayed.

1-2 of 2