Page 2 of 2

Re: Overwrite existing templates (Laravel)

Posted: 26 Jan 2016, 20:19
by anilsharma
Well there is nothing wrong with extension . Problem was extension was not getting autoloaded . so i added

Code: Select all

  "psr-0": {
            "Client_Html": "ext/extension-name/client/html/src"
           }
to composer.json file . And it started working , But it gives Ambiguous class resolution Warning in on composer update . So let me know if you have any thoughts about it . Thanks

Re: Overwrite existing templates (Laravel)

Posted: 27 Jan 2016, 16:56
by aimeos
Did you've copied the client/html/src/ directory too? If yes, you must not do this!
Remove the classes and if you want to overwrite one, create that class with a different name and extend from the original class. Then you can configure the name of your new class.

Re: Overwrite existing templates (Laravel)

Posted: 01 Feb 2016, 21:08
by anilsharma
please see attachment

Re: Overwrite existing templates (Laravel)

Posted: 01 Feb 2016, 21:42
by aimeos
As I can see no files, it's difficult to say if everything is correct.

You should check this again:
- Do you use Laravel 5.1 LTS (5.2 made some problems up to last week)
- Do you use the Aimeos Laravel 1.x package for Laravel 5.1
- Did you create the right extension version (2015.x) at https://aimeos.org/developer/extensions/
- Only copy the "catalog/detail/body-default.html" template to the same location in your extension ("client/html/layouts/catalog/detail/body-default.html") and make a test change in the HTML code
- Clear your cache with "./artisan aimeos:cache"
- Check if the test change is visible in the catalog detail view

Laravel 5.2 works with Aimeos Laravel 2016.01 since last week.