<?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>Techy Things &#187; slimphp</title>
	<atom:link href="https://tech.yipp.ca/category/slimphp/feed/" rel="self" type="application/rss+xml" />
	<link>https://tech.yipp.ca</link>
	<description>Just another Yipp.ca Blogs site</description>
	<lastBuildDate>Thu, 01 May 2025 18:06:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>Render sub template inside a existing slim template (canonical or embedded templates)</title>
		<link>https://tech.yipp.ca/slim/render-sub-template-inside-existing-slim-template-canonical-embedded-templates/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=render-sub-template-inside-existing-slim-template-canonical-embedded-templates</link>
		<comments>https://tech.yipp.ca/slim/render-sub-template-inside-existing-slim-template-canonical-embedded-templates/#comments</comments>
		<pubDate>Tue, 12 Oct 2021 00:10:05 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[slim]]></category>
		<category><![CDATA[slimphp]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=4088</guid>
		<description><![CDATA[<p>Solution $this->fetch('template.phtml', ["variable_name"=>$some_value, ...]) Example</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/slim/render-sub-template-inside-existing-slim-template-canonical-embedded-templates/">Render sub template inside a existing slim template (canonical or embedded templates)</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h2>Solution</h2>
<p>$this->fetch('template.phtml', ["variable_name"=>$some_value, ...])</p>
<h3>Example</h3>
<p><code>
<pre>
<?=$this->fetch('finances-amortissement.phtml', ["header" => $amortissementTable[0], "table" => array_slice($amortissementTable,1)]) ?>
</pre>
<p></code></p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/slim/render-sub-template-inside-existing-slim-template-canonical-embedded-templates/">Render sub template inside a existing slim template (canonical or embedded templates)</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/slim/render-sub-template-inside-existing-slim-template-canonical-embedded-templates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Build a Slim PHP 3 webapp with social logins and emails</title>
		<link>https://tech.yipp.ca/slimphp/slim-php-3-startup-app-social-logins/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=slim-php-3-startup-app-social-logins</link>
		<comments>https://tech.yipp.ca/slimphp/slim-php-3-startup-app-social-logins/#comments</comments>
		<pubDate>Mon, 01 May 2017 01:02:19 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[slimphp]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=2789</guid>
		<description><![CDATA[<p>Prerequisites PHP 5.6+ Edit php.ini always_populate_raw_post_data = -1 Uncomment extension=php_curl.dll extension=php_mbstring.dll extension=php_mysql.dll extension=php_mysqli.dll extension=php_pdo_mysql.dll extension=php_openssl.dll Composer Linux&#62; curl -sS https://getcomposer.org/installer &#124; php Windows&#62; Download &#38; Install Composer-Setup.exe Development Cycle Windows&#62; php -S 127.0.0.1:8080 -t&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/slimphp/slim-php-3-startup-app-social-logins/">Build a Slim PHP 3 webapp with social logins and emails</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h2>Prerequisites</h2>
<ul>
<li>
<h3><strong>PHP 5.6+</strong></h3>
<p><em>Edit php.ini</em><br />
always_populate_raw_post_data = -1<br />
<em>Uncomment</em><br />
extension=php_curl.dll<br />
extension=php_mbstring.dll<br />
extension=php_mysql.dll<br />
extension=php_mysqli.dll<br />
extension=php_pdo_mysql.dll<br />
extension=php_openssl.dll</li>
<li>
<h3><strong>Composer</strong></h3>
<p><strong>Linux&gt;</strong> curl -sS https://getcomposer.org/installer | php<br />
<strong>Windows&gt;</strong> <em>Download &amp; Install</em> <a href="https://getcomposer.org/Composer-Setup.exe">Composer-Setup.exe</a></li>
</ul>
<h2>Development Cycle</h2>
<p>Windows&gt; php -S 127.0.0.1:8080 -t public_html public_html/index.php</p>
<h2>Setup Emails</h2>
<p>Follow <a href="https://github.com/SparkPost/php-sparkpost" target="_blank">https://github.com/SparkPost/php-sparkpost</a></p>
<h2>Troubleshooting</h2>
<h4>PDOException “could not find driver”</h4>
<p>You forgot to uncomment extension=php_pdo_mysql.dll in php.ini. See <a href="http://stackoverflow.com/questions/2852748/pdoexception-could-not-find-driver" target="_blank">this thread</a> on StackOverflow</p>
<h4>storage not found</h4>
<p><a href="http://tech.yipp.ca/files/2017/05/hybridaut-failure-store.png"><img class="alignnone size-full wp-image-2799" src="http://tech.yipp.ca/files/2017/05/hybridaut-failure-store.png" alt="hybridaut-failure-store" width="663" height="237" /></a></p>
<p>Redirects not working</p>
<p>&nbsp;</p>
<pre><span style="color: #ff0000;">#bad</span>
<span style="color: #ff0000;">$app-&gt;get('/login/[{provider}]', function($request, $response, $args) use ($app)
{</span>
<span style="color: #ff0000;">  (...)</span>
<span style="color: #ff0000;">  $response-&gt;withHeader('Location', '/welcome/');</span>
<span style="color: #ff0000;">}</span></pre>
<pre><span style="color: #ff0000;">#closer but still not working</span>
<span style="color: #ff0000;">$app-&gt;get('/login/[{provider}]', function($request, $response, $args) use ($app)
{</span>
<span style="color: #ff0000;">  (...)</span>
<span style="color: #ff0000;">  $response-&gt;withHeader('Location', '/welcome/');</span>
<span style="color: #ff0000;">  return $response;</span>
<span style="color: #ff0000;">}</span></pre>
<pre><span style="color: #008000;">#good</span>
<span style="color: #008000;">$app-&gt;get('/login/[{provider}]', function($request, $response, $args) use ($app)
{</span>
<span style="color: #008000;">  (...)</span>
<span style="color: #008000;">  return $response-&gt;withHeader('Location', '/welcome/');</span>
<span style="color: #008000;">}

</span></pre>
<pre><strong>php-http/client-implementation ^1.0 -&gt; no matching package found</strong></pre>
<pre>&gt;composer require sparkpost/sparkpost
Using version ^2.1 for sparkpost/sparkpost
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

 Problem 1
 - Installation request for sparkpost/sparkpost ^2.1 -&gt; satisfiable by sparkpost/sparkpost[2.1.0].
 - sparkpost/sparkpost 2.1.0 requires php-http/client-implementation ^1.0 -&gt; no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
 see &lt;https://getcomposer.org/doc/04-schema.md#minimum-stability&gt; for more details.

Solution :
You need to install both<code> guzzlehttp/guzzle and </code><code>php-http/guzzle6-adapter</code></pre>
<pre><code>$&gt; composer require </code><code>guzzlehttp/guzzle</code></pre>
<p><code>$&gt; composer require php-http/guzzle6-adapter<br />
</code><code><br />
then retry</code></p>
<pre>$&gt; composer require sparkpost/sparkpost</pre>
<pre><code> </code></pre>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/slimphp/slim-php-3-startup-app-social-logins/">Build a Slim PHP 3 webapp with social logins and emails</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/slimphp/slim-php-3-startup-app-social-logins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
