Date index for Mar 2003


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [achievo] Overloading problem



Hi,

Peter C. Verhage wrote:


the process, but not *to* early else it will be overwritten by ATK. So you need to figure out when's the best time to do so (and from where, maybe you can do it in your module, but's I don't know if this is too early or too late...)

If it's only for one node, you could do this in an overriden dispatch() method in the node; this would be just in time. Something like this


function dispatch($postvars, $fullpage=true)
{
  global $g_layout;
  $g_layout = new myExtendedLayoutClass();

  return parent::dispatch($postvars, $fullpage);
}

If it's for all nodes (the entire app), the best place is probably in dispatch.php, right before the call to dispatch().

Greetings,
Ivo



http://www.achievo.org/lists achievo.org - ©1999-2002 ibuildings.nl BV