Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

gii does not allow namespaced base classes #2003

Closed
etienneq opened this Issue · 2 comments

2 participants

@etienneq

This issue applies to generators for controller, CRUD and model code.

I want to define namespaced base classes in my derived generator.

Example:

class MyControllerCode extends ControllerCode {
    public $baseClass = 'my\namespace\Controller';
}

This is currently not possible because corresponding validation rules allow just word characters but no backslashes.

I will provide a pull request.

Cheers
Etienne

@cebe cebe was assigned
@cebe cebe closed this
@etienneq

Hi there,

somehow the changelog message was removed in merge:

  • Enh #2003: gii now allows namespaced base classes to be defined in generators (etienneq)

Cheers
Etienne

@cebe
Owner

Problem is in 4e394ab merge removed some changelog lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.