我建了一个portlet,内容是一行字,我放到了默认的controller的view index.php中。但是这样的话效果有问题,而且查看源代码发现整个index.php的输出竟然先于main.php部分的html代码。
而只能将portlet放到coloumn中,就如同blog的用例一样。
我的理解是portlert是一个重复性很强的,区块代码,它应该能在我想它出现的任何位置出现,而不影响页面布局,或者代码的顺序。
请回复我,不胜感激。项目着急用。
I have built a portlet, the content is just only one word ‘go’, and I put the default in the controller’s view index.php. But the effect of this is the case in question, and view the source code found in the output even before the index.php part in main.php html code.
weather the portlet can be only used in coloumn the same use cases as the blog.
In my optionion ,that portlert is a highly repetitive, block codes, I think it should be able to appear anywhere it occurs, without affecting the page layout, or code sequences.
Please reply to me, much appreciated. Hurry with the project.