From: Arnold C. <arn...@ya...> - 2003-01-13 17:08:42
|
I'm happy to see an alternative to the current include file method in place (which in my opinion is horrible). My development version uses a process very similar to your idea above using require_once(). The Xml.php file was originally to aid in development of Phrame applications that used XSLT. However, being that the serializing (and deserializing) can be handled by WDDX, I don't see a need for keeping the Xml.php class. Arnold > --- Jason Sweat <jsw...@ya...> wrote: > > --- 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 > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld > = > > Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Phrame-devel mailing list > > Phr...@li... > > > https://lists.sourceforge.net/lists/listinfo/phrame-devel > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up > now. > http://mailplus.yahoo.com > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |