Hi guys, I am doing some testing with CouchCMS and I have a bootstrap here with a lot of utilities for my projects. One thing that I could see is that when I set a variable using $CTX->set and then call <cms:dump/>, the dump outputted won't place any of the variables defined inside <cms:php> tag. Ex.:
The variable `my_first_test` will show up on the list, but `my_second_test` won't. Although it will be available to be used via <cms:show my_second_test />.
Do you guys know if this is a bug or maybe I'm missing something here?
- Code: Select all
<cms:set my_first_test="1" />
<cms:php>
global $CTX;
$CTX->set('my_second_test', '2');
</cms:php>
<cms:dump />
<cms:dump_all />
The variable `my_first_test` will show up on the list, but `my_second_test` won't. Although it will be available to be used via <cms:show my_second_test />.
Do you guys know if this is a bug or maybe I'm missing something here?