dmstr / yii2-adminlte-asset

AdminLTE Asset Bundle for Backend Theme in Yii2 Framework
1.14k stars 425 forks source link

Class 'insolita\wgadminlte\SmallBox' not found #162

Closed larry-tx closed 6 years ago

larry-tx commented 6 years ago

When creating a module, the extension interjects this into the default index.php file:

return '<div class="col-xs-6 col-sm-4 col-lg-3">'.insolita\wgadminlte\SmallBox::widget(

which results in the following error message:

Class 'insolita\wgadminlte\SmallBox' not found

Any guidance on resolving this issue?

index.zip

githubjeka commented 6 years ago

Try \insolita\wgadminlte\SmallBox instead insolita\wgadminlte\SmallBox

larry-tx commented 6 years ago

Sorry, that made no difference at all.

Larry E. Lutz

From: Evgeniy Tkachenko notifications@github.com Sent: Wednesday, March 28, 2018 1:06 AM To: dmstr/yii2-adminlte-asset yii2-adminlte-asset@noreply.github.com Cc: LarryTX LarryTX@outlook.com; Author author@noreply.github.com Subject: Re: [dmstr/yii2-adminlte-asset] Class 'insolita\wgadminlte\SmallBox' not found (#162)

Try \insolita\wgadminlte\SmallBox instead insolita\wgadminlte\SmallBox

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdmstr%2Fyii2-adminlte-asset%2Fissues%2F162%23issuecomment-376772137&data=02%7C01%7C%7C927b66eac7014bda761008d59471fe10%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636578139664046893&sdata=ulo%2FT1VKTKKY%2F411GO4jOd9mXIKyCwBv9sUH2Ujrmp8%3D&reserved=0, or mute the threadhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAABRB5HnngCpT_KKbSzSA0VdTd5nNOxHks5tiyhMgaJpZM4S-BOr&data=02%7C01%7C%7C927b66eac7014bda761008d59471fe10%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636578139664046893&sdata=cf1kw2DsaAnqEjly%2F75ielpy512ql5pZ3InQ8BOGW2c%3D&reserved=0.

githubjeka commented 6 years ago

Try to reinstall https://github.com/Insolita/yii2-adminlte-widgets#installation

larry-tx commented 6 years ago

I completely uninstalled it and reinstalled it. No change.

Larry E. Lutz

From: Evgeniy Tkachenko notifications@github.com Sent: Wednesday, March 28, 2018 3:22 AM To: dmstr/yii2-adminlte-asset yii2-adminlte-asset@noreply.github.com Cc: LarryTX LarryTX@outlook.com; Author author@noreply.github.com Subject: Re: [dmstr/yii2-adminlte-asset] Class 'insolita\wgadminlte\SmallBox' not found (#162)

Try to reinstall https://github.com/Insolita/yii2-adminlte-widgets#installationhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FInsolita%2Fyii2-adminlte-widgets%23installation&data=02%7C01%7C%7C0df01605367d4cc725b708d594850652%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636578221407661289&sdata=UxppcA6QyEoUrBtfF5UBZ6EYXRX0plSf5FHKQgWtDMM%3D&reserved=0

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdmstr%2Fyii2-adminlte-asset%2Fissues%2F162%23issuecomment-376802879&data=02%7C01%7C%7C0df01605367d4cc725b708d594850652%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636578221407817559&sdata=301AfjoVAebnMbgfwexj%2BH6yiGmRUJ9WY4l%2F15iUmzI%3D&reserved=0, or mute the threadhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAABRBzlGJrAe3F8cH4-XrmW01ZUedU6hks5ti0g6gaJpZM4S-BOr&data=02%7C01%7C%7C0df01605367d4cc725b708d594850652%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636578221407817559&sdata=g9FX4X3iJZtcsIOa4a6G2AEO%2FUGLd7PJOD4qCx0QLZI%3D&reserved=0.

githubjeka commented 6 years ago

Class named as LteSmallBox https://github.com/Insolita/yii2-adminlte-widgets/blob/master/LteSmallBox.php#L22

Try to use \insolita\wgadminlte\LteSmallBox instead insolita\wgadminlte\SmallBox

larry-tx commented 6 years ago

Well, we may be getting someplace. At least the error message changed indicating that it’s finding the class. The new error message is:

            Setting unknown property: insolita\wgadminlte\LteSmallBox::footer_link

Larry E. Lutz

From: Evgeniy Tkachenko notifications@github.com Sent: Wednesday, March 28, 2018 3:30 AM To: dmstr/yii2-adminlte-asset yii2-adminlte-asset@noreply.github.com Cc: LarryTX LarryTX@outlook.com; Author author@noreply.github.com Subject: Re: [dmstr/yii2-adminlte-asset] Class 'insolita\wgadminlte\SmallBox' not found (#162)

Class named as LteSmallBox https://github.com/Insolita/yii2-adminlte-widgets/blob/master/LteSmallBox.php#L22https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FInsolita%2Fyii2-adminlte-widgets%2Fblob%2Fmaster%2FLteSmallBox.php%23L22&data=02%7C01%7C%7C7e78762d79c048e9b3f308d594862991%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636578226290954892&sdata=OnA1FfRR8qYV8y9o2i%2FrU3pjqdbco3MYcAbLShnorrU%3D&reserved=0

Try to use \insolita\wgadminlte\LteSmallBox instead insolita\wgadminlte\SmallBox

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdmstr%2Fyii2-adminlte-asset%2Fissues%2F162%23issuecomment-376805105&data=02%7C01%7C%7C7e78762d79c048e9b3f308d594862991%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636578226290954892&sdata=mF%2BuZ1PiNz7ecIEHkAI%2BM%2F4Jhjd%2BtKySPUq%2FRbE%2FZGU%3D&reserved=0, or mute the threadhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAABRB1xy1JKHDz5dabc2ckoYRYZ3bqvdks5ti0oigaJpZM4S-BOr&data=02%7C01%7C%7C7e78762d79c048e9b3f308d594862991%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636578226290954892&sdata=NhwoasE9Twjo9TAPaEM8WwO9FQa4Ok9TyWSBxOMWF%2FE%3D&reserved=0.

larry-tx commented 6 years ago

I commented out these two, and the page came up without error, but poorly formatted:

            // 'head'        => $data['head'],
            // 'footer_link' => $data['route'],

And, of course, the footer link doesn’t work, so the page is useless at this point.

Larry E. Lutz

From: Evgeniy Tkachenko notifications@github.com Sent: Wednesday, March 28, 2018 3:30 AM To: dmstr/yii2-adminlte-asset yii2-adminlte-asset@noreply.github.com Cc: LarryTX LarryTX@outlook.com; Author author@noreply.github.com Subject: Re: [dmstr/yii2-adminlte-asset] Class 'insolita\wgadminlte\SmallBox' not found (#162)

Class named as LteSmallBox https://github.com/Insolita/yii2-adminlte-widgets/blob/master/LteSmallBox.php#L22https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FInsolita%2Fyii2-adminlte-widgets%2Fblob%2Fmaster%2FLteSmallBox.php%23L22&data=02%7C01%7C%7C7e78762d79c048e9b3f308d594862991%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636578226290954892&sdata=OnA1FfRR8qYV8y9o2i%2FrU3pjqdbco3MYcAbLShnorrU%3D&reserved=0

Try to use \insolita\wgadminlte\LteSmallBox instead insolita\wgadminlte\SmallBox

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdmstr%2Fyii2-adminlte-asset%2Fissues%2F162%23issuecomment-376805105&data=02%7C01%7C%7C7e78762d79c048e9b3f308d594862991%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636578226290954892&sdata=mF%2BuZ1PiNz7ecIEHkAI%2BM%2F4Jhjd%2BtKySPUq%2FRbE%2FZGU%3D&reserved=0, or mute the threadhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAABRB1xy1JKHDz5dabc2ckoYRYZ3bqvdks5ti0oigaJpZM4S-BOr&data=02%7C01%7C%7C7e78762d79c048e9b3f308d594862991%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636578226290954892&sdata=NhwoasE9Twjo9TAPaEM8WwO9FQa4Ok9TyWSBxOMWF%2FE%3D&reserved=0.

githubjeka commented 6 years ago

In the future, please be attentive, especially since this is not our question, but the question from the completely different project (Insolita/yii2-adminlte-widgets). You can ask about your problems in the chat https://yii.slack.com/

Good luck with the business.

schmunk42 commented 6 years ago

Insolita did some refactoring, you could also stay on ^1.1.4, I think.

larry-tx commented 6 years ago

After all, it was the fact that your extension injected the call to the insolita extension that cause the entire problem in the first place. It seems to me that, if you’re gong to do that, the maintenance goes with you.

Larry E. Lutz

From: Tobias Munk notifications@github.com Sent: Wednesday, March 28, 2018 3:45 AM To: dmstr/yii2-adminlte-asset yii2-adminlte-asset@noreply.github.com Cc: LarryTX LarryTX@outlook.com; Author author@noreply.github.com Subject: Re: [dmstr/yii2-adminlte-asset] Class 'insolita\wgadminlte\SmallBox' not found (#162)

Insolita did some refactoring, you could also stay on ^1.1.4, I think.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdmstr%2Fyii2-adminlte-asset%2Fissues%2F162%23issuecomment-376809239&data=02%7C01%7C%7C6fba32626e0e4bb9bfa408d594882a88%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636578234903827728&sdata=dA3IyElWbNKFplHqjm4wDwxgE%2F7bqm3B%2BttZY1uhjyI%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAABRB3lBbfPzi7GJyvQOIph5-1MYgy4Hks5ti01-gaJpZM4S-BOr&data=02%7C01%7C%7C6fba32626e0e4bb9bfa408d594882a88%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636578234903827728&sdata=WE8aylFs1Tsh2RNpU9DiMQAVLGHJobbv8X7XCvyIznY%3D&reserved=0.

schmunk42 commented 6 years ago

You mean this one? https://github.com/dmstr/yii2-adminlte-asset/blob/b0e225d670720e8885df7301a6558e03d645030b/example-views/testing/app/default/_controllers.php

It's meant as an example, see README

Therefore it is recommended to copy the views into your application and adjust them to your needs.

But yes, also this can be improved. Let me know if there's another reference I am missing.

maya-tsedeke commented 4 years ago

dear larry-tx use insolita\wgadminlte\LteSmallBox instead of insolita\wgadminlte\SmallBox

then declare public variable find the following the declared as public your project vendor/insolita\wgadminlte\LteSmallBox.php public $head may not be found in the latest version of insolita\wgadminlte\SmallBox declare it as follows in vendor/insolita\wgadminlte\LteSmallBox.php

         public   $ type  
         public $head 
         public   $text       
         public     $footer    
          publick  footer_link  or   public $link = '#'; footer_link not found edit it to  public link = '#'; instead footer_link
            and 

public $con

if insolita\wgadminlte\SmallBox not found in the vendor install it via composer php composer.phar require --prefer-dist insolita/yii2-adminlte-widgets