I'm facing something strange behaviour of Yii concerning DOM: I've got the following code
<div class="large-3 columns">
<?php $this->renderPartial("/categories/_small"); echo "some test text"; ?>
</div>
<footer>
This is a footer
</footer>
The generated html is something different form what I expect:
<div class="large-3 columns">
... text from render partial goes here ...
<div style="clear:both;"> some test text </div>
<footer> This is a footer </footer>
</div>
Why does all the text come inside the first div? Why does some test text come inside some div that I have not typed? I suppose that it has something to do with renderPartial, because when it is absent, everything goes as expected.
P.S. As requested, I add the html I'd like to have as output:
<div class="large-3 columns">
text from render partial goes here
some test text <--- NO ADDITIONAL DIV TAG IS APPENDED
</div>
<footer> This is a footer </footer>