Women in Technology

Hear us Roar



Article:
  Three-Tier Development with PHP 5
Subject:   Not very infomative
Date:   2005-05-05 14:53:19
From:   mattneedles
This article is vague and not very informative. The author dwells on displaying header, footer, cancel button but does not clearly state how the initial setup is done. For that mattter, "Simplify Business Logic with PHP DataObjects" by Darryl Patterson is more informative and easy to understand:


http://www.onlamp.com/pub/a/php/2004/08/05/dataobjects.html


Is there a way to unplug the DB object as it is only an abstraction layer for the database to address situations where the database vendor is changed in future? The chances of switching the database is mostly nil and the additional DB layer only slows down the process. Despite the DB_DataObjects being built on top of DB object, it seems like we still have to construct our own result set in the above example which is redundant:


$user->find();
while ($user->fetch()) {
$smarty->append('users', array(
'ID' => $user->user_Id,
'FIRSTNAME' => $user->first_Name,
'LASTNAME' => $user->last_Name,
'EMAIL' => $user->email,
));


I wish this article on DB_DataObjects was written by Darryl Patterson as he said he might write it in future.

Full Threads Newest First

Showing messages 1 through 5 of 5.

  • Not very infomative
    2005-05-06 07:58:54  lycruzc [View]

    Excuse me, but you cannot say that is vague this article, for which I see You are a novice in PHP and does not know : The Framework PEAR, Smarty and the Development in Three Tier.
    • Not very infomative
      2005-05-06 14:34:38  mattneedles [View]

      You haven't any idea as to who I'm, what I do or what I've achieved with Smarty and 3-tier architecture. I've successfully unplugged the DB from DB_DataObjects to use raw PHP functions for MySQL database access for improving performance on high-traffic sites.

      Forget about the PEAR framework, Smarty, 3-tier... how about the basic PHP? Advising another user to set:

      register_globals=OFF => register_globals= ON

      does not make you a guru in PHP in the first place.


      Here is the usage documentation on DB_DataObjects:

      http://pear.activeventure.com/package/package.database.db-dataobject.html


      I wonder who has approved your article on OnLamp.

      Excuse you!
      • Not very infomative
        2005-05-06 18:46:51  lycruzc [View]

        The best form to say you know is to show it; not alone saying that know it. Then it writes an article and shows what you know for OnLamp; utilizing PHP 5.

        Excuse you!
      • Not very infomative
        2005-11-26 23:24:27  infolock [View]

        "You haven't any idea as to who I'm, what I do or what I've achieved with Smarty and 3-tier architecture. I've successfully unplugged the DB from DB_DataObjects to use raw PHP functions for MySQL database access for improving performance on high-traffic sites."


        If you did what you are saying you did, you obviously are a novice. Novices use the approach of raw php functinos for mysql database access. Thus why you get haxx0red by the kiddies.

        You remind me of gremlin. He seems to have the same mentality as you : mind-numbing.
      • Not very infomative
        2007-01-31 07:14:21  greenphpcoder [View]

        Thats brill but why do all that, everyone knows that HTML, its the future!