TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Libraries & Extensions (http://www.talkphp.com/libraries-extensions/)
-   -   Zend Framework Model (http://www.talkphp.com/libraries-extensions/3342-zend-framework-model.html)

Devels 09-09-2008 03:36 PM

Zend Framework Model
 
How do you guys design a typical 'good' model?
I see alot of examples of models that extends Zend_Db_Table or Zend_Db_Select.
I don't like the way working with table relationship with Zend_Db_Table.
I just want to write complex SQL statements, prepare them and execute them. What is the way to do that?

sketchMedia 09-09-2008 06:45 PM

Mysqli prepared statements be of any use?

nice tutorial:
ext/mysqli: Part I - Overview and Prepared Statements

Devels 09-09-2008 07:50 PM

Quote:

Originally Posted by sketchMedia (Post 18296)
Mysqli prepared statements be of any use?

nice tutorial:
ext/mysqli: Part I - Overview and Prepared Statements

I already understands preparing, I need to know how to implement this using Zend Framework.

sketchMedia 09-10-2008 10:37 AM

Sorry, i misunderstood. But your question led me to believe that you wanted an alternative to the zend framework:

Quote:

I just want to write complex SQL statements, prepare them and execute them. What is the way to do that?

Devels 09-10-2008 12:14 PM

Quote:

Originally Posted by sketchMedia (Post 18302)
Sorry, i misunderstood. But your question led me to believe that you wanted an alternative to the zend framework:

I'm looking for good examples of models querying the database, with static functions.


All times are GMT. The time now is 06:52 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0