From: Dan T. <da...@an...> - 2006-05-03 08:04:12
|
I have updated the files with before filters... class ApplicationController extends ApplicationBase { function valid_auth() { $user_is_valid =3D true; if (!$user_is_valid) { $this->redirect( array( 'controller' =3D> 'user', 'action' =3D> 'login' ) ); return false; } return true; } } A beforeFilters method is fired before each action and rendering... class ArticleController extends ApplicationController { function beforeFilters() { $this->applyBeforeFilter(new ExceptFilter('valid_auth', 'login')); } } Same download at: http://v.rummanddan.dk/vc.tar If you choose to use it, I will of course clean the code extensively... /Dan On 5/3/06, Kevin <ke...@dr...> wrote: > Andrew Turner wrote: > > So, what is the plan on the Model/Controller (or DB) side to get > > things pulled apart? TRUNK will have to be very broken for awhile as > > very core View->Controller funcs like "fof_get_items( lots, of, > > things)" needs to be either yanked and/or formed into something a > > little cleaner. While testing along the way is good to make sure we > > don't go backwards (too far), we also don't want to have to support > > every repo rev. > > I'm currently playing with Dan's front controller. > > I got side tracked from the model work look into using Dan's front > controller. I think it's important to evaluate and decide if we should > use this *before* getting too far into the UI redesign. > > I was able to convert panel.php (the feed list) to use the front > controller in about 30min. I think I'll try migrating one or two more > pages and then put the code up someplace for others to evaluate. I'd > rather not commit anything just yet. > > -Kevin > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job ea= sier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Fofredux-devel mailing list > Fof...@li... > https://lists.sourceforge.net/lists/listinfo/fofredux-devel > |