|
ClassMethods
Listing of lwmvc class methods which you might be interested in.
Featured, Phase-Implementation, Phase-Design lwmvc Class MethodssetCaptureExternalFormPosts : (Boolean) Should framework check to make sure external form posts are not occurring? handleRequest : (null) This method should be called once you define all your application framework properties. It will handle the request and pass of control to the controller that should be evaluated. getRequestParams : (null) Get the URL Rewrite values as an array with the following elements: controller action id getCleanPost : (Boolean, Defaults as True) Returns sanitized POST & GET variables. If Boolean false is passed, the stored POST variables will be cleared out. This is used when we defect form data via an external source and setCaptureExternalFormPosts is equal to true. setControllerDir: (String) Set the directory path to the location where you will be storing the controller classes for this application. The path can be relative based on your index.php file which calls handleRequest , or can be the full path. setTemplateDir: (String) Set the directory path to the location where you will be storing the template (.tpl) files for this application. {{{setDefaultController}}: (String) Set the name of the controller that will handle requests that goto the root of your application (ie: no controller class is known) setFrameworkDir: (String) Set the directory path to the location of the lwmvc.class.php file. This is needed so that multiple applications hosted on the same server can use the same instance of the framework without having to make copies of it. The path can be relative based on your index.php file which calls handleRequest , or can be the full path. |