[wp-hackers] How to load a sidebar/footer from non-WordPress environment

Otto otto at ottodestruct.com
Fri Apr 1 02:57:33 UTC 2011


Make a page template and include the Yii base code in that. Then use that
page template on a WP page.

-Otto


On Thu, Mar 31, 2011 at 7:51 PM, Philip Walton <philip at philipwalton.com>wrote:

> I'm building a site for a client that is primarily in WordPress but
> contains a donation section built with the PHP framework Yii.
>
> Visually, when a user is on the donation page(s), I'd like to still show
> the sidebar and footer from the main WordPress blog to maintain consistency.
> But, obviously, I can't simply include those php files or call get_sidebar()
> from another application.
>
> I know there are several ways to accomplish what I'm wanting: I could use
> ajax, e.g. $.load(), or create a page template and file($url), but I'm
> looking for a better (and faster) way. I'm wondering if other folks have
> encountered this issue, and what they have done.
>
> If no good solutions exist, I might just write a plugin that caches theme
> parts periodically or after certain updates are made.
>
> Any advice?
>
>


More information about the wp-hackers mailing list