Codex NG
Recurrent Flamer
- Joined
- Jul 24, 2015
- Messages
- 2,994
- Solutions
- 12
- Reaction score
- 1,659
I think the AAC's need a rewrite as to how they add content, possibly a module based structure would be idealistic as opposed to the current structure which exists.
Where front-end developers can focus on the layout as opposed to the layout and the rendered content, allowing them to just reference modules rather than big blocks of code.
I wrote a raw module class some time ago which would allow to do just that, load or unload content assigned to the specific modules.
This would make building templates much more simplistic similar to popular cms's.
Development would be simplified for adding or removing custom plugins without 'breaking' the existing layout or causing conflicts.
This would also allow back-end developers more freedom to turn on and off different aspects of the site.

What are your thoughts?
Where front-end developers can focus on the layout as opposed to the layout and the rendered content, allowing them to just reference modules rather than big blocks of code.
I wrote a raw module class some time ago which would allow to do just that, load or unload content assigned to the specific modules.
This would make building templates much more simplistic similar to popular cms's.
Development would be simplified for adding or removing custom plugins without 'breaking' the existing layout or causing conflicts.
This would also allow back-end developers more freedom to turn on and off different aspects of the site.
What are your thoughts?
PHP:
<?php
class Module{
// module array to grab our objects contents
protected static $module = array();
// constructor
public function __construct($name, $object){
self::CreateModule($name, $object);
}
// create a module that can be referenced by name
protected static function CreateModule($name, $object){
self::$module[$name] = $object;
}
// return the required data to be displayed
public static function getModule($name, $index){
$temp = self::$module[$name];
return $temp->{$index};
}
// get the total amount of modules that exist
public static function getModuleAmount(){
return sizeof(self::$module);
}
}
?>
Last edited: