getting sfconfig variables from symfony app.yml of application

app.yml for your symfony application. i.e. 'frontend', 'backend' or something else

all:
  categoryPages:
    maxPages: 10  
  productPages:
    maxPages: 5  
  generalMax: 15


echo sfConfig::get('app_categoryPages_maxPages'); 
 => 10
echo sfConfig::get('app_productPages_maxPages'); 
 => 5
echo sfConfig::get('app_generalMax'); 
 => 15