Vanilla open source was terminated 1 January 2025 by Higher Logic. See this announcement for more information.
Structure.php doesn't get executed while enabling an application from dashboard
Hi,
I have created an application in Garden framework, which has structure.php where all the database scripts are placed.
But when I enable this application, the structure.php file doesn't get executed.
So to do so, I have added a single line of code in /garden/settings/application
Is there any other way of doing it?
I have created an application in Garden framework, which has structure.php where all the database scripts are placed.
But when I enable this application, the structure.php file doesn't get executed.
So to do so, I have added a single line of code in /garden/settings/application
if ($this->Form->ErrorCount() == 0) {
$Validation = new Gdn_Validation();
$ApplicationManager->RegisterPermissions($ApplicationName, $Validation);
$ApplicationManager->EnableApplication($ApplicationName, $Validation);
<strong>
$ApplicationManager->ApplicationSetup($ApplicationName, $this, $Validation); // => Code Hack
</strong>
}
Is there any other way of doing it?
0
Comments
But still waiting for permanent solution.