<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Zendcasts Forum - Development Issues]]></title>
	<link rel="self" href="http://www.zendcasts.com/forum/feed/atom/forum/11/"/>
	<updated>2010-09-04T02:29:32Z</updated>
	<generator>PunBB</generator>
	<id>http://www.zendcasts.com/forum/</id>
		<entry>
			<title type="html"><![CDATA[Class Not Found!]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/23/class-not-found/new/posts/"/>
			<summary type="html"><![CDATA[<p>I&#039;ve noticed this problem happens a lot when you&#039;re just starting out with the Zend Framework. Oftentimes you&#039;ll be following a tutorial and it comes with a need little class that look like:<br />My_forms_MyDate<br />ZC_MyCustomClass<br />App_BaseController</p><p>etc...</p><p>basically, in the &quot;My_forms_&quot; example, the class is sitting in the &quot;My&quot; folder in the library/ folder:</p><p>/library/My/forms/MyDate.php</p><p>in order for this class to be autoloaded by the zend framework, you simply need to register the namespace. In your Bootstrap.php file, you&#039;ll need something like this:</p><div class="codebox"><strong>PHP Code:</strong><pre><code class="php">&nbsp;
<span class="kw2">class</span> Bootstrap <span class="kw2">extends</span> Zend_Application_Bootstrap_Bootstrap
<span class="br0">&#123;</span>
&nbsp; &nbsp; protected <span class="kw2">function</span> _initAutoload<span class="br0">&#40;</span><span class="br0">&#41;</span>
&nbsp; &nbsp; <span class="br0">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$moduleLoader</span> = <span class="kw2">new</span> Zend_Application_Module_Autoloader<span class="br0">&#40;</span><a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">'namespace'</span> =&gt; <span class="st0">''</span>,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">'basePath'</span> =&gt; APPLICATION_PATH<span class="br0">&#41;</span><span class="br0">&#41;</span>;
&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$autoloader</span> = Zend_Loader_Autoloader::<span class="me2">getInstance</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="co1">//registering the ZC_* namespace and the My_* namespace</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$autoloader</span>-&gt;<span class="me1">registerNamespace</span><span class="br0">&#40;</span><a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st0">'ZC_'</span>,<span class="st0">'My_'</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">return</span> <span class="re0">$moduleLoader</span>; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; <span class="br0">&#125;</span>
<span class="br0">&#125;</span>
&nbsp;</code></pre></div><p>As a freelancer, I&#039;ve built up my own custom library of Zend components that have saved me hours of re-typing!</p>]]></summary>
			<author>
				<name><![CDATA[winechristmas]]></name>
				<uri>http://www.zendcasts.com/forum/user/3/</uri>
			</author>
			<updated>2010-09-04T02:29:32Z</updated>
			<id>http://www.zendcasts.com/forum/topic/23/class-not-found/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Zend_Tool CLI not working outside of home dir]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/238/zendtool-cli-not-working-outside-of-home-dir/new/posts/"/>
			<summary type="html"><![CDATA[<p>Hi, </p><p>I work on a MacBook with Snow Leopard. <br />I setup Zend_Tool CLI like in the ZF Manual. <br />zf show version gives me the right version. <br />I made a subdir in my home dir to house all my projects, but when I do zf create project &quot;name&quot; I get the error <br />&quot;Context by name providersDirectory does not exist in the registry&quot;. </p><p>When I run it from the home dir, there is no problem. <br />Anyone knows what&#039;s going on?</p>]]></summary>
			<author>
				<name><![CDATA[vrxj81]]></name>
				<uri>http://www.zendcasts.com/forum/user/318/</uri>
			</author>
			<updated>2010-09-02T06:43:59Z</updated>
			<id>http://www.zendcasts.com/forum/topic/238/zendtool-cli-not-working-outside-of-home-dir/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Zend_Navigation and Zend_Acl]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/180/zendnavigation-and-zendacl/new/posts/"/>
			<summary type="html"><![CDATA[<p>Goodafternoon</p><p>I have been busy whole day studying / experimenting with zendFramwork.<br />Now i still have some issue:<br />I have build my navigation within an specific ini file (see below)<br />and i load that one into the application.ini with </p><div class="codebox"><pre><code>; —
; Navigation
; —
config = APPLICATION_PATH &quot;/configs/resources/navigation.ini&quot;</code></pre></div><p>this works great but if i want to load my routes the same way it doens&#039;t seem te find mij routes :s<br /></p><div class="codebox"><pre><code>; —
; Routes
; —
; config = APPLICATION_PATH &quot;/configs/resources/routes.ini&quot;</code></pre></div><p>Second, i have setup an ACL and i know want to disable the logout link if you aren&#039;t logged in<br />and allso the profile link. i have searched on google but i could find a suited answer :s</p><p>Thnx in advance <img src="http://www.zendcasts.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>navigation.ini<br /></p><div class="codebox"><pre><code>; —
; Navigation
; —
resources.view[] = &quot;&quot;
resources.navigation.pages.page1.label = &quot;Home&quot;
resources.navigation.pages.page1.module = &quot;default&quot;
resources.navigation.pages.page1.controller = &quot;index&quot;
resources.navigation.pages.page1.action = &quot;index&quot;

resources.navigation.pages.page2.label = &quot;User&quot;
resources.navigation.pages.page2.module = &quot;default&quot;
resources.navigation.pages.page2.controller = &quot;user&quot;
resources.navigation.pages.page2.action = &quot;index&quot;

resources.navigation.pages.page3.label = &quot;Profile&quot;
resources.navigation.pages.page3.module = &quot;default&quot;
resources.navigation.pages.page3.controller = &quot;user&quot;
resources.navigation.pages.page3.action = &quot;profile&quot;

resources.navigation.pages.page4.label = &quot;Login&quot;
resources.navigation.pages.page4.module = &quot;default&quot;
resources.navigation.pages.page4.controller = &quot;user&quot;
resources.navigation.pages.page4.action = &quot;login&quot;

resources.navigation.pages.page5.label = &quot;Logout&quot;
resources.navigation.pages.page5.module = &quot;default&quot;
resources.navigation.pages.page5.controller = &quot;user&quot;
resources.navigation.pages.page5.action = &quot;logout&quot;</code></pre></div><p>acl.ini<br /></p><div class="codebox"><pre><code>[development]
acl.roles.guest         = null
acl.roles.user          = guest
acl.roles.admin         = user

acl.resources.allow.index.index     = guest
acl.resources.allow.error.error     = guest

acl.resources.allow.user.index      = guest
acl.resources.allow.user.login      = guest
acl.resources.allow.user.register   = guest
acl.resources.allow.user.profile    = user
acl.resources.allow.user.logout     = user
acl.resources.allow.user.admin      = admin</code></pre></div>]]></summary>
			<author>
				<name><![CDATA[samuelherzog]]></name>
				<uri>http://www.zendcasts.com/forum/user/197/</uri>
			</author>
			<updated>2010-08-26T20:45:22Z</updated>
			<id>http://www.zendcasts.com/forum/topic/180/zendnavigation-and-zendacl/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[zend doctrine2.0 deep intengration]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/235/zend-doctrine20-deep-intengration/new/posts/"/>
			<summary type="html"><![CDATA[<p>si can you please send me any link with deep integration <br />i found this </p><p><a href="http://www.phpguru.ro/articles/zf110_doctrine2/">http://www.phpguru.ro/articles/zf110_doctrine2/</a><br />i would like to more detailed explanation. <br />thx. for helping.</p>]]></summary>
			<author>
				<name><![CDATA[aws]]></name>
				<uri>http://www.zendcasts.com/forum/user/25/</uri>
			</author>
			<updated>2010-08-26T08:02:41Z</updated>
			<id>http://www.zendcasts.com/forum/topic/235/zend-doctrine20-deep-intengration/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to make PHPUnit refer to the PEAR package in Zend Studio]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/232/how-to-make-phpunit-refer-to-the-pear-package-in-zend-studio/new/posts/"/>
			<summary type="html"><![CDATA[<p>Hi,</p><p>I am deploying phpUnit for the first time to test my php scripts.I installed Zend studio 7.2.1 on Ubuntu machine for creating PHPUnit test cases.I am creating a PHPUnit test case on a class &#039;User&#039; in the library/ My_library folder which is dependent on another class Entity having the code &quot;PEAR::is_error()&quot;.I am storing the test case in the same folder where &#039;User&#039;class resides , including my application&#039;s model classes and running a test case from the zend studio interface.</p><p>When I run the test case from zend studio, an error comes in Browser Output: </p><p>Fatal error: Class &#039;PEAR&#039; not found in /var/www/zendBean/library/My_library/Entity.php on line 544 </p><p>My question is - is it the correct place to store my test script. If yes, do I need to set any include path in the zend studio for the pear package installed in my system. The php.ini of my php5 has the include path as /usr/share/pear but I am not able to access the pear class from the Model class instance.</p>]]></summary>
			<author>
				<name><![CDATA[tajinder.kaur]]></name>
				<uri>http://www.zendcasts.com/forum/user/301/</uri>
			</author>
			<updated>2010-08-21T16:07:05Z</updated>
			<id>http://www.zendcasts.com/forum/topic/232/how-to-make-phpunit-refer-to-the-pear-package-in-zend-studio/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[help (zend_form_element_file and zend_test)]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/172/help-zendformelementfile-and-zendtest/new/posts/"/>
			<summary type="html"><![CDATA[<p>testSomeController.php</p><div class="codebox"><pre><code>    public function testUploadCsvAndDataValidate(){

        $this-&gt;dispatch(&quot;/index&quot;);
        $this-&gt;assertController(&quot;index&quot;);
        $this-&gt;assertAction(&quot;login&quot;);

        $login_info = array(
          &#039;username&#039; =&gt; &#039;test1&#039;,
          &#039;password&#039; =&gt; &#039;123&#039;,
          &#039;type&#039; =&gt; &#039;1&#039;
        );
        $this-&gt;request-&gt;setMethod(&quot;POST&quot;)
                -&gt;setPost($login_info);

        //login into  test1 and 123
        $this-&gt;dispatch(&quot;/index/login&quot;);

        $this-&gt;assertRedirectTo(&quot;/index/index&quot;); //passed..

        $this-&gt;resetRequest();
        $this-&gt;resetResponse();

        $file_name = &quot;/home/vovovo/desktop/csvdir/test.csv&quot;;

        $bool = file_exists($file_name);
        $this-&gt;assertTrue($bool);  //passed

        
        $upload_post = array(
            //&#039;MAX_FILE_SIZE&#039; =&gt; 2097152,
            &#039;ltcsv&#039; =&gt; $file_name
        );


        $this-&gt;request-&gt;setMethod(&quot;POST&quot;)-&gt;setPost($upload_post);
        

        
        //upload the csv
        $this-&gt;dispatch(&quot;/rakuten/import&quot;);

        //check is it redirect to confirm
        $this-&gt;assertRedirectTo(&quot;/rakuten/confirm&quot;);</code></pre></div><br /><br /><p>The file &#039;ltcsv&#039; was illegal uploaded, possible attack</p><p>Could you please suggest me how to test this situation?&nbsp; <br />the problem is only to emulate post upload..</p>]]></summary>
			<author>
				<name><![CDATA[anderson.ls]]></name>
				<uri>http://www.zendcasts.com/forum/user/184/</uri>
			</author>
			<updated>2010-08-12T20:45:47Z</updated>
			<id>http://www.zendcasts.com/forum/topic/172/help-zendformelementfile-and-zendtest/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Front Controller Plugins & Exceptions]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/222/front-controller-plugins-exceptions/new/posts/"/>
			<summary type="html"><![CDATA[<p>Hi all, </p><p>In my application i have a Front Controller Plugin which is build to check wether the visitor has access to the requested page with use of Zend_Acl.</p><p>Now when the user is not allowed on a page i would like to throw an Exception (the best thing to do i figured). </p><p>Now the problem here is that my error page (Error Action in Error Controller) isnt being rendered properly.</p><p>It feels a little as if the layout starts to render...then the exception is thrown, then it starts to Render the entire error page (including the layout again).</p><p>Extra Info.<br />-Exceptions thrown in Controllers are working as intended.<br />-I have tried using PreDispatch() instead of dispatchLoopStartup, it had no effect</p><p>Here is the code that checks if the user is allowed somewhere and if not throw the exception<br /></p><div class="codebox"><pre><code>public function dispatchLoopStartup(Zend_Controller_Request_Abstract $request)    
    {
        $this-&gt;role = $this-&gt;getRole($request);
        $this-&gt;resource = strtolower($request-&gt;getControllerName() . &#039;-&#039;
                                     . $request-&gt;getActionName());     

          if(!$this-&gt;acl-&gt;isAllowed($this-&gt;role, $this-&gt;resource))
          {
              throw new Exception(My_Acl_Acl::NOT_ALLOWED, 404);
          }        
    }</code></pre></div>]]></summary>
			<author>
				<name><![CDATA[iiTyr]]></name>
				<uri>http://www.zendcasts.com/forum/user/180/</uri>
			</author>
			<updated>2010-08-10T21:16:45Z</updated>
			<id>http://www.zendcasts.com/forum/topic/222/front-controller-plugins-exceptions/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Autoloading problem]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/227/autoloading-problem/new/posts/"/>
			<summary type="html"><![CDATA[<p>Hi,</p><p>I have problems with the autoloading.<br />I have a normal zend setup with the models folder in the application folder.</p><p>Application.ini has appnamespace = &quot;Application&quot;</p><p>In some way he does not load the model auto, i need to do an require_once for it ... </p><p>autoloaderNamespaces[] = &quot;ZendX&quot; works like a charm, but i want to use the default model folder ... any ideas what i&#039;m doing wrong?</p><p>htaccess has :</p><p>SetEnv APPLICATION_ENV production</p><p>RewriteEngine On<br />#RewriteBase /<br />#RewriteCond %{REQUEST_URI} =&quot;&quot;<br />#RewriteRule ^.*$ /public/index.php [NC,L]<br />#RewriteCond %{REQUEST_FILENAME} -s [OR]<br />#RewriteCond %{REQUEST_FILENAME} -l [OR]<br />#RewriteCond %{REQUEST_FILENAME} -d<br />#RewriteRule ^.*$ - [NC,L]<br />#RewriteRule ^.*$ index.php [NC,L]</p><p>RewriteRule ^\.htaccess$ - [F]</p><p>RewriteCond %{REQUEST_URI} =&quot;&quot;<br />RewriteRule ^.*$ /public/index.php [NC,L]</p><p>RewriteCond %{REQUEST_URI} !^/public/.*$<br />RewriteRule ^(.*)$ /public/$1</p><p>RewriteCond %{REQUEST_FILENAME} -f<br />RewriteRule ^.*$ - [NC,L]</p><p>RewriteRule ^public/.*$ /public/index.php [NC,L]</p><p>thx,</p><p>Xavier</p>]]></summary>
			<author>
				<name><![CDATA[Xavier]]></name>
				<uri>http://www.zendcasts.com/forum/user/289/</uri>
			</author>
			<updated>2010-08-10T09:23:39Z</updated>
			<id>http://www.zendcasts.com/forum/topic/227/autoloading-problem/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Zend_ACL with database backend in ZF MVC project]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/223/zendacl-with-database-backend-in-zf-mvc-project/new/posts/"/>
			<summary type="html"><![CDATA[<p>First off, I&#039;m new here.<br />thanks to Jon for all the amazing casts they helped me alot.</p><p>Now to my problem:</p><p>I&#039;m trying to use Zend_ACL in a dynamic way with a database backend.</p><p>in the last two days i tried alot and read alot about that issue but i came to no clear solution yet.</p><p>i found this<br /><a href="http://my.opera.com/zomg/blog/2007/05/08/zend-acl-and-storing-roles-and-resources-in-a-db">http://my.opera.com/zomg/blog/2007/05/0 &#133; es-in-a-db</a><br /><a href="http://codeutopia.net/blog/2009/02/18/zend_acl-part-3-creating-and-storing-dynamic-acls/">http://codeutopia.net/blog/2009/02/18/z &#133; amic-acls/</a></p><p>but that doesnt completly satisfy me.</p><p>what i want is this:<br />- be able to set up module/controller/action access-rights for individual users and groups with inheritance.<br />- be able to allow/deny actions on specific id&#039;s (eg allowing the author and moderator/admin groups to&nbsp; editing of a post but deny it for everyone else)<br />- be able to use that with zend_navigation aswell</p><p>does anyone have any experience with that kinda thing?<br />can you point me on some articles about this ?</p><p>thanks in advance</p>]]></summary>
			<author>
				<name><![CDATA[miguelp]]></name>
				<uri>http://www.zendcasts.com/forum/user/283/</uri>
			</author>
			<updated>2010-08-09T14:33:39Z</updated>
			<id>http://www.zendcasts.com/forum/topic/223/zendacl-with-database-backend-in-zf-mvc-project/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[error loading models]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/220/error-loading-models/new/posts/"/>
			<summary type="html"><![CDATA[<p>This is a bit strange, i&#039;ve setted up my structure to use modules:</p><p>in my application.ini file:<br /></p><div class="codebox"><pre><code> 
; Define app to accept modules
resources.frontController.moduleDirectory = APPLICATION_PATH &quot;/modules&quot;
resources.modules = &quot;&quot;</code></pre></div><p>In my bootstrap.php that extends Zend_Application_Bootstrap_Bootstrap file:</p><div class="codebox"><pre><code> 
protected $_resourceLoader;
    protected function _initDefaultModuleAutoloader()
    {
        $this-&gt;_resourceLoader = new Zend_Application_Module_Autoloader(array(
            &#039;namespace&#039; =&gt; &#039;&#039;,
            &#039;basePath&#039;  =&gt; APPLICATION_PATH . &#039;/modules/default&#039;,
        ));
        return $this-&gt;_resourceLoader;
    }</code></pre></div><p>all modules bootstrap files extend Zend_Application_Module_Bootstrap and only have code setting up module specific routes.</p><p>I have access to module controllers, routes are working as expected, but cant access any module models. Example:</p><p>I have&nbsp; a module called &quot;Admin&quot;, inside a Admin_indexController i cant call for a model like new Admin_Model_Type(); it says the class is not found. example error message:<br /></p><div class="codebox"><pre><code>Fatal error: Class &#039;Admin_Model_Tipo&#039; not found in H:\www\mudarcasa\application\modules\Admin\controllers\tipoController.php on line 17</code></pre></div><p>Even stranger it was all working before i reinstall my OS. I setted up wamp the same way. Only diference is now i have php5.2.11 insted of 5.2.9, and updated from ZF 1.10.3 to 1.10.7..</p>]]></summary>
			<author>
				<name><![CDATA[miguelp]]></name>
				<uri>http://www.zendcasts.com/forum/user/211/</uri>
			</author>
			<updated>2010-07-30T21:07:23Z</updated>
			<id>http://www.zendcasts.com/forum/topic/220/error-loading-models/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[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[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[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[Doctrine's I18n in code]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/topic/208/doctrines-i18n-in-code/new/posts/"/>
			<summary type="html"><![CDATA[<p>Hi!<br />&nbsp; &nbsp; Kindly view following link:<br /><a href="http://www.sitepoint.com/forums/showthread.php?p=4627974#post4627974">http://www.sitepoint.com/forums/showthr &#133; ost4627974</a></p><p>Can some one guide me what and where Iam doing wrong and how it can be rectified.</p><p>Thanks in advance</p>]]></summary>
			<author>
				<name><![CDATA[bluesapphire]]></name>
				<uri>http://www.zendcasts.com/forum/user/246/</uri>
			</author>
			<updated>2010-06-30T16:14:17Z</updated>
			<id>http://www.zendcasts.com/forum/topic/208/doctrines-i18n-in-code/new/posts/</id>
		</entry>
</feed>
