<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Zendcasts Forum / Other Frameworks]]></title>
		<link>http://www.zendcasts.com/forum/index.php</link>
		<description><![CDATA[The most recent topics at Zendcasts Forum.]]></description>
		<lastBuildDate>Thu, 18 Nov 2010 21:23:42 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Mixing framewroks together ?!]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=270&amp;action=new</link>
			<description><![CDATA[<p>Hi,</p><p>Thank from Samuel for reply and make sure me another time ZF is the best <img src="http://www.zendcasts.com/forum/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>I not know so much about Cake but when I read 1 book of Cakephp and over 3 book of ZF, I think about that Idea to mix them and make an easy and powerfull framewrok.</p><p>Beacuse I don;t know about each of them and also don&#039;t have an old code for each one I think for first project ut takr time but it worth the time to one time for always I work on ZF and make it for myself <img src="http://www.zendcasts.com/forum/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Video of this site helo me alot also, thanks</p>]]></description>
			<author><![CDATA[dummy@example.com (IranPHPMAster)]]></author>
			<pubDate>Thu, 18 Nov 2010 21:23:42 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=270&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Playing Nice with Zend]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=25&amp;action=new</link>
			<description><![CDATA[<p>Thanks for mentioning it Edward <img src="http://www.zendcasts.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Jon Lebensold)]]></author>
			<pubDate>Mon, 16 Aug 2010 08:23:09 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=25&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Wordpress?]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=148&amp;action=new</link>
			<description><![CDATA[<p>I am one of those who absolutely LOVE wordpress. I have worked a lot with it and I am used to the way it works. It probably have a lot of shortcomings, I can&#039;t see them, but I&#039;m sure you guys do. Would be interesting to hear them. <img src="http://www.zendcasts.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>There is a saying about the right tool for the right job. So I&#039;m sure Zend kicks WordPress ass where there is special needs, but it wordpress easy to use and deploy but the same time have some advanced features. For most web pages wordpress does the trick and if you need some extra stuff you could always make a plugin. </p><p>It&#039;s probably just me, but I feel that doing something custom with Zend require a lot of work and then there is the thing about making yet another cms/system/whatever it might be when theres a lot of good alternatives. I guess I would understand if it was for the challenge or something like that, but that is probably not the case in an enterprise environment.</p><p>One very defining thing is who difficult it is to work with. I&#039;m pretty sure every novice PHP developer could understand wordpress relatively easy and start messing around with it. Maybe even make plugins. The learning curve for Zend is a lot steeper (is my experienced at least).&#160; I feel like come from the opposite place of you, iznogood. Going from WP to Zend and you the other way?</p><p>I have no need to hide that I am a wordpress fanboy, that being said Zend looks awesome and want to get to know it. At the moment, for me wordpress and Zend isn&#039;t competing. I feel like they cover different ground.</p><p>But yeah, the part where all the stuff you have changed disappears on update, is not cool.</p><p>What do you mean with &quot;The fact the client can destroy everything if he wants from his cms. &quot; Are you thinking about the editor?</p><p>This post became a little longer than I initially thought it would be <img src="http://www.zendcasts.com/forum/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<author><![CDATA[dummy@example.com (harri)]]></author>
			<pubDate>Wed, 05 May 2010 03:16:37 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=148&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Bootstrapping Doctrine in Zend 1.8 or 1.9]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=26&amp;action=new</link>
			<description><![CDATA[<p>Hi Jon,</p><p>your article was indeed very helpful. Doctrine works like a charm now.</p><p>I made some improvements/changes to your sourcecode however... maybe you find them useful. </p><p>Method in the Bootstrap class:<br />[code=php]<br />protected function _initDoctrine()<br />&#160; &#160; {<br />&#160; &#160; &#160; &#160;// get options from application.ini rather than defining all paths in the bootstrap class again<br />&#160; &#160; &#160; &#160; $options = $this-&gt;getOptions();<br />&#160; &#160; &#160; &#160; <br />&#160; &#160; &#160; &#160; if ( !isset( $options[&#039;doctrine&#039;][&#039;connection_string&#039;] ) ) {<br />&#160; &#160; &#160; &#160; &#160; &#160; // doctrine not needed at all...<br />&#160; &#160; &#160; &#160; &#160; &#160; return ;<br />&#160; &#160; &#160; &#160; }<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <br />&#160; &#160; &#160; &#160; require_once &#039;Doctrine/Doctrine.php&#039;;</p><p>&#160; &#160; &#160; &#160; spl_autoload_register(array(&#039;Doctrine&#039;, &#039;autoload&#039;));<br />&#160; &#160; &#160; &#160; <br />&#160; &#160; &#160; &#160; $manager = Doctrine_Manager::getInstance();<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <br />&#160; &#160; &#160; &#160; $connection = $manager-&gt;connection( $options[&#039;doctrine&#039;][&#039;connection_string&#039;] );<br />&#160; &#160; &#160; &#160; $connection-&gt;setCharset(&#039;UTF8&#039;);<br />&#160; &#160; &#160; &#160; <br />&#160; &#160; &#160; &#160; $manager-&gt;setAttribute( Doctrine::ATTR_MODEL_LOADING, Doctrine::MODEL_LOADING_CONSERVATIVE );<br />&#160; &#160; &#160; &#160; <br />&#160; &#160; &#160; &#160; // if models_path is not set, assume it&#039;s in application/models<br />&#160; &#160; &#160; &#160; $modelPath = isset( $options[&#039;doctrine&#039;][&#039;models_path&#039;]&#160; ) ? $options[&#039;doctrine&#039;][&#039;models_path&#039;] : APPLICATION_PATH.DIRECTORY_SEPARATOR.&#039;models&#039;;<br />&#160; &#160; &#160; &#160; Doctrine::loadModels( $modelPath );<br />&#160; &#160; }<br />[/code]</p><p>... and my doctrine_cli.php:<br />[code=php]<br />error_reporting(E_ALL);</p><p>// Define path to application directory<br />defined(&#039;APPLICATION_PATH&#039;)<br />&#160; &#160; || define(&#039;APPLICATION_PATH&#039;, dirname(realpath(dirname(__FILE__))).DIRECTORY_SEPARATOR.&#039;application&#039;);</p><p>define(&#039;DOCTRINE_PATH&#039;, APPLICATION_PATH.DIRECTORY_SEPARATOR.&#039;doctrine&#039;);</p><p>// Define application environment<br />defined(&#039;APPLICATION_ENV&#039;)<br />&#160; &#160; || define(&#039;APPLICATION_ENV&#039;, (getenv(&#039;APPLICATION_ENV&#039;) ? getenv(&#039;APPLICATION_ENV&#039;) : &#039;development&#039;));</p><p>//Ensure library/ is on include_path<br />set_include_path(implode(PATH_SEPARATOR, array(<br />&#160; &#160; realpath(APPLICATION_PATH . &#039;/../library&#039;),<br />&#160; &#160; get_include_path(),<br />)));</p><p>/** Zend_Application */<br />require_once &#039;Zend/Application.php&#039;;&#160; </p><p>// Create application, bootstrap, and run<br />$application = new Zend_Application(<br />&#160; &#160; APPLICATION_ENV, <br />&#160; &#160; APPLICATION_PATH . &#039;/configs/application.ini&#039;<br />);</p><p>$application-&gt;getBootstrap()-&gt;bootstrap(&quot;doctrine&quot;);</p><p>// Configure Doctrine Cli<br />// Normally these are arguments to the cli tasks but if they are set here the arguments will be auto-filled<br />$options = $application-&gt;getOptions();<br />$config = array(<br />&#160; &#160; &#160; &#160; &#160; &#160; &#039;models_path&#039;&#160; &#160; &#160; &#160; &#160;=&gt; isset( $options[&#039;doctrine&#039;][&#039;models_path&#039;] ) ? $options[&#039;doctrine&#039;][&#039;models_path&#039;] : APPLICATION_PATH.DIRECTORY_SEPARATOR.&#039;models&#039;,<br />&#160; &#160; &#160; &#160; &#160; &#160; &#039;data_fixtures_path&#039;&#160; =&gt; isset( $options[&#039;doctrine&#039;][&#039;data_fixtures_path&#039;] ) ? $options[&#039;doctrine&#039;][&#039;data_fixtures_path&#039;] : DOCTRINE_PATH.DIRECTORY_SEPARATOR.&#039;data&#039;.DIRECTORY_SEPARATOR.&#039;fixtures&#039;,<br />&#160; &#160; &#160; &#160; &#160; &#160; &#039;sql_path&#039;&#160; &#160; &#160; &#160; &#160; &#160; =&gt; isset( $options[&#039;doctrine&#039;][&#039;sql_path&#039;] ) ? $options[&#039;doctrine&#039;][&#039;sql_path&#039;] : DOCTRINE_PATH.DIRECTORY_SEPARATOR.&#039;data&#039;.DIRECTORY_SEPARATOR.&#039;sql&#039;,<br />&#160; &#160; &#160; &#160; &#160; &#160; &#039;migrations_path&#039;&#160; &#160; &#160;=&gt; isset( $options[&#039;doctrine&#039;][&#039;migrations_path&#039;] ) ? $options[&#039;doctrine&#039;][&#039;migrations_path&#039;] : DOCTRINE_PATH.DIRECTORY_SEPARATOR.&#039;migrations&#039;,<br />&#160; &#160; &#160; &#160; &#160; &#160; &#039;yaml_schema_path&#039;&#160; &#160; =&gt; isset( $options[&#039;doctrine&#039;][&#039;yaml_schema_path&#039;] ) ? $options[&#039;doctrine&#039;][&#039;yaml_schema_path&#039;] : DOCTRINE_PATH.DIRECTORY_SEPARATOR.&#039;schema&#039;<br />);</p><p>$cli = new Doctrine_Cli( $config );<br />$cli-&gt;run( $_SERVER[&#039;argv&#039;] );<br />[/code]</p><p>Pros:<br />- doctrine settings only need to be defined in application.ini<br />- only &quot;connection_string&quot; setting is mandatory</p><p>Note: I&#039;m only getting started with my first Zend/Doctrine project so this might not be the &quot;expert solution&quot;.</p>]]></description>
			<author><![CDATA[dummy@example.com (chmuul)]]></author>
			<pubDate>Wed, 30 Dec 2009 17:07:55 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=26&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[The name other frameworks thinks about other php framework]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=44&amp;action=new</link>
			<description><![CDATA[<p>So let&#039;s also mention the Joomla! Framework:<br /></p><ul><li><p><a href="http://api.joomla.org/li_Joomla-Framework.html">http://api.joomla.org/li_Joomla-Framework.html</a></p></li></ul><p>and the Nooku extension and framework for Joomla!:<br /></p><ul><li><p><a href="http://www.nooku.org/en/home.html">http://www.nooku.org/en/home.html</a></p></li></ul>]]></description>
			<author><![CDATA[dummy@example.com (udo)]]></author>
			<pubDate>Sun, 15 Nov 2009 10:06:19 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=44&amp;action=new</guid>
		</item>
	</channel>
</rss>

