Git Product home page Git Product logo

Comments (15)

spawn81 avatar spawn81 commented on May 19, 2024 1

Hi, sry for late reply.
I can confirm, with the last update everything works like a charme
Thank you again.

from laravel-widgetize.

imanghafoori1 avatar imanghafoori1 commented on May 19, 2024

Are all the other widgets ok in your project except this one ?!
Or you have this kind of error for any widget you create ?

I can not reproduce it.

from laravel-widgetize.

spawn81 avatar spawn81 commented on May 19, 2024

Hi, thank you for your reply.
It happens for all the widgets, but luckly I've just solved the issue moving the generated views in the view folder and explicitly binding them using $template, eg. public $template = 'widgets.AlunniChartWidgetView';
(I had also use $contextAs to get rid of the laravel section start error)

from laravel-widgetize.

imanghafoori1 avatar imanghafoori1 commented on May 19, 2024

It is kinda strange.
Please note the exact version of widgetize package and OS you are using.

composer show
will help you see the installed versions

from laravel-widgetize.

spawn81 avatar spawn81 commented on May 19, 2024

widgetize: v1.9.2
windows: 10 home 64bit v1803

from laravel-widgetize.

imanghafoori1 avatar imanghafoori1 commented on May 19, 2024

what if you completely remove public $template = 'widgets.AlunniChartWidgetView'; from your widget ?

and not setting it public $template = ''; if you have had done it.

from laravel-widgetize.

spawn81 avatar spawn81 commented on May 19, 2024

Well I followed the instructions (without setting the $template, $contextAs) and
I have the laravel error: can't find the view
The same error rises with $template not set and $template=''

from laravel-widgetize.

imanghafoori1 avatar imanghafoori1 commented on May 19, 2024

and you are using laravel 5.8 right ?

i have to investigate the possible root cause of that.

from laravel-widgetize.

spawn81 avatar spawn81 commented on May 19, 2024

yes, laravel 5.8.16.
I think "an easy fix" could be:
once u run the make:widget , in your generated files u should create a folder in views (eg a widget folder) in which you save the view as u do, and in the widgetname.php u write the $template= "widgets/widgetview"

let me know as soon as u find a solution and thanx again for this useful package

from laravel-widgetize.

imanghafoori1 avatar imanghafoori1 commented on May 19, 2024

but I ran the exact same command on my windows 10 machine and laravel 5.8.
and everything was ok.

I do not know how it is not working for you !

from laravel-widgetize.

spawn81 avatar spawn81 commented on May 19, 2024

I really don't know, i'm sry i can't help., but at least there is a fix.

from laravel-widgetize.

imanghafoori1 avatar imanghafoori1 commented on May 19, 2024

@spawn81 Ahaaa I now get it

You may have renamed the app folder to webSPV.

So you do not have any app folder. right ?

from laravel-widgetize.

spawn81 avatar spawn81 commented on May 19, 2024

from laravel-widgetize.

imanghafoori1 avatar imanghafoori1 commented on May 19, 2024

Could you please try the latest v1.9.5 ?
and report me if you have any issues.

from laravel-widgetize.

imanghafoori1 avatar imanghafoori1 commented on May 19, 2024

if you have done something like this in your composer file :

       "psr-4": {
           "webSPV\\": "app/"
       },

you are right, and this was a bug.
which is fixed.

thanks for reporting .

from laravel-widgetize.

Related Issues (18)

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.