Lets say you have a series of modules with similar asset names and need to avoid collision between asset names. There are two things you need to do.
First, add you paths using NAMESPACE in your module/Application/config/module.config.php file.
namespace Application; return array( 'asset_manager' => array( 'resolver_configs' => array( 'paths' => array( __NAMESPACE__ => __DIR__ . '/../public/assets', ), ), ), );
Second, create your directory structure in your module's public folder like so:
├── Module.php ├── config ├── public │ └── assets │ └── Application │ ├── css │ ├── images │ └── js ├── src └── view
Since AssetManager maps your modules public directory to the web root your assets path will look like this: http://localhost/Application/css/example.css
There was an error while loading. Please reload this page.