[dev] Hook for render comments
    Chuck Hagenbuch 
    chuck at horde.org
       
    Tue Nov 23 13:58:51 PST 2004
    
    
  
Quoting Duck <duck at obala.net>:
>> Second, I'd rather see this done by making the API function return an array
>> or set of arrays that can be passed to a Horde_Template for formatting (or
>> something else if you like), instead of with a hook. Or by passing in a
>> Horde_Template file to the API function, which will be filled and then
>> returned. How's that sound?
>
> I think that Horde_Template is not flexible as I wish/need. As I know, I
> cannot pass a portion of php code in the template file. For example to re-set
> a sort order of comments or splitting the results per pages or decide if I
> wish to user Horde_Tree or not.
Okay, so get back the array directly, work with it, and then pass it to a
template of some sort... ?
-chuck
-- 
"But she goes not abroad in search of monsters to destroy." - John 
Quincy Adams
    
    
More information about the dev
mailing list