To use .NET resources in the App_GlobalResources under Phalanger, you'll need to do the following:
  • Add a reference to the following assembly under <classLibrary>:
<add assembly="App_GlobalResources" />
  • After adding the assembly, you'll be able to access resources in a similar way as you do so under ASP.NET, modified slightly to be PHP-compatible.

For example, if there was a file called "strings.resx", you'll access the ResourceManager with:
Resources\strings::$ResourceManager

And a resource named "NAMESUFIX" with:
Resources\strings::$NAMESUFIX

Last edited Apr 23, 2012 at 9:35 PM by jakub, version 10

Comments

No comments yet.