Hi all, I have an application where I need to customize the look(Color Scheme which matches the client site) for each client using the single codebase...So what I am doing is I am storing the values in the yml file and from that I am fetching the values.
I am doing something like this in the global template: $file = strtolower($sf_request->getParameter('symbol')) . ".yml"; $filepath = sfConfig::get('app_file_path') . 'web/uploads/settings/' . $file; if (file_exists($filepath)) { $test = sfYaml::load( sfConfig::get('app_file_path') . 'web/uploads/ settings/' .$file); } else { $test = sfYaml::load(sfConfig::get('app_file_path') . 'web/uploads/ settings/default.yml'); } foreach ($test as $a) { $topbar = "#" . $a['color']['topbar']; $footerbar = "#" . $a['color']['footerbar']; $inactivetab = "#" . $a['color']['inactivetab']; $activetab = "#" . $a['color']['activetab']; $activetabtext = "#" . $a['color']['activetabtext']; $menuline = "#" . $a['color']['menuline']; $textcolor = "#" . $a['color']['textcolor']; $postedByBox = "#" . $a['color']['postedByBox']; $questionBox = "#" . $a['color']['questionBox']; $contextBox = "#" . $a['color']['contextBox']; $answerBox = "#" . $a['color']['answerBox']; } Whatever variables I am setting here, I need to access them in the module's templates also... The problem here is I can't access the variables set here in the modules template....( in for ex: modulename/indexSuccess.php) Pls help me how to do that? P.S: I am storing Colors in the variables. Thanks in Advance! Ajit -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.