<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>twig Archives - Belchamber Web Tools, AI Guidance &amp; Code</title>
	<atom:link href="https://tools.belchamber.us/tag/twig/feed/" rel="self" type="application/rss+xml" />
	<link>https://tools.belchamber.us/tag/twig/</link>
	<description>Aaron Belchamber: AI-Centric Senior Cloud Software Engineer - Jacksonville FL</description>
	<lastBuildDate>Sun, 30 Jul 2017 11:35:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
<site xmlns="com-wordpress:feed-additions:1">99928718</site>	<item>
		<title>Symfony &#038; Twig: Simple month and year form selection widget</title>
		<link>https://tools.belchamber.us/symfony-twig-simple-month-and-year-form-selection-widget/</link>
					<comments>https://tools.belchamber.us/symfony-twig-simple-month-and-year-form-selection-widget/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Tue, 26 Jan 2016 15:37:39 +0000</pubDate>
				<category><![CDATA[Symfony, Twig, Doctrine & ORMs]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[twig]]></category>
		<guid isPermaLink="false">https://tools.belchamber.us/?p=999</guid>

					<description><![CDATA[<p>This is a very useful Twig that I use in a lot of different forms.  I attach a listener and when they click &#8220;Update&#8221; it will redirect the user by appending the URL with the /year/month to hook nice and cleanly in built-in routes to pass the year and month into different controllers. &#60;form id="yearMonthWidget" [&#8230;]</p>
<p>The post <a href="https://tools.belchamber.us/symfony-twig-simple-month-and-year-form-selection-widget/">Symfony &#038; Twig: Simple month and year form selection widget</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/symfony-twig-simple-month-and-year-form-selection-widget/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">999</post-id>	</item>
		<item>
		<title>Symfony Twig:  Accessing global values reference</title>
		<link>https://tools.belchamber.us/symfony-twig-accessing-global-values-reference/</link>
					<comments>https://tools.belchamber.us/symfony-twig-accessing-global-values-reference/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Sun, 06 Dec 2015 16:43:00 +0000</pubDate>
				<category><![CDATA[Twig & Doctrine]]></category>
		<category><![CDATA[php developer]]></category>
		<category><![CDATA[symfony tips]]></category>
		<category><![CDATA[twig]]></category>
		<guid isPermaLink="false">http://tools.belchamber.us/?p=967</guid>

					<description><![CDATA[<p>Here is a reference list to access global values within Twig: For $_POST variables use this : {{ app.request.parameter.get("page") }} For $_GET variables use this : {{ app.request.query.get("page") }} For $_COOKIE variables use this : {{ app.request.cookies.get("page") }} For $_SESSION variables use this : {{ app.request.session.get("page") }} For more Symfony Twig shortcuts, view the Twig [&#8230;]</p>
<p>The post <a href="https://tools.belchamber.us/symfony-twig-accessing-global-values-reference/">Symfony Twig:  Accessing global values reference</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/symfony-twig-accessing-global-values-reference/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">967</post-id>	</item>
		<item>
		<title>Extending a Symfony parent Twig block in child view&#8217;s block with parent() call easy, useful and DRY</title>
		<link>https://tools.belchamber.us/extending-a-symfony-parent-twig-block-in-child-views-block-with-parent-call-easy-useful-and-dry/</link>
					<comments>https://tools.belchamber.us/extending-a-symfony-parent-twig-block-in-child-views-block-with-parent-call-easy-useful-and-dry/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Sun, 19 Jul 2015 17:59:08 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Symfony, Twig, Doctrine & ORMs]]></category>
		<category><![CDATA[php developer]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[symfony tips]]></category>
		<category><![CDATA[twig]]></category>
		<category><![CDATA[web development tips]]></category>
		<guid isPermaLink="false">http://tools.belchamber.us/?p=877</guid>

					<description><![CDATA[<p>Twig blocks are like methods in a class.  If the Twig container is a class, Twig blocks are methods.  So you can call on a parent Twig view and extend the parent just like a function using the &#8220;parent()&#8221; function like below within the dynamic content tags, which are a pair of squiggly brackets.  Here&#8217;s [&#8230;]</p>
<p>The post <a href="https://tools.belchamber.us/extending-a-symfony-parent-twig-block-in-child-views-block-with-parent-call-easy-useful-and-dry/">Extending a Symfony parent Twig block in child view&#8217;s block with parent() call easy, useful and DRY</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/extending-a-symfony-parent-twig-block-in-child-views-block-with-parent-call-easy-useful-and-dry/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">877</post-id>	</item>
		<item>
		<title>Accessing Symfony global and server variables in Twig views through the &#8220;app&#8221; variable</title>
		<link>https://tools.belchamber.us/accessing-symfony-global-and-server-variables-in-twig-views-through-the-app-variable/</link>
					<comments>https://tools.belchamber.us/accessing-symfony-global-and-server-variables-in-twig-views-through-the-app-variable/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Wed, 10 Jun 2015 11:31:55 +0000</pubDate>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Twig & Doctrine]]></category>
		<category><![CDATA[php framework]]></category>
		<category><![CDATA[php tips]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[twig]]></category>
		<guid isPermaLink="false">http://tools.belchamber.us/?p=843</guid>

					<description><![CDATA[<p>In Symfony, you don&#8217;t always have to actually pass values from your controllers to your Twig views.  Twig can actually pull global and server values directly through the super global &#8220;app&#8221; variable.  Most frequently, you can access these corresponding objects like Kernel, Request, Security and Session variables like so: {{app.kernel.cachedir}} {{app.kernel.logdir}} {{app.kernel.rootdir}} {{app.request.basepath}} {{app.request.baseurl}} {{app.request.uri}} [&#8230;]</p>
<p>The post <a href="https://tools.belchamber.us/accessing-symfony-global-and-server-variables-in-twig-views-through-the-app-variable/">Accessing Symfony global and server variables in Twig views through the &#8220;app&#8221; variable</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/accessing-symfony-global-and-server-variables-in-twig-views-through-the-app-variable/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">843</post-id>	</item>
		<item>
		<title>Symfony Twig view conditionally shows current username of user logged in</title>
		<link>https://tools.belchamber.us/symfony-twig-view-conditionally-shows-current-username-of-user-logged-in/</link>
					<comments>https://tools.belchamber.us/symfony-twig-view-conditionally-shows-current-username-of-user-logged-in/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Tue, 28 Apr 2015 23:50:52 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Symfony, Twig, Doctrine & ORMs]]></category>
		<category><![CDATA[fosuserbundle]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[twig]]></category>
		<guid isPermaLink="false">http://tools.belchamber.us/?p=801</guid>

					<description><![CDATA[<p>Here is a quick way to access the user object from the Symfony user or the FOSUserBundle.  In this Twig example below is a conditional statement that if the user is authenticated and has a role, it will display &#8220;Hi Aaron Belchamber&#8221; or whatever the user&#8217;s name is. {% if is_granted("ROLE") %} Hi {{ app.user.username [&#8230;]</p>
<p>The post <a href="https://tools.belchamber.us/symfony-twig-view-conditionally-shows-current-username-of-user-logged-in/">Symfony Twig view conditionally shows current username of user logged in</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/symfony-twig-view-conditionally-shows-current-username-of-user-logged-in/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">801</post-id>	</item>
		<item>
		<title>Conditionally show content in Symfony Twig views based on user&#8217;s IP address</title>
		<link>https://tools.belchamber.us/conditionally-show-content-in-symfony-twig-views-based-on-users-ip-address/</link>
					<comments>https://tools.belchamber.us/conditionally-show-content-in-symfony-twig-views-based-on-users-ip-address/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Fri, 24 Apr 2015 00:53:49 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Symfony, Twig, Doctrine & ORMs]]></category>
		<category><![CDATA[php tips]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[twig]]></category>
		<category><![CDATA[web development]]></category>
		<guid isPermaLink="false">http://tools.belchamber.us/?p=796</guid>

					<description><![CDATA[<p>Using your views with basic conditional logic that will show different content based on global values like a user&#8217;s IP address or their incoming referrer address is easy through &#8220;the app.request.server&#8221; object.  You don&#8217;t need to involve your controller to produce basic web page behaviors, especially those that are global in nature you&#8217;d normally use [&#8230;]</p>
<p>The post <a href="https://tools.belchamber.us/conditionally-show-content-in-symfony-twig-views-based-on-users-ip-address/">Conditionally show content in Symfony Twig views based on user&#8217;s IP address</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/conditionally-show-content-in-symfony-twig-views-based-on-users-ip-address/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">796</post-id>	</item>
		<item>
		<title>How to show or access cookie values in Symfony Twig views</title>
		<link>https://tools.belchamber.us/how-to-show-or-access-cookie-values-in-symfony-twig-views/</link>
					<comments>https://tools.belchamber.us/how-to-show-or-access-cookie-values-in-symfony-twig-views/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Thu, 02 Apr 2015 15:09:39 +0000</pubDate>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Twig & Doctrine]]></category>
		<category><![CDATA[aaron belchamber]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php framework]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[symfony tips]]></category>
		<category><![CDATA[twig]]></category>
		<category><![CDATA[twig snippets]]></category>
		<guid isPermaLink="false">http://tools.belchamber.us/?p=763</guid>

					<description><![CDATA[<p>Strange how obscure it is to find a clear example of how to just access or show the value of a cookie in Twig, so here it is! {{ app.request.cookies.get('yourCookieHere') }} Twig is the templating engine that powers Symfony views.  Symfony is the PHP framework from Sensio Labs. If you are a company that uses [&#8230;]</p>
<p>The post <a href="https://tools.belchamber.us/how-to-show-or-access-cookie-values-in-symfony-twig-views/">How to show or access cookie values in Symfony Twig views</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/how-to-show-or-access-cookie-values-in-symfony-twig-views/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">763</post-id>	</item>
		<item>
		<title>Looping through all request variables in a Symfony Twig view</title>
		<link>https://tools.belchamber.us/looping-through-all-request-variables-in-a-symfony-twig-view/</link>
					<comments>https://tools.belchamber.us/looping-through-all-request-variables-in-a-symfony-twig-view/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Thu, 26 Mar 2015 14:23:11 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Symfony, Twig, Doctrine & ORMs]]></category>
		<category><![CDATA[aaron belchamber]]></category>
		<category><![CDATA[php framework]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[symfony tips]]></category>
		<category><![CDATA[symfony twig]]></category>
		<category><![CDATA[twig]]></category>
		<guid isPermaLink="false">http://tools.belchamber.us/?p=758</guid>

					<description><![CDATA[<p>Here is a quick way to access all request variables and output them in a Symfony Twig view: {% for request in app.request.query.all %} {{ request&#124;raw }}&#60;br/&#62; {% endfor %} &#160;</p>
<p>The post <a href="https://tools.belchamber.us/looping-through-all-request-variables-in-a-symfony-twig-view/">Looping through all request variables in a Symfony Twig view</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/looping-through-all-request-variables-in-a-symfony-twig-view/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">758</post-id>	</item>
		<item>
		<title>Symfony Framework:  Calling on other controllers from your TWIG views handy and efficient</title>
		<link>https://tools.belchamber.us/symfony-framework-calling-on-other-controllers-from-your-twig-views-handy-and-efficient/</link>
					<comments>https://tools.belchamber.us/symfony-framework-calling-on-other-controllers-from-your-twig-views-handy-and-efficient/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Thu, 19 Mar 2015 11:31:14 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Symfony, Twig, Doctrine & ORMs]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php framework]]></category>
		<category><![CDATA[Sensio Labs]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[symfony tips]]></category>
		<category><![CDATA[twig]]></category>
		<category><![CDATA[web development tips]]></category>
		<guid isPermaLink="false">http://tools.belchamber.us/?p=750</guid>

					<description><![CDATA[<p>In the newest versions of Symfony greater than 2.2 you can embed output from controller by calling it with this handy TWIG snippet: {{ render(controller('PostBundle:Posts:recentPosts', { 'category': 'cool symfony tips' })) }} Check out Sensio Lab&#8217;s documentation to learn more. This is especially useful if you want to create a snippet that will deliver content [&#8230;]</p>
<p>The post <a href="https://tools.belchamber.us/symfony-framework-calling-on-other-controllers-from-your-twig-views-handy-and-efficient/">Symfony Framework:  Calling on other controllers from your TWIG views handy and efficient</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/symfony-framework-calling-on-other-controllers-from-your-twig-views-handy-and-efficient/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">750</post-id>	</item>
		<item>
		<title>Accessing dynamic field names in Symfony&#8217;s TWIG using attribute and the tilde(~)</title>
		<link>https://tools.belchamber.us/accessing-dynamic-field-names-symfonys-twig-using-attribute-tilde/</link>
					<comments>https://tools.belchamber.us/accessing-dynamic-field-names-symfonys-twig-using-attribute-tilde/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Tue, 27 Jan 2015 04:09:33 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Symfony, Twig, Doctrine & ORMs]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php framework]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[symfony tips]]></category>
		<category><![CDATA[twig]]></category>
		<guid isPermaLink="false">http://tools.belchamber.us/?p=701</guid>

					<description><![CDATA[<p>At last, a framework has finally given the tilde (~) a little respect. Hash tag (#) usually gets all the glory, but not this time!  Not is in this case.  Granted, the tilde might be happy to be used at all and chances are, this obscure solution to another view issue doesn&#8217;t mean tilde&#8217;s ready [&#8230;]</p>
<p>The post <a href="https://tools.belchamber.us/accessing-dynamic-field-names-symfonys-twig-using-attribute-tilde/">Accessing dynamic field names in Symfony&#8217;s TWIG using attribute and the tilde(~)</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/accessing-dynamic-field-names-symfonys-twig-using-attribute-tilde/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">701</post-id>	</item>
	</channel>
</rss>
