From: Alex <ale...@ya...> - 2003-05-22 12:33:24
|
Hi Jason, I seems almost like you are passing request / session state (data) there. If that is indeed the case, then you'd best put the id in the request/session and retrieve it again in the edit action/template. For this thing, I myself added the HttpRequestServletand HttpSession classes. (see previous messages for url)This, to me, sounds a bit like request state. You would use the php $SESSION for this in the phrame 2.0 release, if I remember correctly. I could be wrong of course, seeing as though I haven't seen your exact situation. Just my 2cts. If you do find that you use it often, then indeed: we'd best add a function for it now! :o) Perhaps if somebody fired up their text-editor/zip/repackage/upload tool to add this, perhaps also fix the way actions are included and fix the phrame.php -> index.php http-redirecting...We'd have a valuable (and backwards compatible) update for the phrame 2.0 package! Kind regards, Alex Jason Sweat <jsw...@ya...> wrote:At the end for my Action::Perform methods, I seem to often have code that looks like this: $o_forward =& $poActionMapping->Get('edit'); $o_forward->SetPath($o_forward->GetPath().'&id='.$i_id); return $o_forward; An example of this might be a user selecting a particular item to edit from a list. You would have a view for "edititem" but you typically have to pass which item via a URL parameter. Would it make sense to add an ActionForward::AppendPath method so these could just be written: $o_forward->AppendPath('&id='.$i_id); It could easily be written as: function AppendPath($add_path) { $this->_path += $add_path; } Thoughts? Jason __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software. http://www.objectstore.net/sourceforge _______________________________________________ Phrame-devel mailing list Phr...@li... https://lists.sourceforge.net/lists/listinfo/phrame-devel --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. |