<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 22:27:12 +0000</lastBuildDate>
    <item>
      <title>(PHP) Zend Framework: Bootstrapping Zend_Log (log to firebug) - jiewmeng</title>
      <link>https://snipplr.com/view/39081/zend-framework-bootstrapping-zendlog-log-to-firebug</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 15 Aug 2010 00:06:30 UTC</pubDate>
      <guid>https://snipplr.com/view/39081/zend-framework-bootstrapping-zendlog-log-to-firebug</guid>
    </item>
    <item>
      <title>(PHP) Zend Framework: Get bootstrap resource from anywhere in application - jiewmeng</title>
      <link>https://snipplr.com/view/38967/zend-framework-get-bootstrap-resource-from-anywhere-in-application</link>
      <description>&lt;p&gt;referenced: [stack overflow](http://stackoverflow.com/questions/3325481/zend-framework-get-bootstrap-resource-from-anywhere-in-application/3328384#3328384)&lt;/p&gt;</description>
      <pubDate>Thu, 12 Aug 2010 13:54:23 UTC</pubDate>
      <guid>https://snipplr.com/view/38967/zend-framework-get-bootstrap-resource-from-anywhere-in-application</guid>
    </item>
    <item>
      <title>(PHP) Integrating Zend Framework 1.10 with Doctrine 2 (using Doctrine's Autoloader) - jiewmeng</title>
      <link>https://snipplr.com/view/38628/integrating-zend-framework-110-with-doctrine-2-using-doctrines-autoloader</link>
      <description>&lt;p&gt;an alternative to a previous method i did using Zend Framework's autoloaders only. this method uses Doctrine's autoloaders for doctrine's classes and Zend's for Zend's :) &#13;
&#13;
i think the difficulty i had was autoloading from a specific directory (with just Zend's autoloaders). eg. in Doctrine autoloaders i will do&#13;
&#13;
    new Doctrine\Common\ClassLoader(&#13;
	    'Application\Models', &#13;
		APPLICATION_PATH . '/models'&#13;
	);&#13;
	&#13;
where the 2nd param is the path to find the classes. basically, &#13;
&#13;
- we create a resource method in `bootstrap.php`. &#13;
- in it, we setup doctrine in a similar way to how the doctrine sandbox sets it up. to setup autoloading of doctrine's classes, as we create new doctrine class loaders, we push them into the zend's autoloader.&#13;
- then its basically the same as the sandbox app, setting up caches, metadata drivers, proxies etc.&lt;/p&gt;</description>
      <pubDate>Fri, 06 Aug 2010 21:14:20 UTC</pubDate>
      <guid>https://snipplr.com/view/38628/integrating-zend-framework-110-with-doctrine-2-using-doctrines-autoloader</guid>
    </item>
    <item>
      <title>(PHP) Zend Framework: After logout, redirect the user to the page he came from - jiewmeng</title>
      <link>https://snipplr.com/view/37948/zend-framework-after-logout-redirect-the-user-to-the-page-he-came-from</link>
      <description>&lt;p&gt;on 2nd thought, if a user logged out from a page only for logged in user, he will see a message stating he needs to login or similar, not ideal ... &#13;
&#13;
technical implementation: &#13;
&#13;
- use a view helper&#13;
- register the helper in bootstrap&#13;
- use view helper in view scripts&lt;/p&gt;</description>
      <pubDate>Tue, 27 Jul 2010 21:02:53 UTC</pubDate>
      <guid>https://snipplr.com/view/37948/zend-framework-after-logout-redirect-the-user-to-the-page-he-came-from</guid>
    </item>
    <item>
      <title>(PHP) Zend Framework: Having forms redirect back to page user came from - jiewmeng</title>
      <link>https://snipplr.com/view/37945/zend-framework-having-forms-redirect-back-to-page-user-came-from</link>
      <description>&lt;p&gt;redirecting back to where the user came from is a very common functionality in login forms. &#13;
&#13;
technical implementation: &#13;
&#13;
- have a hidden field (`returnUrl`)&#13;
- populated by current url (in Zend Framework, i get this using the request's `getRequestUri()` function)&#13;
- in the `AuthController`, if the `returnUrl` field is set, i will redirect the user to that page using the `Redirector` helper.&lt;/p&gt;</description>
      <pubDate>Tue, 27 Jul 2010 20:53:58 UTC</pubDate>
      <guid>https://snipplr.com/view/37945/zend-framework-having-forms-redirect-back-to-page-user-came-from</guid>
    </item>
    <item>
      <title>(PHP) Integrating Zend Framework 1.10 with Doctrine 2 - jiewmeng</title>
      <link>https://snipplr.com/view/37944/integrating-zend-framework-110-with-doctrine-2</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 27 Jul 2010 20:42:58 UTC</pubDate>
      <guid>https://snipplr.com/view/37944/integrating-zend-framework-110-with-doctrine-2</guid>
    </item>
    <item>
      <title>(PHP) Zend Form: Customized to include honeyot anti-bot measure and other functionality - jiewmeng</title>
      <link>https://snipplr.com/view/37943/zend-form-customized-to-include-honeyot-antibot-measure-and-other-functionality</link>
      <description>&lt;p&gt;in this custom `Zend_Form`, i added the following customizations\r\n\r\n -  customized default decorators\r\n -  added functions to set values of inputs (mainly for request params)\\r\\n- added honey pot anti-bot measure (see `__construct()`)\r\n - messenging functionality - simply rendering out `div`s with a css class and the message inside\r\n\r\ncode includes \r\n - the custom form abstract class\r\n - honey pot validator\r\n - FormMessages decorator&lt;/p&gt;</description>
      <pubDate>Tue, 27 Jul 2010 20:36:07 UTC</pubDate>
      <guid>https://snipplr.com/view/37943/zend-form-customized-to-include-honeyot-antibot-measure-and-other-functionality</guid>
    </item>
    <item>
      <title>(PHP) Custom Zend_Form: Changed Decorators &amp; added methods - jiewmeng</title>
      <link>https://snipplr.com/view/37906/custom-zendform-changed-decorators--added-methods</link>
      <description>&lt;p&gt;2 main objectives:&#13;
&#13;
- change default decorators of element and form&#13;
- `setValues()` mainly used for persisting form entry from request params across requests&lt;/p&gt;</description>
      <pubDate>Mon, 26 Jul 2010 19:23:43 UTC</pubDate>
      <guid>https://snipplr.com/view/37906/custom-zendform-changed-decorators--added-methods</guid>
    </item>
    <item>
      <title>(PHP) Zend Framework: Zend View Action Helpers - jiewmeng</title>
      <link>https://snipplr.com/view/37817/zend-framework-zend-view-action-helpers</link>
      <description>&lt;p&gt;Zend View Action Helpers allows you to include output from another controller action into the current output.&lt;/p&gt;</description>
      <pubDate>Fri, 23 Jul 2010 21:26:50 UTC</pubDate>
      <guid>https://snipplr.com/view/37817/zend-framework-zend-view-action-helpers</guid>
    </item>
    <item>
      <title>(PHP) Zend Framework: Partials - jiewmeng</title>
      <link>https://snipplr.com/view/37815/zend-framework-partials</link>
      <description>&lt;p&gt;`article.phtml` looked up in `views/scripts` by default. \r\n\r\ncan use `$this-&gt;partial(\"blog/article.phtml\", array(...))` to look for it in the `views/scripts/blog` folder too&lt;/p&gt;</description>
      <pubDate>Fri, 23 Jul 2010 21:18:01 UTC</pubDate>
      <guid>https://snipplr.com/view/37815/zend-framework-partials</guid>
    </item>
    <item>
      <title>(PHP) Zend Framework: Setup Zend Navigation - jiewmeng</title>
      <link>https://snipplr.com/view/37814/zend-framework-setup-zend-navigation</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 23 Jul 2010 20:11:32 UTC</pubDate>
      <guid>https://snipplr.com/view/37814/zend-framework-setup-zend-navigation</guid>
    </item>
    <item>
      <title>(PHP) Zend Framework: Disable Layout - jiewmeng</title>
      <link>https://snipplr.com/view/37813/zend-framework-disable-layout</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 23 Jul 2010 20:07:24 UTC</pubDate>
      <guid>https://snipplr.com/view/37813/zend-framework-disable-layout</guid>
    </item>
  </channel>
</rss>
