Francesc Guasch wrote: > I have a site with two entrance points, because of two different > authentication methods. The Mason components are located in one > directory. I need users who use the second login method also run > the same components. > > /door1/dir/dir/dir/file.html > > /door2/dhandler > > When someone comes through door1 the Mason components are executed. > > But when the users come through door2 I think I have to do: > > 1: locate the file in /door1 using $r->uri string > 2: if there is no file try to search for a dhandler in door1 > 3: $m->comp($file) > > Is there a Mason way to do this or do I have to split the uri > and search for comp_exists and dhandlers ? > > thank you
You can specify multiple component roots: http://masonhq.com/docs/manual/Admin.html#component_root If a component isn't found in the first component root, the next is searched. -Oli
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users