Re: QFC and Auth

From: Date: Wed, 03 Mar 2004 11:00:20 +0000
Subject: Re: QFC and Auth
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11069@lists.php.net to get a copy of this message
<pear@daniu.de> wrote : > Hi! > > Did anybody ever use QFC and Auth together? > > How is it done best? > > I don't know how you guys use QFC but for me I > usually have for each Page: > -a Display class > -a Page classes > -one class per Action > > And then I have a main program where I only have: > -all the require_onces for all the files with the classes > -instantiate the controller > -instantiate all the Pages > -add Actions to the Pages (connect the Page-Action-Classes > with the Page) > -add the Pages to the Controller > -add Actions to the Controller (for me that is a Default > "Direct-Class" for each Form so that I can easily call > each page from anywhere) > > and finally: run the Controller > > Is this a good/right way? And ... above all: how can Auth > come in there? Do I need to check the rights in each Page > should I check the rights before adding pages to the > controller? The first thing to do is to check the rights. Then do whatever you want. Bertrand Mansion Mamasam

« previous php.pear.general (#11069) next »