Git Product home page Git Product logo

Comments (13)

markcameron avatar markcameron commented on August 23, 2024

Hi, make sure you're using "devfactory/taxonomy": "3.0.*" and not 3.0.x-dev. There's some work being done on the dev version that will break things.

from taxonomy.

Trexology avatar Trexology commented on August 23, 2024

Yes i am using "devfactory/taxonomy": "3.0.*"

The installed version is 3.0.1

from taxonomy.

offroff avatar offroff commented on August 23, 2024

I installed this a minute ago and got almost the same error:
FatalErrorException in TaxonomyController.php line 17:
Class 'BaseController' not found

from taxonomy.

offroff avatar offroff commented on August 23, 2024

I tried to add 'BaseController' => Illuminate\Routing\Controller::class as an alias but then I got an error at line 23:
Cannot call constructor

Illuminate\Routing\Controller is an abstract class so that can't be constructed of course. I don't know which BaseController we need.

from taxonomy.

Trexology avatar Trexology commented on August 23, 2024

Seem like there are some work going on.

The latest commit in 3.0 branch mention something about admin UI

from taxonomy.

markcameron avatar markcameron commented on August 23, 2024

Hi all,

sorry for the delay in replying. So you guys have been sneaky and been trying to access the Admin interface that I made that is quite customized to our bootstrap admin theme (AdminLTE). I hadn't bothered getting it to work with Laravel 5 controller/views when I updated the package.

I spent a short time today fixing up what my colleague started the other day. Still needs work though (translations, testing). But if you use the 3.0.x@dev branch, it should now load those pages, with interesting theming depending on your css.

To get it to work you'll need to add the following to your routes.php file:

Route::controller('taxonomy', '\Devfactory\Taxonomy\Controllers\TaxonomyController');
Route::controller('terms', '\Devfactory\Taxonomy\Controllers\TermsController');

and also edit the config/taxonomy.config.php file to use the correct layout.extends value that you put in your @extends for your blade template files.

The route_prefix value is no longer used I believe since you placed the routes above in your routes.php file, As opposed to setting the routes in the package route file like I did for Laravel 4. This allows you to apply middleware to the route anyway you wish rathen then me needing to bake in that functionality.

Let me know if you have any other problems.

from taxonomy.

Trexology avatar Trexology commented on August 23, 2024

Hi @markcameron

Thanks, I am able to load the UI now.

Spotted small errors when trying to load the Terms UI.

Inside terms/index.blade line:188 should be:
{!! Html::script('bla bla bla') !!}
instead of
{!! HTML::script('bla bla bla') !!}

The next problem is:
vendor/taxonomy/js/jquery.nestable.js
does not seems to load at all, not sure if it is due to the path or something else that is preventing the loading.

from taxonomy.

markcameron avatar markcameron commented on August 23, 2024

Sorry, forgot to mention that you need to publish the assets

php artisan vendor:publish --tag=public

that will but the nestable js file in the public folder.

I'll fix the HTML:: call

from taxonomy.

sirsquall avatar sirsquall commented on August 23, 2024

Hi,

I have created a new stable release 3.0.2, with the admin part, I have made few test with our admin theme everything look good, but could you try with yours and let me know if we need to do some update for you.

from taxonomy.

Trexology avatar Trexology commented on August 23, 2024

Hi @sirsquall,

Just tried the new stable release, there are still abit of problem with the nestable javascript in Terms index.blade

line:177 to generate CSRF token in L5, somehow we have to use this
'X-CSRF-Token': '{!! csrf_token() !!}',

line:189 should be:
{!! Html::script('vendor/taxonomy/js/jquery.nestable.js') !!}

Thank you everyone for attending to my request! :D

P.S:
For those who wanna load the nestable js, I believe you have to add @yield('js')
in your admin layout template

from taxonomy.

sirsquall avatar sirsquall commented on August 23, 2024

Hi,

Thanks I will update the way to get the csrf_token.

But I don't understand what is the change you need to fhe HTML::script ?

from taxonomy.

Trexology avatar Trexology commented on August 23, 2024

@sirsquall
By default, in laravel 5, Html alias are not embed anymore.

Actually, I'm not sure which whether 'HTML' or 'Html' is the more commonly used naming convention.

Assuming in L4 is named as 'HTML' then i think we should just stick to the old naming convention.

from taxonomy.

sirsquall avatar sirsquall commented on August 23, 2024

@Trexology Okey yes I will keep the old naming convention, I think is better.

I have released the 3.0.3 who fix the crsf.

Thanks

from taxonomy.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.