<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: ZF Community/CMS Bugfixes</title>
	<link>http://www.prodevtips.com/2008/03/12/zf-communitycms-bugfixes/</link>
	<description>Dev related notes, tutorials and anecdotes</description>
	<pubDate>Sat, 22 Nov 2008 10:50:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: gianni</title>
		<link>http://www.prodevtips.com/2008/03/12/zf-communitycms-bugfixes/#comment-1596</link>
		<dc:creator>gianni</dc:creator>
		<pubDate>Fri, 15 Aug 2008 16:36:40 +0000</pubDate>
		<guid>http://www.prodevtips.com/2008/03/12/zf-communitycms-bugfixes/#comment-1596</guid>
		<description>Some immediate problem to make code workink.&lt;br&gt;1- &lt;br&gt;[14-Aug-2008 15:10:58] PHP Fatal error:  Call to undefined method User::fetchRowToArr() in C:wampwwwzfcmsclassesExtController.php on line 291&lt;br&gt;&lt;br&gt;missed from .classesExtModel.php function fetchRowToArrow  ...&lt;br&gt;i find that function in Wrinting a Cms/coomunity .... : Part 2 and added at the end of file&lt;br&gt;&lt;br&gt;	function fetchRowToArr($id_value = false, $as_array = true, $id_field = false, $where = false){ &lt;br&gt;        if($where != false){ &lt;br&gt;            $where_sql = array(); &lt;br&gt;            foreach($where as $field =&#62; $value) &lt;br&gt;                $where_sql[] = $this-&#62;getAdapter()-&#62;quoteInto("$field = ?", $value); &lt;br&gt;            $row = $this-&#62;fetchRow($where_sql); &lt;br&gt;        }else if($id_field == false){ &lt;br&gt;            $row = $this-&#62;find($id_value)-&#62;current(); &lt;br&gt;        }else{ &lt;br&gt;            $where = $this-&#62;getAdapter()-&#62;quoteInto("$id_field = ?", $id_value); &lt;br&gt;            $row = $this-&#62;fetchRow($where); &lt;br&gt;        } &lt;br&gt; &lt;br&gt;        if($as_array == true &#38;&#38; $row != false) &lt;br&gt;            return $row-&#62;toArray(); &lt;br&gt;        else &lt;br&gt;            return $row; &lt;br&gt;    }&lt;br&gt;&lt;br&gt;2-&lt;br&gt;[15-Aug-2008 15:46:38] PHP Fatal error:  Class &#39;Zend_Mail&#39; not found in C:wampwwwzfcmscontrollersUserController.php on line 208&lt;br&gt;[15-Aug-2008 16:17:11] PHP Fatal error:  Class &#39;Zend_Mail_Transport_Smtp&#39; not found in C:wampwwwzfcmscontrollersUserController.php on line 209&lt;br&gt;&lt;br&gt;in .index.php we must load  zend module for mail &lt;br&gt;&lt;br&gt;// added by rg&lt;br&gt;Zend_Loader::loadClass(&#39;Zend_Mail&#39;);&lt;br&gt;Zend_Loader::loadClass(&#39;Zend_Mail_Transport_Smtp&#39;);&lt;br&gt;&lt;br&gt;3- investigation about &lt;br&gt;[15-Aug-2008 16:04:49] PHP Fatal error:  Call to undefined method User::updateMe() in C:wampwwwzfcmscontrollersUserController.php on line 150&lt;br&gt;&lt;br&gt;Function already in the pencil ???&lt;br&gt;&lt;br&gt;hope this can help someone - thank for the excellent job done&lt;br&gt;&lt;br&gt;Gianni</description>
		<content:encoded><![CDATA[<p>Some immediate problem to make code workink.<br />1- <br />[14-Aug-2008 15:10:58] PHP Fatal error:  Call to undefined method User::fetchRowToArr() in C:wampwwwzfcmsclassesExtController.php on line 291</p>
<p>missed from .classesExtModel.php function fetchRowToArrow  &#8230;<br />i find that function in Wrinting a Cms/coomunity &#8230;. : Part 2 and added at the end of file</p>
<p>	function fetchRowToArr($id_value = false, $as_array = true, $id_field = false, $where = false){ <br />        if($where != false){ <br />            $where_sql = array(); <br />            foreach($where as $field =&gt; $value) <br />                $where_sql[] = $this-&gt;getAdapter()-&gt;quoteInto(&#8221;$field = ?&#8221;, $value); <br />            $row = $this-&gt;fetchRow($where_sql); <br />        }else if($id_field == false){ <br />            $row = $this-&gt;find($id_value)-&gt;current(); <br />        }else{ <br />            $where = $this-&gt;getAdapter()-&gt;quoteInto(&#8221;$id_field = ?&#8221;, $id_value); <br />            $row = $this-&gt;fetchRow($where); <br />        } </p>
<p>        if($as_array == true &amp;&amp; $row != false) <br />            return $row-&gt;toArray(); <br />        else <br />            return $row; <br />    }</p>
<p>2-<br />[15-Aug-2008 15:46:38] PHP Fatal error:  Class &#39;Zend_Mail&#39; not found in C:wampwwwzfcmscontrollersUserController.php on line 208<br />[15-Aug-2008 16:17:11] PHP Fatal error:  Class &#39;Zend_Mail_Transport_Smtp&#39; not found in C:wampwwwzfcmscontrollersUserController.php on line 209</p>
<p>in .index.php we must load  zend module for mail </p>
<p>// added by rg<br />Zend_Loader::loadClass(&#39;Zend_Mail&#39;);<br />Zend_Loader::loadClass(&#39;Zend_Mail_Transport_Smtp&#39;);</p>
<p>3- investigation about <br />[15-Aug-2008 16:04:49] PHP Fatal error:  Call to undefined method User::updateMe() in C:wampwwwzfcmscontrollersUserController.php on line 150</p>
<p>Function already in the pencil ???</p>
<p>hope this can help someone - thank for the excellent job done</p>
<p>Gianni</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gianni</title>
		<link>http://www.prodevtips.com/2008/03/12/zf-communitycms-bugfixes/#comment-1075</link>
		<dc:creator>gianni</dc:creator>
		<pubDate>Fri, 15 Aug 2008 15:36:40 +0000</pubDate>
		<guid>http://www.prodevtips.com/2008/03/12/zf-communitycms-bugfixes/#comment-1075</guid>
		<description>Some immediate problem to make code workink.
1- 
[14-Aug-2008 15:10:58] PHP Fatal error:  Call to undefined method User::fetchRowToArr() in C:\wamp\www\zfcms\classes\ExtController.php on line 291

missed from .classes\ExtModel.php function fetchRowToArrow  ...
i find that function in Wrinting a Cms/coomunity .... : Part 2 and added at the end of file

	function fetchRowToArr($id_value = false, $as_array = true, $id_field = false, $where = false){ 
        if($where != false){ 
            $where_sql = array(); 
            foreach($where as $field =&#62; $value) 
                $where_sql[] = $this-&#62;getAdapter()-&#62;quoteInto("$field = ?", $value); 
            $row = $this-&#62;fetchRow($where_sql); 
        }else if($id_field == false){ 
            $row = $this-&#62;find($id_value)-&#62;current(); 
        }else{ 
            $where = $this-&#62;getAdapter()-&#62;quoteInto("$id_field = ?", $id_value); 
            $row = $this-&#62;fetchRow($where); 
        } 
 
        if($as_array == true &#38;&#38; $row != false) 
            return $row-&#62;toArray(); 
        else 
            return $row; 
    }

2-
[15-Aug-2008 15:46:38] PHP Fatal error:  Class 'Zend_Mail' not found in C:\wamp\www\zfcms\controllers\UserController.php on line 208
[15-Aug-2008 16:17:11] PHP Fatal error:  Class 'Zend_Mail_Transport_Smtp' not found in C:\wamp\www\zfcms\controllers\UserController.php on line 209

in .index.php we must load  zend module for mail 

// added by rg
Zend_Loader::loadClass('Zend_Mail');
Zend_Loader::loadClass('Zend_Mail_Transport_Smtp');

3- investigation about 
[15-Aug-2008 16:04:49] PHP Fatal error:  Call to undefined method User::updateMe() in C:\wamp\www\zfcms\controllers\UserController.php on line 150

Function already in the pencil ???

hope this can help someone - thank for the excellent job done

Gianni</description>
		<content:encoded><![CDATA[<p>Some immediate problem to make code workink.<br />
1-<br />
[14-Aug-2008 15:10:58] PHP Fatal error:  Call to undefined method User::fetchRowToArr() in C:\wamp\www\zfcms\classes\ExtController.php on line 291</p>
<p>missed from .classes\ExtModel.php function fetchRowToArrow  &#8230;<br />
i find that function in Wrinting a Cms/coomunity &#8230;. : Part 2 and added at the end of file</p>
<p>	function fetchRowToArr($id_value = false, $as_array = true, $id_field = false, $where = false){<br />
        if($where != false){<br />
            $where_sql = array();<br />
            foreach($where as $field =&gt; $value)<br />
                $where_sql[] = $this-&gt;getAdapter()-&gt;quoteInto(&#8221;$field = ?&#8221;, $value);<br />
            $row = $this-&gt;fetchRow($where_sql);<br />
        }else if($id_field == false){<br />
            $row = $this-&gt;find($id_value)-&gt;current();<br />
        }else{<br />
            $where = $this-&gt;getAdapter()-&gt;quoteInto(&#8221;$id_field = ?&#8221;, $id_value);<br />
            $row = $this-&gt;fetchRow($where);<br />
        } </p>
<p>        if($as_array == true &amp;&amp; $row != false)<br />
            return $row-&gt;toArray();<br />
        else<br />
            return $row;<br />
    }</p>
<p>2-<br />
[15-Aug-2008 15:46:38] PHP Fatal error:  Class &#8216;Zend_Mail&#8217; not found in C:\wamp\www\zfcms\controllers\UserController.php on line 208<br />
[15-Aug-2008 16:17:11] PHP Fatal error:  Class &#8216;Zend_Mail_Transport_Smtp&#8217; not found in C:\wamp\www\zfcms\controllers\UserController.php on line 209</p>
<p>in .index.php we must load  zend module for mail </p>
<p>// added by rg<br />
Zend_Loader::loadClass(&#8217;Zend_Mail&#8217;);<br />
Zend_Loader::loadClass(&#8217;Zend_Mail_Transport_Smtp&#8217;);</p>
<p>3- investigation about<br />
[15-Aug-2008 16:04:49] PHP Fatal error:  Call to undefined method User::updateMe() in C:\wamp\www\zfcms\controllers\UserController.php on line 150</p>
<p>Function already in the pencil ???</p>
<p>hope this can help someone - thank for the excellent job done</p>
<p>Gianni</p>
]]></content:encoded>
	</item>
</channel>
</rss>
