ActiveWAFL Crash Course

The WAFL Cones Ice Cream Shop, Version 1.0

3.3 Enable Extensions and Controls

ActiveWAFL Controls and Extensions are reusable application components.

For Wafl Cones, we'll need the UserAuth extension and the Docking control.

The Controls.syrp file before being trimmed down to only what we need.
  1. PreRegisterControls
  2.    Docking
  3.    FullHeight
  4.    DropdownMenu
  5.    DropdownButton
  6.    DatePicker
The Controls.syrp file post-edit.
  1. PreRegisterControls
  2.    Docking
Extensions.syrp post-edit.
  1. Templating\\Smarty3
  2.     CompileFolder       =   {$app->Get_Settings()->Get_Paths()->Get_Application()->Get_Temp().\"TemplateCompiles\"}
  3.     CacheFolder         =   {$app->Get_Settings()->Get_Paths()->Get_Application()->Get_Temp().\"TemplateCache\"}
  4.     TemplateFolders     =   //added in view engine currently
  5.     PluginFolders       =   //added in view engine currently
  6.     EnableCaching       =   //this should be set in code for view engine
  7.     ErrorReporting      =   {E_ALL}
  8.     ForceCompile        =   {false}
  9.  
  10. Users\\UserAuthentication
  11.     FormField1                          =   FullName
  12.     FormField2                          =   EmployeeId
  13.     ActionRequestVariable               =   UserAuthAction
  14.     ActionRequestVariableNewUserValue   =   NewAccount
  15.     ActionRequestVariableLogoutValue    =   Logout
  16.     RequiresCaptcha                     =   false
  17.     UserTable                           =   Employees
  18.     UsernameColumn                      =   FullName
  19.     PasswordColumn                      =   EmployeeId
  20.     UserTableKeyField                   =   EmployeeId
  21.     LogoutRedirect                      =   /
  22.     DataConnection                      =   Master
  23.     UserClass                           =   \\WaflCones\\FunctionalModel\\Employee

If you now go back to your web browser and refresh the screen, you'll probably get an error similar to the following.

Don't worry. If you're getting a screen like the one above, then that means you did everything correctly!
The UserAuth extension is set up to expect a database connection.
We'll give it one soon.

You're now all set to go the the next part of this course, Generating the Models.