- Module aliases moved into their own method to allow easy extending (currently extended by the CMS)
- di->add() call updated to di->set()
- hardcoded '/inc/module/' dir refactored to use dynamic path from $this->di->asset->get_module_dir()
- hardcoded '/inc/module/' dir refactored to use dynamic path from $this->di->asset->get_module_dir()
- Declared new var $fn_column (public) - Designed to allow the unique field in URL to be something other than an fn e.g. `table_name` used in `cms_module` for CMS URLs
- Type hinting added for __controller() - Added throughout codebase
Added methods for fetching of singular/plural term
Although this is currently very weak, for the time being object names are the singular version of the module e.g. pages module has a page object (using the `page` DB table) - Calls new $this->di->get->singular() method
- di->add() refactored to di->set()
- added get() - __get() is now an alias of this as magic methods can be slower this provides users with an alternate if they are being extremely performance conscience
Type hinting added to __controller()
removed $this->di->db->esc() on tablename as it's invalidating the MySQL query
`cms_module` module created along with cms_module object for DB fetching
Default module template created - This will be used to generate a new module's code from the CMS on following module DB table creation - Allows developers to have their own default template with ease.
CMS Dashboard view created - Currently un used and only has the defaults from the template
get_nav() now works correctly with the template and pulls in `cms_module_group` with `cms_module` items aggregated within
Removed date functionality - It's un unsed as we're using phps date('Y') for this.
Type hinting added to __controller()
Added 'cms' constant (bool)
- Removed redundant call to __init()
- Added extend of new method get_module_aliases()
- Fixed path to modernizer JS lib
Fixed invalid images paths within template
Created social wrapper - Currently un used - Will be used for tweets within the CMS shortly