Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Yes it's working and you could keep it without anything else. But maybe you want to make it more "dev friendly". There are several solutions to mask your data tables relations :</p> <ul> <li>You can use <code>Table Data Gateway</code>, extending <code>Zend_Db_Table_Abstract</code>. Here is a good <a href="http://akrabat.com/wp-content/uploads/Getting-Started-with-Zend-Framework.pdf" rel="nofollow noreferrer">beginner guide from Rob Allen</a> (see 'The Model' section). It's also the chosen way in the ZF reference guide.</li> <li>You can choose the 'Mapper' way. Here is the <a href="http://framework.zend.com/manual/1.12/fr/learning.quickstart.create-model.html" rel="nofollow noreferrer">quickstart guide from ZF website</a> (be careful it's interresting only for <code>Application_Model_Guestbook</code> and <code>Application_Model_GuestbookMapper</code> classes and the rest is very confusing imo. Be careful with it)</li> <li>You could also choose to use <code>Table Data Gateway</code> PLUS extending <code>Zend_Db_Table_Row</code>. This is my preferred solution. You'll find more help on Stackoverflow, especially on <a href="https://stackoverflow.com/questions/4843676/zend-framework-why-should-i-use-data-mapper-db-table-row">this page</a>. I think you will prefer this solution.</li> <li>Finally, you could choose to use an external ORM, like Doctrine. Some help to use Doctrine with ZF <a href="http://www.throrinstudio.com/dev/zf/introduction-au-zf-partie-5-doctrine/" rel="nofollow noreferrer">here</a> and <a href="http://www.tribulations.eu/articles/doctrine-2-et-zend-framework.html" rel="nofollow noreferrer">here</a> (in french, I think you won't mind :) ) or <a href="http://net.tutsplus.com/tutorials/php/zend-framework-from-scratch-models-and-integrating-doctrine-orm/" rel="nofollow noreferrer">here in english</a></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload