<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Linking between Apps within Symfony</title>
	<atom:link href="http://stereointeractive.com/blog/2007/06/18/linking-between-apps-within-symfony/feed/" rel="self" type="application/rss+xml" />
	<link>http://stereointeractive.com/blog/2007/06/18/linking-between-apps-within-symfony/</link>
	<description>Development Blog</description>
	<lastBuildDate>Thu, 17 Jun 2010 09:37:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Wiggins</title>
		<link>http://stereointeractive.com/blog/2007/06/18/linking-between-apps-within-symfony/comment-page-1/#comment-315</link>
		<dc:creator>Wiggins</dc:creator>
		<pubDate>Sun, 09 Nov 2008 19:18:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stereodevelopment.com/2007/06/18/linking-between-apps-within-symfony/#comment-315</guid>
		<description>heh the convience of doing:

&lt;?= link_to(&quot;Post&quot;,LocalSettings::frontend_url(&#039;post/view/id/&#039;.$post-&gt;getId()))?&gt;</description>
		<content:encoded><![CDATA[<p>heh the convience of doing:</p>
<p>&lt;?= link_to(&#8220;Post&#8221;,LocalSettings::frontend_url(&#8216;post/view/id/&#8217;.$post-&gt;getId()))?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wiggins</title>
		<link>http://stereointeractive.com/blog/2007/06/18/linking-between-apps-within-symfony/comment-page-1/#comment-314</link>
		<dc:creator>Wiggins</dc:creator>
		<pubDate>Sun, 09 Nov 2008 19:17:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stereodevelopment.com/2007/06/18/linking-between-apps-within-symfony/#comment-314</guid>
		<description>I do something very similar to this but i use this function in my LocalSettings as well


public static function frontend_url($url_part)
{
  $proto = sfConfig::get(&#039;app_frontend_proto&#039;,&#039;http&#039;);
  $host = sfConfig::get(&#039;app_frontend_host&#039;);
  if ($url_part[0] != &#039;/&#039;) $url_part = &#039;/&#039;.$url_part;
  return $proto.&#039;://&#039;.$host.$url_part;
}


Then in templates you get the convience of doing such:

getId())?&gt;
</description>
		<content:encoded><![CDATA[<p>I do something very similar to this but i use this function in my LocalSettings as well</p>
<p>public static function frontend_url($url_part)<br />
{<br />
  $proto = sfConfig::get(&#8216;app_frontend_proto&#8217;,'http&#8217;);<br />
  $host = sfConfig::get(&#8216;app_frontend_host&#8217;);<br />
  if ($url_part[0] != &#8216;/&#8217;) $url_part = &#8216;/&#8217;.$url_part;<br />
  return $proto.&#8217;://&#8217;.$host.$url_part;<br />
}</p>
<p>Then in templates you get the convience of doing such:</p>
<p>getId())?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://stereointeractive.com/blog/2007/06/18/linking-between-apps-within-symfony/comment-page-1/#comment-133</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Sat, 17 Nov 2007 03:51:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stereodevelopment.com/2007/06/18/linking-between-apps-within-symfony/#comment-133</guid>
		<description>actually, having the directives in the app file for dev vs prod environments is defiantly helpful. I guess i would just define a global app.yml file with the relative file path defined there.  

example:
prod:
  url:
    corp_home:     ../corp.php
    member_home:   ../member.php
    guest_home:    ../guest.php
dev:
  url:
    corp_home:      ../corp_dev.php
    member_home:    ../corp_dev.php
    guest_home:     ../guest_dev.php</description>
		<content:encoded><![CDATA[<p>actually, having the directives in the app file for dev vs prod environments is defiantly helpful. I guess i would just define a global app.yml file with the relative file path defined there.  </p>
<p>example:<br />
prod:<br />
  url:<br />
    corp_home:     ../corp.php<br />
    member_home:   ../member.php<br />
    guest_home:    ../guest.php<br />
dev:<br />
  url:<br />
    corp_home:      ../corp_dev.php<br />
    member_home:    ../corp_dev.php<br />
    guest_home:     ../guest_dev.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://stereointeractive.com/blog/2007/06/18/linking-between-apps-within-symfony/comment-page-1/#comment-132</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Sat, 17 Nov 2007 03:08:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stereodevelopment.com/2007/06/18/linking-between-apps-within-symfony/#comment-132</guid>
		<description>Is there anything wrong with just redirecting with a relative path from within an action? It seems rather easy.

$this-&gt;redirect(&quot;../otherAppName&quot;)

I think this works because the native entry file is in the same directory as your index.php file.

I have just tried it and it seems to work just fine.</description>
		<content:encoded><![CDATA[<p>Is there anything wrong with just redirecting with a relative path from within an action? It seems rather easy.</p>
<p>$this-&gt;redirect(&#8220;../otherAppName&#8221;)</p>
<p>I think this works because the native entry file is in the same directory as your index.php file.</p>
<p>I have just tried it and it seems to work just fine.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
