QFC and Auth
| From: | Daniel Kopp | Date: | Wed, 03 Mar 2004 10:52:37 +0000 |
| Subject: | QFC and Auth | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-11068@lists.php.net to get a copy of this message | ||
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?
Any suggestions? Did anybody do this before?
regards
Daniel