On Tue, Jan 13, 2009 at 08:55:42AM -0800, Jonathan Swartz wrote: > Ooh, that's a book error! The right method is > > $m->depth() > > $m->request_depth() tells you how many subrequests deep you are - it > will almost always be 1. > > (Fix it Dave! :))
Meanwhile I tried the following: if ($m->caller) { # indirect code } else { # top-level component } Is that OK as well? -- http://www.critikart.net ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users