How to make plugin developer name available in templates? I'm constructing a plug-in and I'm new to it. 

I want to print to the screen in my template the name of the developer, by accessing the getDeveloper() method in my Plugin.php. The problem is instead of showing the name of the developer, it throws an error saying Class Craft\CrmPortalVariable not found.
Data in plugins is not automatically made available to twig templates.

To make something available, you need to create a folder in your plugin master folder called variables and in that folder create a class PluginNameVariable.php

Here's an example of what you might put in that file:

&lt;?php

namespace Craft;

class YourPluginNameVariable
{

    public function developerName()
    {
        return craft()-&gt;yourPluginsName-&gt;someServiceMethodThatReturnsTheDeveloperName();
    }

}


This would make a template variable available in your templates via

{{ craft.yourPluginName.developerName }}


Here are the Craft Docs for this - https://craftcms.com/docs/plugins/variables