Re: uri ndf mapping proposal

Manuel Holtgrewe <[email protected]> Fri, 25 Mar 2005 00:40:14 +0100
Newsgroups gmane.comp.lib.binarycloud.devel
Message-ID <[email protected]>
Jean-Christophe Michel schrieb:
> Hi,
> 
> I'm thinking to a way to:
> - reduce the htdocs/* similar files
>  how would it be possible to do simply in bc:
> - protect some uris with role base access
> - have a site wide url conf file used to produce and receive uris 
> (printuri in tpls if role matches, call ndf from an uri)
> 
> I propose to have a class ProjectMap extending Project, that would use 
> info stored into uri.conf.xml with units like this one:
> 
>   <section id="/index">
>     <section id="roles">
>       <param>roles.editors</param>
>     </section>
>     <param id="ndf">app/top/Top.ndf.xml</param>
>   </section>
> 
> A tool could even try to geenrate the RewriteRules to optimize uri -> 
> ndf redirecting :
> 
> RewriteRule  ^/index  /work.php?uri=/index&ndf=app/top/Top.ndf.xml [L]
>   ...

What about having a index.php that does:

if ($uri == 'asdf')
   $project->getPage('asdf');

Protecting URIs could also be done with AuthorizeableAction. Just use 
Access URI:/admin/foo/.* as the string and parse it accordingly.

*m

-- 
GPG key: http://www.ggnore.net/~mholtgrewe/personal/files/public_key.asc
_______________________________________________
dev mailing list
dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
http://lists.binarycloud.com/mailman/listinfo/dev