How to upgrade the block in development

How to upgrade the block in development

by Ramon Vicente -
Number of replies: 2

Hello everyone! I'm creating my first block for moodle, but I have a problem. Whenever that I actualize my block I need to desinstall it from the plugins moodle and install my actulized ".zip" (for testing if my new codes are work). So, there are a way that I can actualize my block without need desinstall and install again ever I change the code? Thanks, guys.

Average of ratings: -
In reply to Ramon Vicente

Re: How to upgrade the block in development

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Create a local copy of Moodle and do all your development there. That way, all your code changes should be immediately reflected on the site. Any lang string changes (or styling changes) will need you to purge the site caches. Any DB changes will need an upgrade.php & a version number bump, any new capabilities (or any other definitions in the db/ subdirectory) will also need a version number bump.


Average of ratings: Useful (1)