how to incorporate third party software into Yii

I am building a site which needs forum and blog, I found some open source software like wordpress (blog) and simple machines(forum), how can I embed it into my site instead of just do a redirect ?

At least put them inside my own header and footer, is there a simple way?

thanks

It usually goes the other way around, i.e., you modify the templates provided by these softwares so that they have the similar header and footer as the rest of  the site.

in the layout template, the content div is pretty simply, just echo $content.

How do I assign value to that variable, or this is assigned by the core of YII

do you mean you use the same way to include simple machines 's forum to yiiframework.com ?

Thanks for your prompt reply

Quote

in the layout template, the content div is pretty simply, just echo $content.

How do I assign value to that variable, or this is assigned by the core of YII

Yes, the value is assigned by Yii core. You can't change it.

Quote

do you mean you use the same way to include simple machines 's forum to yiiframework.com ?

Thanks for your prompt reply

Yes.

Thanks, Qiang.  I recently moved from silicon valley to north Dallas, I wish we could have some beer together.  ;)

I wish we could. There are not many Chinese in US who are working on PHP. ;)

I live in DC though.