Cleaned up some legacy HTML from the admin template
Removed comments
- Removed legacy code from fetch_class (fetchAll)
- Added support for not having to create an object for every DB table within the CMS & front-end, now if an object doesn't exist it will use just the base class 'table' and pass through the MySQL table name to $this->mysql_table_name (before calling set_di() as this proceeds to call __init() and fetches our MySQL fields)
Added support for not having to create an object for every DB table within the CMS & front-end, now if an object doesn't exist it will use just the base class 'table' and pass through the MySQL table name to $this->mysql_table_name (before calling set_di() as this proceeds to call __init() and fetches our MySQL fields)
- Removed __controller() as it wasn't required
- Added initial method get_module_list() for returning our module list page
Added view of our module list page to default cms_module view
Field made public for the time being - Need to add new table for CMS module field e.g. `cms_module_[module_name]_fields` - This will need to store friendly name(s) for each of the fields, their error checking field type e.g. email, web address, string(LENGTH) and view options for the CMS such as show on list page
Changed get_module_list() to output all fields for the time being onto the list page.
Added root defines within index.php so the base dir can be easily overwritten should your files be installed in another dir entirely.