All KAS URLs end with .kas
Regular Page URL
This page is either a View (Table) or a Form (Add), the option types are predefined in the _SECTIONS.php file and saved into the database when /init is called. Therefore the option types are not passed along the URL
View Pages
op_SECTION~NAME-KMID-KSMID-KSMOID.kas
Edit Pages
//when there is a page that is being edited or has an ID op_SECTION~NAME-KMID-KSMID-KSMOID_idvalue_optiontypes.kas
$opCase |
op_SECTION~NAME (file name with underscores instead of ~ and .php extension) |
$KMID |
KAS Main Menu ID |
$nav[0] |
Name of the Main Menu |
$KSMID |
KAS Sub-menu ID |
$kassec / $nav[1] |
Name of the Sub-menu Section |
$KSMOID |
KAS Sub-menu Option ID (the ID of the actual page) |
$idvalue URL_IDVALUE |
The ID sent possible for an edit of a specific DB value. $idvalue is very vulnerable as it sometimes needs to be unset or modified in pages with multiple forms and tables. Therefore we have the constant URL_IDVALUE that preserves the original value. The ASIDE sections always re-declare $idvalue = URL_IDVALUE |
View Pages with Pagination
op_SECTION~NAME-KMID-KSMID-KSMOID-$limitFrom-$limitCount.kas
View Pages with Categories (option type B) $limitFrom and $limitCount are added automatically when using Categories
op_SECTION~NAME-KMID-KSMID-KSMOID-$limitFrom-$limitCount-$thisCATID.kas
$limitFrom |
op_SECTION~NAME (file name with underscores instead of ~ and .php extension) |
$limitCount |
KAS Main Menu ID |
$thisCATID |
ID value of the Category Selected on the drop down |
View Pages with Search Field
op_SECTION~NAME-KMID-KSMID-KSMOID.kas?sfields=(encrypted search fields)&qsearch=searchquery
$sfields |
DB search fields predefined in the file (these are encrypted CSV) |
$qsearch |
Search Query written in the search field |