From: Jason S. <jsw...@ya...> - 2003-05-21 17:59:56
|
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 |