[OWASP_PHPSEC] Default Controller and Front Controller

rahul chaudhary rahul300chaudhary400 at gmail.com
Sun Sep 8 06:19:20 UTC 2013


Hello,

*1) The default controller class inside framework/control/default.php*
I cannot understand why the Handle method contains code to scan itself.

*2) The front controller inside framework/_core/front.php*
In this file as I understand, first the method "MatchRoutes" will run and
depending on the route, it will load the controller file. So lets suppose
that it loads framework/control/default.php

After this, the "StartController" function will run. In this function, I
see that first the "GetClasses" method is run on
"framework/control/default.php" which finds classes inside this file.
However seeing the contents of this file, I cannot find any class names.
So, how is this working ??

Also my perception was first that after "MatchRoutes", we get the
controller. But then again in "StartController" I see that after getting
class names, it again searches for the appropriate controller.

So, what is the difference between finding controller in "MatchRoutes" and
finding controller in "StartController"


*3) Also can you please tell me the default controller location in
jFramework ??*

-- 
Regards,
Rahul Chaudhary
Ph - 412-519-9634
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/owasp_php_security_project/attachments/20130908/1bc554ad/attachment.html>


More information about the OWASP_PHP_Security_Project mailing list