func NewController(nameSpace string, methods []*data.Method) *Controller {
	fileDir := strings.Replace(nameSpace, "\\", "/", -1)
	filePath := fileDir + "/controllers/ApiController.php"
	o := &Controller{nameSpace, filePath, methods}
	return o
}
NewController return a pointer of new controller struct
package phpyii2
import (
	"bytes"
	"strings"
	"text/template"
	"github.com/yoozoo/protoapi/generator/data"
)