I want to call function from other php file
Here is my code | but its not working for me,
Configuration file
<?php class config { public static function get($param) { $config = array( // language selection, 'language' => 'english', // allow users to sign up (true/false) 'allow_signup' => true, ); /** * * End of configuration options * */ } } Other File I want to call a function in this file that If "allow-signup" is true it should show a button to signup
<?php require_once "configuration.php"; $app = new gator(); ?> <?php if (config::get('allow_signup')):?> <input class="nice radius secondary button" style="float:left;" type="Submit" value="Sign up"> <?php endif;?> ?>
echo lang::get("Sign up"), what islang?