<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Zendcasts Forum / Web Development]]></title>
		<link>http://www.zendcasts.com/forum/index.php</link>
		<description><![CDATA[The most recent topics at Zendcasts Forum.]]></description>
		<lastBuildDate>Tue, 28 Jun 2011 19:52:09 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Designing Zend Framework "portal"]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=399&amp;action=new</link>
			<description><![CDATA[<p>I&#039;m designing the website for a research lab. The idea is for this website to be a &quot;portal&quot; concept. In other words it is a typical website for any other small group, but we also have several web applications, some related to each other and some not as much. Each web application should be able to stand alone as their own websites.</p><p>The idea is that all of these sites should have the same &quot;look and feel&quot; but there will probably be several differences between the web applications. Virtually all of these web applications will take some input files, do some processing on them, and give output files. Some of the web applications are very large. Some will share files with others, and some will keep their own files to themselves. We want a single sign-in for everything on the portal.</p><p>I&#039;m wanting to know from more experienced people what is the best way to design something like this? Should I do this on one Zend Framework project, or should each webapp be a separate project? If separate is there a good way to avoid redundancy in things such as layout and stylesheets? If combined is there a good way to manage SVN version control for each separate project? I recognize some of this may come from my limited knowledge of both Zend Framework and the MVC pattern (though I&#039;ve been reading up on it for a while now and have a decent understanding, just little experience).</p><p>I&#039;d greatly appreciate any and all advice/suggestions on this, especially from anyone with experience in projects similar to this.</p><p>Thanks,<br />-Steve</p>]]></description>
			<author><![CDATA[dummy@example.com (stevec)]]></author>
			<pubDate>Tue, 28 Jun 2011 19:52:09 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=399&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Isolating persistence code from model]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=350&amp;action=new</link>
			<description><![CDATA[<p>Hello,</p><p>what would be the best way to isollate persistence code from model? So, that I could just create new class and use it instead of currently used.</p><p>If I create an interface for repository and then create different implementations, and use abstract factory to create instances of those implementations?</p><p>Or am I totally lost with these thoughts?</p><p>-- Miika</p>]]></description>
			<author><![CDATA[dummy@example.com (miika)]]></author>
			<pubDate>Wed, 04 May 2011 18:48:56 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=350&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Doctrine 1.2.x vs Doctrine 2.0]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=268&amp;action=new</link>
			<description><![CDATA[<p>@Stevec - I don&#039;t think Zend_Db is phasing out in favor of Doctrine. There was another project called Zend_Entity which Benjamin was working on that they decided to discontinue.</p><p><a href="http://giorgiosironi.blogspot.com/2009/11/whats-going-on-with-php-object.html">http://giorgiosironi.blogspot.com/2009/ … bject.html</a></p><p>@daniel - I am still learning in both directions. I understand the technical difference (from a high level) between the two, but deciding with one to use on a project basis is something I am still working on. Let us know what you decide.</p>]]></description>
			<author><![CDATA[dummy@example.com (renereed1)]]></author>
			<pubDate>Fri, 18 Mar 2011 15:35:53 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=268&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Choosing different views for module base Zend application]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=315&amp;action=new</link>
			<description><![CDATA[<p>Thank you , I am going to work on it.</p>]]></description>
			<author><![CDATA[dummy@example.com (amir.sabahi)]]></author>
			<pubDate>Tue, 15 Mar 2011 16:24:09 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=315&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Check user in db before insert new!]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=225&amp;action=new</link>
			<description><![CDATA[<p>you can find an example here as well (8.Use cases):<br /><a href="http://framework.zend.com/wiki/display/ZFPROP/Zend_Validate_Db_RecordExists+-+Zend_Validate_Db_NoRecordExists+-+Ryan+Mauger">http://framework.zend.com/wiki/display/ … yan+Mauger</a></p>]]></description>
			<author><![CDATA[dummy@example.com (amir.sabahi)]]></author>
			<pubDate>Thu, 10 Mar 2011 18:03:14 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=225&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[need help in database query]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=262&amp;action=new</link>
			<description><![CDATA[<p>I am not an expert in Zend but since you&#039;re going to have complex queries I think it is better to use SQL queries statements you have programmed rather than using framework functions to achieve that.</p>]]></description>
			<author><![CDATA[dummy@example.com (amir.sabahi)]]></author>
			<pubDate>Thu, 10 Mar 2011 17:57:39 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=262&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[object manipulator]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=206&amp;action=new</link>
			<description><![CDATA[<p>how i can fixed the excel object manipulation causes run-time error....give me code...???</p>]]></description>
			<author><![CDATA[dummy@example.com (Chieftain)]]></author>
			<pubDate>Tue, 22 Feb 2011 12:59:16 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=206&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[How to choose the right PHP Framework for web development?]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=279&amp;action=new</link>
			<description><![CDATA[<p>I&#039;m not a PHP expert myself, but from what I read and see what kind of framework the pro&#039;s are using it is Codeigniter and then followed by Zend.<a href="http://www.houstonairconditioners.net/">central air conditioners</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Chieftain)]]></author>
			<pubDate>Tue, 22 Feb 2011 12:54:36 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=279&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Zend Framework sequence diagram question]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=162&amp;action=new</link>
			<description><![CDATA[<p>Nice Information Thank You</p>]]></description>
			<author><![CDATA[dummy@example.com (anaivanovicmaria)]]></author>
			<pubDate>Mon, 21 Feb 2011 04:54:49 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=162&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[How can someone read PHP code that has been compiled with bcompiler]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=269&amp;action=new</link>
			<description><![CDATA[<p>Is it possible for someone to read a php code that has been compiled with bcompiler. Well, i gues that someone should have a decompiler to do such a thing but iam not sure which one and if there is one out there. So if anyone has done this or have the slightest idea please let me know iam trying for so long now to solve this problem. You see the previous programer had compiled all the php code and i know have to find out what the heck is goind on but i can&#039;t read the code is there any other solution on how you can read compiled php code. Please help me ou here.</p>]]></description>
			<author><![CDATA[dummy@example.com (kirk86)]]></author>
			<pubDate>Tue, 16 Nov 2010 09:38:56 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=269&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[How to prevent mail spam (Zend_Mail)]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=252&amp;action=new</link>
			<description><![CDATA[<p>I&#039;m using smtp... Here is my code, do you need the actual template of the email? </p><br /><p>$bootstrap = Zend_Controller_Front::getInstance()-&gt;getParam(&#039;bootstrap&#039;);<br />&#160; &#160; &#160; &#160; $config = $bootstrap-&gt;getOption(&#039;smtp&#039;);<br />&#160; &#160; &#160; &#160; $smtpHost&#160; &#160;= new Zend_Mail_Transport_Smtp($config[&#039;server&#039;], $config[&#039;config&#039;]);</p><p>&#160; &#160; &#160; &#160; //Create Zend_Mail object.<br />&#160; &#160; &#160; &#160; $MailObj = new Zend_Mail();</p><p>&#160; &#160; &#160; &#160; //Initialize parameters.<br />&#160; &#160; &#160; &#160; $MailObj-&gt;setBodyHTML($emailMessage);<br />&#160; &#160; &#160; &#160; $MailObj-&gt;setFrom($config[&#039;fromEmail&#039;], $config[&#039;fromName&#039;]);<br />&#160; &#160; &#160; &#160; $MailObj-&gt;addTo($to);<br />&#160; &#160; &#160; &#160; $MailObj-&gt;setSubject($subject);<br />&#160; &#160; &#160; &#160; $MailObj-&gt;setReplyTo(&#039;donotreply@test.com&#039;, &#039;Test test test&#039;);<br />&#160; &#160; &#160; &#160; <br />&#160; &#160; &#160; &#160; $from_name=&quot;Test&quot;;<br />&#160; &#160; &#160; &#160; $from_address=&quot;donotreply@test.com&quot;;</p>]]></description>
			<author><![CDATA[dummy@example.com (sbalbalosa)]]></author>
			<pubDate>Mon, 18 Oct 2010 08:32:18 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=252&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Few basic questions about ZF]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=250&amp;action=new</link>
			<description><![CDATA[<p>Thanks a lot Brandon! <img src="http://www.zendcasts.com/forum/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (GaVrA)]]></author>
			<pubDate>Tue, 12 Oct 2010 16:17:12 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=250&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Force Module and Params to HTTPS]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=245&amp;action=new</link>
			<description><![CDATA[<p>Hi,</p><p>I took this plug-in from the Internet and amended it a bit.</p><p>You need to add the following plgin to your application/plugins folder:</p><p>inside the file application/plugins/Ssl.php :</p><p>class Application_Plugin_Ssl extends Zend_Controller_Plugin_Abstract {</p><p>&#160; &#160; /**<br />&#160; &#160; &#160;* Check the application.ini file for security settings.<br />&#160; &#160; &#160;* If the url requires being secured, rebuild a secure url<br />&#160; &#160; &#160;* and redirect.<br />&#160; &#160; &#160;*<br />&#160; &#160; &#160;* @param Zend_Controller_Request_Abstract $request<br />&#160; &#160; &#160;* @return void<br />&#160; &#160; &#160;*/<br />&#160; &#160; public function preDispatch(Zend_Controller_Request_Abstract $request) {</p><p>&#160; &#160; &#160; &#160; $shouldSecureUrl = false;</p><p>&#160; &#160; &#160; &#160; $options = Zend_Registry::getInstance()-&gt;get(&#039;config&#039;);</p><p>&#160; &#160; &#160; &#160; if (!empty($options-&gt;ssloptions-&gt;modules-&gt;{$request-&gt;module}-&gt;{$request-&gt;controller}-&gt;require_ssl) ||<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; !empty($options-&gt;ssloptions-&gt;modules-&gt;{$request-&gt;module}-&gt;{$request-&gt;controller}-&gt;{$request-&gt;action}-&gt;require_ssl)) {<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; $shouldSecureUrl = true;<br />&#160; &#160; &#160; &#160; }</p><p>&#160; &#160; &#160; &#160; if ($shouldSecureUrl) {<br />&#160; &#160; &#160; &#160; &#160; &#160; $this-&gt;_secureUrl($request);<br />&#160; &#160; &#160; &#160; } else {<br />&#160; &#160; &#160; &#160; &#160; &#160; $this-&gt;_unsecureUrl($request);<br />&#160; &#160; &#160; &#160; }<br />&#160; &#160; }</p><p>&#160; &#160; protected function _secureUrl(Zend_Controller_Request_Abstract $request) {</p><p>&#160; &#160; &#160; &#160; $server = $request-&gt;getServer();<br />&#160; &#160; &#160; &#160; $hostname = $server[&#039;HTTP_HOST&#039;];<br />&#160; &#160; &#160; &#160; $uri = $server[&#039;REQUEST_URI&#039;];</p><p>&#160; &#160; &#160; &#160; if (!$request-&gt;isSecure()) {<br />&#160; &#160; &#160; &#160; &#160; &#160; //url scheme is not secure so we rebuild url with secureScheme<br />&#160; &#160; &#160; &#160; &#160; &#160; $url = Zend_Controller_Request_Http::SCHEME_HTTPS . &quot;://&quot; . $hostname . $uri;<br />&#160; &#160; &#160; &#160; &#160; &#160; $redirector = Zend_Controller_Action_HelperBroker::getStaticHelper(&#039;redirector&#039;);<br />&#160; &#160; &#160; &#160; &#160; &#160; $redirector-&gt;setGoToUrl($url);<br />&#160; &#160; &#160; &#160; &#160; &#160; $redirector-&gt;redirectAndExit();<br />&#160; &#160; &#160; &#160; }<br />&#160; &#160; }</p><p>&#160; &#160; protected function _unsecureUrl(Zend_Controller_Request_Abstract $request) {</p><p>&#160; &#160; &#160; &#160; $server = $request-&gt;getServer();<br />&#160; &#160; &#160; &#160; $hostname = $server[&#039;HTTP_HOST&#039;];<br />&#160; &#160; &#160; &#160; $uri = $server[&#039;REQUEST_URI&#039;];</p><p>&#160; &#160; &#160; &#160; if ($request-&gt;isSecure()) {<br />&#160; &#160; <br />&#160; &#160; &#160; &#160; &#160; &#160; $url = Zend_Controller_Request_Http::SCHEME_HTTP . &quot;://&quot; . $hostname . $uri;<br />&#160; &#160; &#160; &#160; &#160; &#160; <br />&#160; &#160; &#160; &#160; &#160; &#160; $redirector = Zend_Controller_Action_HelperBroker::getStaticHelper(&#039;redirector&#039;);<br />&#160; &#160; &#160; &#160; &#160; &#160; $redirector-&gt;setGoToUrl($url);<br />&#160; &#160; &#160; &#160; &#160; &#160; $redirector-&gt;redirectAndExit();<br />&#160; &#160; &#160; &#160; }<br />&#160; &#160; }</p><p>}</p><p>At your config.ini file you could specify the action or controller you want to be secured, something like this:</p><br /><p>&#160; &#160; &lt;ssloptions&gt;<br />&#160; &#160; &#160; &#160; &lt;modules&gt;<br />&#160; &#160; &#160; &#160; &#160; &#160; &lt;default&gt;<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &lt;booking&gt;<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &lt;require_ssl&gt;true&lt;/require_ssl&gt;<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &lt;/booking&gt;<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &lt;account&gt;<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &lt;require_ssl&gt;true&lt;/require_ssl&gt;<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &lt;/account&gt;<br />&#160; &#160; &#160; &#160; &#160; &#160; &lt;/default&gt;<br />&#160; &#160; &#160; &#160; &lt;/modules&gt;<br />&#160; &#160; &lt;/ssloptions&gt;</p><p>This will make the controller booking inside the default module to be directed to a secure page.</p><p>Of course you have to enable the plugin in your boostrap file like this.</p><p>&#160; &#160; protected function _initPlugins()<br />&#160; &#160; {</p><p>&#160; &#160; &#160; &#160; $this-&gt;bootstrap(&quot;frontcontroller&quot;);<br />&#160; &#160; &#160; &#160; $fc = $this-&gt;getResource(&quot;frontcontroller&quot;);</p><p>&#160; &#160;<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;$fc-&gt;-&gt;registerPlugin(new Application_Plugin_Ssl);<br />&#160; &#160; &#160; &#160; &#160; &#160; </p><p>&#160; &#160; &#160; &#160; return $fc;<br />&#160; &#160; }</p><p>Thanks Mazen</p>]]></description>
			<author><![CDATA[dummy@example.com (mazen)]]></author>
			<pubDate>Wed, 06 Oct 2010 22:36:40 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=245&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Recomended user login methods]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=112&amp;action=new</link>
			<description><![CDATA[<p>hi harri,</p><p>Using login would be a great help for an unwanted using of accounts.<br />Putting login before it start is somehow prevents our account in unwanted using our accounts or destroying it.</p><p>We can prevent spammers or bots if login is present.<br />I would recommend that login should have a three attempts and when he/she meets the 3rd attempts the application will close.</p>]]></description>
			<author><![CDATA[dummy@example.com (Golumn647)]]></author>
			<pubDate>Tue, 07 Sep 2010 00:38:18 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=112&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Zend_Service_Flickr show photo user]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?id=209&amp;action=new</link>
			<description><![CDATA[<p>if possible show photo user whit Zend_Service_Flickr ???<br />How??</p><p>thanks</p>]]></description>
			<author><![CDATA[dummy@example.com (alessio)]]></author>
			<pubDate>Tue, 29 Jun 2010 12:49:35 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?id=209&amp;action=new</guid>
		</item>
	</channel>
</rss>

