We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    Here's one for all of you PhpStorm users.

    I'm working on developing a custom TV to use for multi-language sites (something like Evo's YAMS, as an alternative to using contexts and Babel).

    On working through the "Adding a Custom TV Type" tutorial on the rtfm, I found that I have a number of options when creating a new file in PhpStorm. One of these is Php Class. The form that opens up has a number of fields, most of which are fairly clear to me. But would the "namespace" be the same namespace I set up in the Manager?
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 3749
      • 24,544 Posts
      Guessing again, but I don't think it matters. I think that would be used by PhpStorm for the new PHP namespace support, which would have nothing to do with MODX namespaces (at least in the current version of MODX). I think the only value of it in PhpStorm would be that you can change the namespace when refactoring classes in PhpStorm, which I've never done. I could be wrong.

      You might as well make it the same as the MODX namespace in case MODX starts using PHP namespacing.

        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting