<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Zendcasts Forum]]></title>
	<link rel="self" href="http://www.zendcasts.com/forum/feed/atom/"/>
	<updated>2010-07-29T11:36:58Z</updated>
	<generator>PunBB</generator>
	<id>http://www.zendcasts.com/forum/</id>
		<entry>
			<title type="html"><![CDATA[just say hi]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/9/just-say-hi/new/posts/"/>
			<summary type="html"><![CDATA[<p>Hi all here i want to just say hi and say big thanks to jon for this site.</p>]]></summary>
			<author>
				<name><![CDATA[michael99]]></name>
				<uri>http://www.zendcasts.com/forum/user/25/</uri>
			</author>
			<updated>2010-07-29T11:36:58Z</updated>
			<id>http://www.zendcasts.com/forum/topic/9/just-say-hi/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[cache a table row]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/219/cache-a-table-row/new/posts/"/>
			<summary type="html"><![CDATA[<p>Has anyone tried to cache a table row? And by that I mean using the Zend_Cache and Zend_Db_Table_Row </p><p>I have some tables that most of the time have the same data in it, so i find it useless to query the db each time for the same data. </p><p>I also tried caching at Zend_Db_Table level as I though that the row object would get the table object (cached) and send the query through it. But this fails each time. </p><p>Does anyone have a tip? Thanks!</p>]]></summary>
			<author>
				<name><![CDATA[georgeenciu]]></name>
				<uri>http://www.zendcasts.com/forum/user/148/</uri>
			</author>
			<updated>2010-07-27T12:32:03Z</updated>
			<id>http://www.zendcasts.com/forum/topic/219/cache-a-table-row/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[ZC59 – Autocomplete Control with ZendX_JQuery]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/218/zc59-autocomplete-control-with-zendxjquery/new/posts/"/>
			<summary type="html"><![CDATA[<p>In the last video, I discussed ZendX_JQuery integration. Now we&#039;re going to take it a step further by developing our own jQuery autocomplete control, using a country list, PHP 5.3 and anonymous functions.</p>]]></summary>
			<author>
				<name><![CDATA[Jon Lebensold]]></name>
				<uri>http://www.zendcasts.com/forum/user/3/</uri>
			</author>
			<updated>2010-07-26T10:33:18Z</updated>
			<id>http://www.zendcasts.com/forum/topic/218/zc59-autocomplete-control-with-zendxjquery/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[ZC25 - Unit Testing with the Zend Framework with Zend_Test and PHPUnit]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/41/zc25-unit-testing-with-the-zend-framework-with-zendtest-and-phpunit/new/posts/"/>
			<summary type="html"><![CDATA[<p>Hello Jon,</p><p>at 17:55 you create a method</p><p>public function setUp() {</p><p>...</p><p>}</p><p>Wouldn&#039;t it be better to use</p><p>public function init() {</p><p>...</p><p>}</p><p>which is called automatically when instantiating the class?</p><p>Thanks, Udo</p><p>P.S.: Another cool <img src="http://www.zendcasts.com/forum/img/smilies/cool.png" width="15" height="15" alt="cool" /> episode! Thank you!</p>]]></summary>
			<author>
				<name><![CDATA[miguelp]]></name>
				<uri>http://www.zendcasts.com/forum/user/15/</uri>
			</author>
			<updated>2010-07-25T21:55:53Z</updated>
			<id>http://www.zendcasts.com/forum/topic/41/zc25-unit-testing-with-the-zend-framework-with-zendtest-and-phpunit/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[What are the advantages of using Doctrine?]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/212/what-are-the-advantages-of-using-doctrine/new/posts/"/>
			<summary type="html"><![CDATA[<p>Hi All,</p><p>I am 3-4 days old to zend framework I am looking various article and various tutorial and try to learn the zend framework.</p><p>Just wanted to get more info on zend frame want to ask few question on using the doctrine.</p><p>My Questions are,</p><p>1) I have seen online tutorial, and most of the place i found examples where user has used ZEND_DB_TABLE api with insert, update delete, or custom query. Since zend_db_table api is zend inbuild component it will work fast rather than if we use third part layer like doctrine or propel. Please let me know if i am wrong here.</p><p>2) If we want to use the doctrine then we need to do additional configuration and learn doctrine</p><p>3) Here i am not sure how cache with work with doctrine<br />&nbsp; i.e.&nbsp; 1) Not sure if doctrine do the query catch or sql output cache in file or memory. If yes then how zend cache will manage it i.e. delete , update or add.<br />&nbsp; &nbsp; &nbsp; &nbsp;2) If doctrine doing the cache then should we use doctrine method for caching?<br />&nbsp; &nbsp; &nbsp; 3) If we use zend_db_table api&#039;s with zend cache, isn&#039;t its fast and better?</p><br /><p>Please let me know on above points.</p><p>Regards,<br />Ash</p>]]></summary>
			<author>
				<name><![CDATA[Manuel]]></name>
				<uri>http://www.zendcasts.com/forum/user/264/</uri>
			</author>
			<updated>2010-07-23T18:08:45Z</updated>
			<id>http://www.zendcasts.com/forum/topic/212/what-are-the-advantages-of-using-doctrine/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[ZC58 – Working with ZendX_JQuery]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/217/zc58-working-with-zendxjquery/new/posts/"/>
			<summary type="html"><![CDATA[<p>I&#039;ve received a lot of feedback about jQuery integration in the Zend Framework. This little video will show you how you can quickly integrate jQuery and jQuery UI into your Zend Framework project.</p>]]></summary>
			<author>
				<name><![CDATA[FnTm]]></name>
				<uri>http://www.zendcasts.com/forum/user/3/</uri>
			</author>
			<updated>2010-07-22T21:55:44Z</updated>
			<id>http://www.zendcasts.com/forum/topic/217/zc58-working-with-zendxjquery/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Zend + Doctrine + Left Join]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/202/zend-doctrine-left-join/new/posts/"/>
			<summary type="html"><![CDATA[<p><strong>Hi!</strong></p><p><strong>Can you please help? I would like to write a query. But the doctrine will generate incorrect code, and I do not understand why.</strong></p><br /><p>#schema.yml:<br /></p><div class="codebox"><pre><code>Car:
  connection: doctrine
  tableName: car
  columns:
    id:
      type: integer(8)
      fixed: false
      unsigned: false
      primary: true
      autoincrement: true
    brand:
      type: string()
      fixed: false
      unsigned: false
      primary: false
      notnull: false
      autoincrement: false
  relations:
    Users:
      local: id
      foreign: car_id
      type: many
      class: User
User:
  connection: doctrine
  tableName: user
  columns:
    id:
      type: integer(8)
      fixed: false
      unsigned: false
      primary: true
      autoincrement: true
    name:
      type: string()
      fixed: false
      unsigned: false
      primary: false
      notnull: false
      autoincrement: false
    email:
      type: string()
      fixed: false
      unsigned: false
      primary: false
      notnull: false
      autoincrement: false
    phone:
      type: string(9)
      fixed: false
      unsigned: false
      primary: false
      notnull: false
      autoincrement: false
    car_id:
      type: integer(8)
      fixed: false
      unsigned: false
      primary: false
      notnull: false
      autoincrement: false
  relations:
    Car:
      local: car_id
      foreign: id
      type: one</code></pre></div><p>#index.phtml<br /></p><div class="codebox"><pre><code>$q = Doctrine_Query::create()
    -&gt;select(&#039;id,brand&#039;)
    -&gt;from(&#039;Model_User u&#039;)
    -&gt;leftJoin(&#039;Model_Car c&#039;);

echo $q-&gt;getSqlQuery(); </code></pre></div><p>#firefox output</p><p>SELECT u.id AS u__id, u.brand AS u__brand FROM user u, car c </p><br /><br /><br /><p><a href="http://www.doctrine-project.org/projects/orm/1.2/docs/manual/dql-doctrine-query-language/hu">#From Doctrine documentation:</a></p><p>// test.php</p><p>// ...<br /></p><div class="codebox"><pre><code>$q = Doctrine_Query::create()
    -&gt;select(&#039;u.username, p.*&#039;)
    -&gt;from(&#039;User u&#039;)
    -&gt;leftJoin(&#039;u.Phonenumbers p&#039;)

echo $q-&gt;getSqlQuery();</code></pre></div><p>the above call to getSql() would output the following SQL query:</p><p>SELECT <br />u.id AS u__id, <br />u.username AS u__username, <br />p.id AS p__id, <br />p.user_id AS p__user_id, <br />p.phonenumber AS p__phonenumber <br />FROM user u <br />LEFT JOIN phonenumber p ON u.id = p.user_id</p><p><strong>What could be the reason that I can not generate this type of code?</strong></p>]]></summary>
			<author>
				<name><![CDATA[TimSchofield]]></name>
				<uri>http://www.zendcasts.com/forum/user/228/</uri>
			</author>
			<updated>2010-07-21T21:55:35Z</updated>
			<id>http://www.zendcasts.com/forum/topic/202/zend-doctrine-left-join/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[ZC38 – Introducing Doctrine 1.2 Integration]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/99/zc38-introducing-doctrine-12-integration/new/posts/"/>
			<summary type="html"><![CDATA[<p>By popular demand, I&#039;ve put together an introduction to Doctrine 1.2 integration with the Zend Framework. Doctrine is a fantastic ORM (object-relational mapping tool). If you&#039;ve jumped from NHibernate or Hibernate and are itching to have a powerful tool for handling database relationships, Doctrine is probably your best bet. On the mailing lists, there&#039;s a lot of talk about integrating Doctrine 2.0 into the 2.0 release of the Zend Framework. Regardless, this will help you get up to speed today. In next week&#039;s video, I&#039;ll show you how you can unit test those models in the Zend Framework.</p><p>Enjoy!</p><p>Grab a <a href="http://zendcasts.googlecode.com/svn/trunk/zc38-introducing-doctrine1-2/zc38-introducing-doctrine1-2.zip">copy of the project</a> or <a href="http://code.google.com/p/zendcasts/source/browse/trunk/zc38-introducing-doctrine1-2/">browse the repository</a>.</p>]]></summary>
			<author>
				<name><![CDATA[TimSchofield]]></name>
				<uri>http://www.zendcasts.com/forum/user/3/</uri>
			</author>
			<updated>2010-07-21T21:45:38Z</updated>
			<id>http://www.zendcasts.com/forum/topic/99/zc38-introducing-doctrine-12-integration/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[ZendX_Jquery setup]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/215/zendxjquery-setup/new/posts/"/>
			<summary type="html"><![CDATA[<p>Hi!</p><p>I&#039;m trying to setup a jquery view helper. Code is as follows:</p><p>Bootstrap.php<br /></p><div class="codebox"><pre><code>protected function _initLayoutt(){
        $config = &amp;$this-&gt;registry-&gt;config-&gt;resources-&gt;view;

        $view = new Zend_View();

        $view-&gt;strictVars($config-&gt;strictVars);
        $view-&gt;headMeta()-&gt;appendHttpEquiv(&#039;Content-Type&#039;, &#039;text/html;charset=&#039;.$view-&gt;getEncoding());
        $view-&gt;headTitle($config-&gt;headtitle);
        $view-&gt;headTitle()-&gt;setSeparator($config-&gt;headseperator);

        //JQuery support
        $view-&gt;addHelperPath(&quot;ZendX/JQuery/View/Helper&quot;, &quot;ZendX_JQuery_View_Helper&quot;);

        $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
        $viewRenderer-&gt;setView($view);
        Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
        
        $view-&gt;JQuery() -&gt;addStylesheet(&#039;/css/custom-theme/jquery-ui.custom.css&#039;)
                        -&gt;setLocalPath(&#039;/js/jquery.min.js&#039;)
                        -&gt;setUiLocalPath(&#039;/js/jquery-ui.custom.min.js&#039;)
                        -&gt;enable()
                        -&gt;uiEnable();

        return $view;
    }</code></pre></div><p> </p><p>I cannot access jquery() method from the view scripts, controllers or layout scripts. I get error msg:<br /></p><div class="quotebox"><blockquote><p>Zend_Loader_PluginLoader_Exception: Plugin by name &#039;JQuery&#039; was not found in the registry</p></blockquote></div><br /><p>ZendX namespace is in include path. </p><br /><p>Can someone please point me in&nbsp; the right dorection ... Thanks!</p>]]></summary>
			<author>
				<name><![CDATA[mihat]]></name>
				<uri>http://www.zendcasts.com/forum/user/259/</uri>
			</author>
			<updated>2010-07-18T19:24:50Z</updated>
			<id>http://www.zendcasts.com/forum/topic/215/zendxjquery-setup/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Display checkboxes in horizontal order]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/214/display-checkboxes-in-horizontal-order/new/posts/"/>
			<summary type="html"><![CDATA[<p>Hello All,</p><p>I have check boxes around 46. I want to arrange these check boxes 5 in a row i.e. first five checkbox should come and then next five should come below the first row and so on. Currently by default it shows each check boxes one below the other. Please let me know what option value i should pass while creating the multiple check boxes element.</p><p>Regards,<br />Ash</p>]]></summary>
			<author>
				<name><![CDATA[Jon Lebensold]]></name>
				<uri>http://www.zendcasts.com/forum/user/264/</uri>
			</author>
			<updated>2010-07-17T22:24:18Z</updated>
			<id>http://www.zendcasts.com/forum/topic/214/display-checkboxes-in-horizontal-order/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[The Square Root of Three]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/216/the-square-root-of-three/new/posts/"/>
			<summary type="html"><![CDATA[<p>I fear that I will always be<br />A lonely number like root three<br />The three is all that&#039;s great and right<br />Why must my three keep out of sight<br />Beneath the vicious square root sign<br />I wish instead I were a nine<br />For nine could thwart this evil trick,<br />with just a quick arithmetic<br />I know I&#039;ll never see a sum, as 1.7321<br />Such as my reality, a sad irrationality<br />When hark! What is this I see,<br />Another square root of a three<br />Has quietly come waltzing by<br />Together now we multiply<br />To form a number we prefer,<br />Rejoicing as an integer<br />We break free from our mortal bonds<br />With the wave of magic wands<br />Our square root signs become unglued<br />The love for me has been renewed</p>]]></summary>
			<author>
				<name><![CDATA[kristengreen]]></name>
				<uri>http://www.zendcasts.com/forum/user/268/</uri>
			</author>
			<updated>2010-07-16T21:34:26Z</updated>
			<id>http://www.zendcasts.com/forum/topic/216/the-square-root-of-three/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Zend_form View: Want to fetch only firstname Text box]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/213/zendform-view-want-to-fetch-only-firstname-text-box/new/posts/"/>
			<summary type="html"><![CDATA[<p>Hi All,</p><p>I have studied the zend_form tutorial. In tutorial its mentioned that in the view, we can call to $this-&gt;form and the form will get display. All Element we can add in the application/form/formfile. If we need to form element properly we need to use form decorator so that all the element gets display in view in proper place.</p><p>Other method its mentioned that we can call individual form element in the view it self. Since I am new to zend I preferred to use the second one i.e. calling individual element in the view. When i said $this-&gt;form-&gt;getLabel(&#039;firstname&#039;) , displayed the label but when i say $this-&gt;form-&gt;getElement(&#039;firstname&#039;) its displaying label and text box both. I require only Text box because i am calling label properly</p><p>How do i fetch only firstname text input?</p><br /><p>Here is my code in forms/signin.php</p><p>&nbsp; &nbsp; &nbsp; &nbsp; $firstname = $this-&gt;createElement(&#039;text&#039;,&#039;firstname&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; $firstname-&gt;setLabel(&#039;Enter FirstName&#039;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt;setAttrib(&#039;size&#039;,50);</p><p>$this-&gt;addElements(array(<br />&nbsp; &nbsp; &nbsp; &nbsp; $firstname,<br />&nbsp; &nbsp; &nbsp; &nbsp;);</p><p>Here is my code in controller</p><p>$form = new Application_Form_Signin();<br />$this-&gt;view-&gt;form = $form;</p><p>Regards,<br />Ash</p>]]></summary>
			<author>
				<name><![CDATA[ashinaidu]]></name>
				<uri>http://www.zendcasts.com/forum/user/264/</uri>
			</author>
			<updated>2010-07-14T06:46:06Z</updated>
			<id>http://www.zendcasts.com/forum/topic/213/zendform-view-want-to-fetch-only-firstname-text-box/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[ZC37 – Introducing Zend_Translate]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/93/zc37-introducing-zendtranslate/new/posts/"/>
			<summary type="html"><![CDATA[<p>Introduction to Zend_Translate</p><p>One of the big things that the Zend Framework has over other frameworks is the built-in locale and language tools provided by Zend_Translate and Zend_Locale. All this comes with plugins into Zend&#039;s templating system via Zend View Helpers. This video covers setting up some language-friendly routes, writing a custom language switcher Zend Controller Plugin and then running some a CSV-formatted language file.</p><p>Grab a <a href="http://zendcasts.googlecode.com/svn/trunk/zc37-introducing-zend-translate/zc37-introducing-zend-translate.zip">copy of the project</a> or <a href="http://code.google.com/p/zendcasts/source/browse/#svn/trunk/zc37-introducing-zend-translate">browse the repository</a>.</p>]]></summary>
			<author>
				<name><![CDATA[3ds]]></name>
				<uri>http://www.zendcasts.com/forum/user/3/</uri>
			</author>
			<updated>2010-07-12T19:39:49Z</updated>
			<id>http://www.zendcasts.com/forum/topic/93/zc37-introducing-zendtranslate/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Is zend cast fast?]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/199/is-zend-cast-fast/new/posts/"/>
			<summary type="html"><![CDATA[<p>Well, as the title said, is it fast ? I&#039;ve never used a framework before. So I&#039;m wondering if it&#039;s faster to load a naked PHP compare to loading Zend object where I see there is much replacing functions to be done under the hood.</p>]]></summary>
			<author>
				<name><![CDATA[iznogood]]></name>
				<uri>http://www.zendcasts.com/forum/user/226/</uri>
			</author>
			<updated>2010-07-12T14:34:10Z</updated>
			<id>http://www.zendcasts.com/forum/topic/199/is-zend-cast-fast/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[ZC57 – Selectively Adding CSS with Zend_Layout]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/211/zc57-selectively-adding-css-with-zendlayout/new/posts/"/>
			<summary type="html"><![CDATA[<p>This video outlines a little trick I&#039;ve found immensely helpful in larger applications: managing your css selectively. Luckily, the Zend Framework is built with some great features for handling this case using Zend_View and Zend_Layout. Enjoy!</p>]]></summary>
			<author>
				<name><![CDATA[Manuel]]></name>
				<uri>http://www.zendcasts.com/forum/user/3/</uri>
			</author>
			<updated>2010-07-11T17:38:11Z</updated>
			<id>http://www.zendcasts.com/forum/topic/211/zc57-selectively-adding-css-with-zendlayout/new/posts/</id>
		</entry>
</feed>
