From: Jason S. <jsw...@ya...> - 2003-01-08 02:19:37
|
--- Arnold Cano <arn...@ya...> wrote: > 4. I also wanted to point out an easier way of > handling the mappings array. The current example uses > the following structure: > > ... > _ACTION_FORMS => array( > 'form' => array( > _TYPE => 'HelloForm' > ) > ), > ... > > This could be simplified into the following > structurally equivalent syntax: > > ... > $mappings[_ACTION_FORMS]['form'][_TYPE] = 'HelloForm'; > ... easy enough either way. One thing I did was eliminate the entire include directory by incorporating all four files into a single application_setup.php file. It was basically structured as: all the includes $mappings definition $options definition handleError functin definition I also wrote a function called "require_dir" that takes a directory as an argument and performs require_once on each *.php in the directory to accommodate the models, forms, and actions directories (which rapidly filled with files that I always wanted included in the application anyway). > > 5. I would also like to deprecate the Xml::marshal() > method in favor of PHP's WDDX serialize/deserialize > methods. > I just commented the include('ext/Xml.php'); line out of the phrame/include.php file and never used it. I view this as a portion of the hello XLS example, not as part of the phrame architecture. Regards, Jason __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |