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

edited September 2009 in Vanilla 2.0 - 2.8
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

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?

Comments

Sign In or Register to comment.