Welcome Guest, Not a member yet? Register   Sign In
Advanced Shard Loading v0.1 (modular seperation)
#2

[eluser]Phil Sturgeon[/eluser]
Spelling mistake!

Code:
$lang['error_blank_module'] = "You seep <- seem to be missing a module to load.";

Other than that, good stuff. Reminds me more of the way old Postnuke modules worked. Have a file for each and it knows exactly what ones to load. This is a very different take on modules to Zachs, but both have very good reasons for implementation. Good work!

For your asset management, why not take a look at the helper I made when I started using Zach's system, plainly called Asset Helper.

An example being:

Code:
image_asset('imagename.jpg', 'modulename', array('alt'=>'Image alt tag!'));

The folder structure would be:

Quote:assets/
-- images/
-- css/
-- js/
-- modules/
-- -- modulename/
-- -- -- images/
-- -- -- css/
-- -- -- js/

As you can see in the code the folder names are all hard-coded, but it would take about 30 seconds to add a config file if you wished to use this.


Messages In This Thread
Advanced Shard Loading v0.1 (modular seperation) - by El Forum - 09-28-2007, 04:56 AM
Advanced Shard Loading v0.1 (modular seperation) - by El Forum - 09-28-2007, 05:56 AM
Advanced Shard Loading v0.1 (modular seperation) - by El Forum - 09-28-2007, 06:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB