-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update widgets.md #14
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry this is a bit late.
First Create your Extension | ||
https://tastyigniter.com/docs/master/extend/extensions | ||
|
||
Extension.php | ||
``` | ||
public function extensionMeta() | ||
{ | ||
return [ | ||
'name' => 'My Widget Extension', | ||
'author' => 'Docs', | ||
'description' => 'No description provided yet...', | ||
'icon' => 'fa-plug', | ||
'version' => '1.0.0' | ||
]; | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not required.
|
||
### Dashboard widget class | ||
```use Admin\Classes\BaseDashboardWidget; | ||
class ControllerPath extends BaseDashboardWidget |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a descriptive name.. QuickLinks
?
{ | ||
$this->prepareVars(); | ||
|
||
return $this->makePartial('partials/quicklinks'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be quicklinks/quicklinks
?
|
||
|
||
Inside | ||
partials/myblade.blade.php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here quicklinks/quicklinks.blade.php
No description provided.