readme.md 2.x fixes #53

Merged
merged 1 commit into from Mar 28, 2012

Conversation

Projects
None yet
2 participants
@shama
Contributor

shama commented Mar 28, 2012

Updates to the examples used in the readme to work with 2.x.

I'm checking the viewPath using $viewPath = substr(get_class($this), 0, strlen(get_class($this)) - 10); because when extending a controller $this->viewPath == 'Users' when we want our actual viewPath 'AppUsers'.

lorenzo added a commit that referenced this pull request Mar 28, 2012

@lorenzo lorenzo merged commit 378f47f into CakeDC:2.0 Mar 28, 2012

@shama

This comment has been minimized.

Show comment
Hide comment
@shama

shama Apr 10, 2012

Contributor

This should be $viewPath = substr(get_class($this), 0, -10);. My mistake while copying.

Contributor

shama commented on readme.md in 6b0b8a0 Apr 10, 2012

This should be $viewPath = substr(get_class($this), 0, -10);. My mistake while copying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment