Currently, I was trying to implement the markdown function in the Notepad app, so I introduced the markdown plug-in from github and proceeded according to the procedure.
An error has occurred.
I checked and checked, but it seems that the load component is not loading well.
How can I solve this problem?
Here is the github sauce.
https://github.com/ivanamat/cakephp3-markdown/blob/master/README.md
Code
public function initialize()
{
parent::initialize();
$this->loadComponent('Paginator');
$this->loadComponent('Flash');// Include FlashComponent
$this->Auth->allow(['tags']);
$this->loadComponent('Markdown.Markdown');
}
public$components=[
'Markdown' = > [
'className' = > 'Markdown.Markdown'
]
];
As you can see in hinaloe's comment, there is a duplicate error because both $this->loadComponent
and $components
are calling the Markdown component.
The controller's $components property deprecates calling components and should use the loadComponent
method.
Remove the Markdown
item from the controller $components
property.
611 GDB gets version error when attempting to debug with the Presense SDK (IDE)
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
915 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
618 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.