Newscoop\Controller\Plugin\Js::__construct PHP Method

__construct() public method

jsPath is for those who don't have a propper server config in the js folder
public __construct ( array $p_opts )
$p_opts array {..., layout : { jsUrl : string, [ jsPath : string ] }, ... }
    public function __construct($p_opts)
    {
        // base path from options - incomplete
        $this->_baseUrn = trim($p_opts["resources"]["layout"]["jsUrl"], '/') . '/';
        $this->_basePath = ($p = $p_opts["resources"]["layout"]["jsPath"]) ? $p . DIR_SEP : false;
        $this->view = \Zend_Registry::get('view');
    }