Display all database records with Prado

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tuananh87vn
    New Member
    • Sep 2007
    • 63

    Display all database records with Prado

    hi,
    I've just studied Prodo Framwork and I don't know how to display all records to a webpage, say, home.page

    Is that something like we call a "SELECT * FROM table" query in the back-end home.php file then, err, do something in the front-end home.page... Anyone can help me?
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    We know PHP, we don't know Prado.

    Please consult the Prado manual.


    From my experience for the general query you're looking for, good frameworks always write the query for you. They make you do something like $customers->getAll() or similar.

    Prado is not MVC (I think), so never I really went into it.

    "A framework is only as good as its documentation." , that's a statement everyone should consult when adopting a framework.

    Me? I had enough of crappy manuals, I built my own. :)

    Take care,



    Dan

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      Hi.

      Don't know Prado, but it doesn't sound very impressive if it requires you to do such basic grunt-work.

      Check out the examples for mysql_query in the manual. The second is pretty much standard for this sort of stuff.

      Comment

      Working...