<?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: CakePHP with Symfony&#8217;s2 router</title>
	<atom:link href="http://piotrpasich.com/cakephp-with-symfonys2-router/feed/" rel="self" type="application/rss+xml" />
	<link>http://piotrpasich.com/cakephp-with-symfonys2-router/</link>
	<description>PHP, Symfony, Design Patterns</description>
	<lastBuildDate>Fri, 08 Sep 2023 13:45:00 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>By: hkinfowaytech</title>
		<link>http://piotrpasich.com/cakephp-with-symfonys2-router/#comment-133</link>
		<dc:creator><![CDATA[hkinfowaytech]]></dc:creator>
		<pubDate>Wed, 31 Aug 2022 11:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://piotrpasich.com/?p=2533#comment-133</guid>
		<description><![CDATA[best &lt;a href=&quot;https://www.hkinfoway.com/services/web-development-services/&quot; rel=&quot;nofollow&quot;&gt;website design services&lt;/a&gt; available at hkinfoway technologies..]]></description>
		<content:encoded><![CDATA[<p>best <a href="https://www.hkinfoway.com/services/web-development-services/" rel="nofollow">website design services</a> available at hkinfoway technologies..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bhavesh Patel</title>
		<link>http://piotrpasich.com/cakephp-with-symfonys2-router/#comment-127</link>
		<dc:creator><![CDATA[Bhavesh Patel]]></dc:creator>
		<pubDate>Wed, 13 Feb 2019 09:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://piotrpasich.com/?p=2533#comment-127</guid>
		<description><![CDATA[Hi Piotr, 
Thanks for this informational post on CakePHP with Symfony’s2 router
I also would like to suggest a post that will help the readers to find an overview of &lt;a href=&quot;https://www.clariontech.com/blog/which-php-framework-is-right-for-your-application&quot; rel=&quot;nofollow&quot;&gt;which php framework is right for their application.&lt;/a&gt;]]></description>
		<content:encoded><![CDATA[<p>Hi Piotr,<br />
Thanks for this informational post on CakePHP with Symfony’s2 router<br />
I also would like to suggest a post that will help the readers to find an overview of <a href="https://www.clariontech.com/blog/which-php-framework-is-right-for-your-application" rel="nofollow">which php framework is right for their application.</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piotr Pasich</title>
		<link>http://piotrpasich.com/cakephp-with-symfonys2-router/#comment-62</link>
		<dc:creator><![CDATA[Piotr Pasich]]></dc:creator>
		<pubDate>Sun, 24 Aug 2014 09:04:27 +0000</pubDate>
		<guid isPermaLink="false">http://piotrpasich.com/?p=2533#comment-62</guid>
		<description><![CDATA[Hi,

If I had any choice I will choose Symfony because this is the main framework which I prefer to use. I know that&#039;s the third version is released and as I think the problem and solution is the same, or isn&#039;t? http://book.cakephp.org/3.0/en/development/routing.html]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>If I had any choice I will choose Symfony because this is the main framework which I prefer to use. I know that&#8217;s the third version is released and as I think the problem and solution is the same, or isn&#8217;t? <a href="http://book.cakephp.org/3.0/en/development/routing.html" rel="nofollow">http://book.cakephp.org/3.0/en/development/routing.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fedor</title>
		<link>http://piotrpasich.com/cakephp-with-symfonys2-router/#comment-56</link>
		<dc:creator><![CDATA[Fedor]]></dc:creator>
		<pubDate>Fri, 22 Aug 2014 20:40:27 +0000</pubDate>
		<guid isPermaLink="false">http://piotrpasich.com/?p=2533#comment-56</guid>
		<description><![CDATA[Why are you talking about cake2 when you should be looking at cake3?]]></description>
		<content:encoded><![CDATA[<p>Why are you talking about cake2 when you should be looking at cake3?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WebCoderPro &#187; Weekly links for PHP developers #6: PHP Podcasts and how to hire PHPers</title>
		<link>http://piotrpasich.com/cakephp-with-symfonys2-router/#comment-53</link>
		<dc:creator><![CDATA[WebCoderPro &#187; Weekly links for PHP developers #6: PHP Podcasts and how to hire PHPers]]></dc:creator>
		<pubDate>Thu, 21 Aug 2014 18:28:39 +0000</pubDate>
		<guid isPermaLink="false">http://piotrpasich.com/?p=2533#comment-53</guid>
		<description><![CDATA[[&#8230;] CakePHP with Symfony’s2 router [&#8230;]]]></description>
		<content:encoded><![CDATA[<p>[&#8230;] CakePHP with Symfony’s2 router [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piotr Pasich: CakePHP with Symfony&#039;s2 router &#124; facebooklikes</title>
		<link>http://piotrpasich.com/cakephp-with-symfonys2-router/#comment-49</link>
		<dc:creator><![CDATA[Piotr Pasich: CakePHP with Symfony&#039;s2 router &#124; facebooklikes]]></dc:creator>
		<pubDate>Wed, 13 Aug 2014 14:51:34 +0000</pubDate>
		<guid isPermaLink="false">http://piotrpasich.com/?p=2533#comment-49</guid>
		<description><![CDATA[[&#8230;] Pasich has a new post to his site today showing you how you can use the Symfony2 router with CakePHP, another popular PHP framework. He talks about some of his own experiences using CakePHP and how [&#8230;]]]></description>
		<content:encoded><![CDATA[<p>[&#8230;] Pasich has a new post to his site today showing you how you can use the Symfony2 router with CakePHP, another popular PHP framework. He talks about some of his own experiences using CakePHP and how [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose Diaz-Gonzalez</title>
		<link>http://piotrpasich.com/cakephp-with-symfonys2-router/#comment-47</link>
		<dc:creator><![CDATA[Jose Diaz-Gonzalez]]></dc:creator>
		<pubDate>Tue, 12 Aug 2014 21:26:42 +0000</pubDate>
		<guid isPermaLink="false">http://piotrpasich.com/?p=2533#comment-47</guid>
		<description><![CDATA[Nice work on the plugin, seemed interesting (I added a question about caching to your issue tracker).

One question, unrelated to your plugin: Where is CakePHP lacking in tests? You mentioned in your post that we&#039;re lacking in tests, yet the core tests are pretty comprehensive [1]. What gives you the idea that this is the case?

[1] https://github.com/cakephp/cakephp/tree/master/lib/Cake/Test/Case]]></description>
		<content:encoded><![CDATA[<p>Nice work on the plugin, seemed interesting (I added a question about caching to your issue tracker).</p>
<p>One question, unrelated to your plugin: Where is CakePHP lacking in tests? You mentioned in your post that we&#8217;re lacking in tests, yet the core tests are pretty comprehensive [1]. What gives you the idea that this is the case?</p>
<p>[1] <a href="https://github.com/cakephp/cakephp/tree/master/lib/Cake/Test/Case" rel="nofollow">https://github.com/cakephp/cakephp/tree/master/lib/Cake/Test/Case</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Today on the PHP Community &#8230; August 12, 2014 &#124; PHP Community Magazine</title>
		<link>http://piotrpasich.com/cakephp-with-symfonys2-router/#comment-46</link>
		<dc:creator><![CDATA[Today on the PHP Community &#8230; August 12, 2014 &#124; PHP Community Magazine]]></dc:creator>
		<pubDate>Tue, 12 Aug 2014 17:31:08 +0000</pubDate>
		<guid isPermaLink="false">http://piotrpasich.com/?p=2533#comment-46</guid>
		<description><![CDATA[[&#8230;] CakePHP with Symfony’s2 router [&#8230;]]]></description>
		<content:encoded><![CDATA[<p>[&#8230;] CakePHP with Symfony’s2 router [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piotr Pasich</title>
		<link>http://piotrpasich.com/cakephp-with-symfonys2-router/#comment-42</link>
		<dc:creator><![CDATA[Piotr Pasich]]></dc:creator>
		<pubDate>Tue, 12 Aug 2014 12:06:51 +0000</pubDate>
		<guid isPermaLink="false">http://piotrpasich.com/?p=2533#comment-42</guid>
		<description><![CDATA[David, 
your example is good. I cannot fight with that. My point was not to pass all parameters (as in your example) to every single link - &#039;echo $this-&gt;Html-&gt;link(‘View post’, [&#039;controller&#039; =&gt; &#039;blogs&#039;, &#039;action&#039; =&gt; &#039;post&#039;, &#039;slug&#039; =&gt; $blog[&#039;Post&#039;][&#039;id&#039;]]);&#039; should be called without controller, action and template. I want to pass there really, really mandatory &quot;slug&quot;. 

So if the CakePHP has an option to create an url and call it by echo `$this-&gt;Html-&gt;link(‘View post’, &#039;blog_post&#039;, [&#039;slug&#039;=&gt;$blog[&#039;Post&#039;][&#039;slug&#039;]]);` then I&#039;m ok. 

Piotr]]></description>
		<content:encoded><![CDATA[<p>David,<br />
your example is good. I cannot fight with that. My point was not to pass all parameters (as in your example) to every single link &#8211; &#8216;echo $this->Html->link(‘View post’, [&#8216;controller&#8217; => &#8216;blogs&#8217;, &#8216;action&#8217; => &#8216;post&#8217;, &#8216;slug&#8217; => $blog[&#8216;Post&#8217;][&#8216;id&#8217;]]);&#8217; should be called without controller, action and template. I want to pass there really, really mandatory &#8220;slug&#8221;. </p>
<p>So if the CakePHP has an option to create an url and call it by echo `$this->Html->link(‘View post’, &#8216;blog_post&#8217;, [&#8216;slug&#8217;=>$blog[&#8216;Post&#8217;][&#8216;slug&#8217;]]);` then I&#8217;m ok. </p>
<p>Piotr</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://piotrpasich.com/cakephp-with-symfonys2-router/#comment-41</link>
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Tue, 12 Aug 2014 12:00:03 +0000</pubDate>
		<guid isPermaLink="false">http://piotrpasich.com/?p=2533#comment-41</guid>
		<description><![CDATA[Great idea to bridge the two components. I&#039;m confused by your example route though. What is it actually supposed to do? Why is slug defined if it&#039;s a routing token?

If I assumed that it was to view a blog post I would create a route like: 
`Router::connect(&#039;/blog/:slug&#039;, [&#039;controller&#039; =&gt; &#039;blogs&#039;, &#039;action&#039; =&gt; &#039;post&#039;], [&#039;slug&#039; =&gt; &#039;[a-z0-9-]+&#039;, &#039;pass&#039; =&gt; [&#039;slug&#039;]);`

Then in your `BlogsController::post($slug)` method you would get the slug as a passed parameter. To create a link to view this post I would create a link as `echo $this-&gt;Html-&gt;link(&#039;View post&#039;, [&#039;controller&#039; =&gt; &#039;blogs&#039;, &#039;action&#039; =&gt; &#039;post&#039;, &#039;slug&#039; =&gt; $blog[&#039;Post&#039;][&#039;id&#039;]]);`]]></description>
		<content:encoded><![CDATA[<p>Great idea to bridge the two components. I&#8217;m confused by your example route though. What is it actually supposed to do? Why is slug defined if it&#8217;s a routing token?</p>
<p>If I assumed that it was to view a blog post I would create a route like:<br />
`Router::connect(&#8216;/blog/:slug&#8217;, [&#8216;controller&#8217; =&gt; &#8216;blogs&#8217;, &#8216;action&#8217; =&gt; &#8216;post&#8217;], [&#8216;slug&#8217; =&gt; &#8216;[a-z0-9-]+&#8217;, &#8216;pass&#8217; =&gt; [&#8216;slug&#8217;]);`</p>
<p>Then in your `BlogsController::post($slug)` method you would get the slug as a passed parameter. To create a link to view this post I would create a link as `echo $this-&gt;Html-&gt;link(&#8216;View post&#8217;, [&#8216;controller&#8217; =&gt; &#8216;blogs&#8217;, &#8216;action&#8217; =&gt; &#8216;post&#8217;, &#8216;slug&#8217; =&gt; $blog[&#8216;Post&#8217;][&#8216;id&#8217;]]);`</p>
]]></content:encoded>
	</item>
</channel>
</rss>
