-
Notifications
You must be signed in to change notification settings - Fork 3
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
Compatebillity with fork 5.9 #4
Comments
I am also new to github so i don't now how this exactly works, i have changed the files in the backend actions folder by writing : void after the functions where the error occurs and now the error is not present anymmore in the permission section. I deleted the mini blog database and removed the miniblog in the module part op the db and have installed the module again. Now with the debugger on i have following list of error message Symfony\Component\Debug\Exception\FatalThrowableError: at src/Backend/Core/Installer/ModuleInstaller.php:491 I am new to modules and symfony, so i don't know what to do with line 32 of the installer.php file. |
With some search i found ModuleExtraType in a facebook module here at Github and changed in the installer the string 'widget' and 'block' with this function and tried again. It looks like it's working now. now i am getting problems with symfony Symfony\Component\Debug\Exception\ClassNotFoundException: at src/Backend/Modules/MiniBlog/Actions/Index.php:59 |
hi @Bernardusbron I see that this module still uses TPL files for templates and not Twig, so I fear it's very outdated. Also given that the last commit was 6 to 8 years ago. I think the docs need a full rewrite when Fork CMS v6 is released (afaik later this year) because some pages are outdated. The best way to learn how modules work is to look at the core modules like FAQ or ContentBlocks or MediaLibrary. These modules group their logic in the different domains with a command bus, and use Doctrine to query the database. Modules like Blog (in the core) are still using the older way without Doctrine. https://github.com/friends-of-forkcms is also a good place to check for modules |
Thanks @jessedobbelaere I am going to look at one of the modules from the core you propose and learn how symfony works. It's a steep learning curve from standard php, html, mysql, javascript and using sometimes a 1 click install of another popular CMS system and now learning fork cms with symfony and twig integration. |
Awesome! Feel free to join slack to ask questions. The nice thing about Symfony and Fork CMS is that it allows for easy custom development once you know your way around, so e.g. I always create a custom theme and sometimes custom modules for the websites I create |
I am new to Fork (installed fork and i made a theme using the theming guide) and i am trying the module guide now
(https://docs.fork-cms.com/documentation/detail/module-guide)
Installing this module gave a 500 error,
The installation proces isn't completed and if i go to edit group permissions i got following message (debug mode on)
Compile Error: Declaration of Backend\Modules\MiniBlog\Actions\Add::execute() must be compatible with Backend\Core\Engine\Base\Action::execute(): void
Where can i find how the new core works ? Because the documentation describes spoon and not Symfonie
Thanks in advance for pointing me in the right direction.
The text was updated successfully, but these errors were encountered: