Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toolbar fix for custom collectors #1972

Merged
merged 2 commits into from
Apr 25, 2019

Conversation

MGatner
Copy link
Member

@MGatner MGatner commented Apr 24, 2019

Description
Custom collectors fail because toolbar.tpl.php tries to parse their view file from SYSTEMPATH . 'Debug/Toolbar/Views/'. See #1971 for complete description of the issue.
This change allows Collector->display() to return a string (as stated in the User Guide) and then, when detected in the view template, displays it directly instead of looking for a separate template to parse.

There's probably a better way to handle this by checking for a namespaced view template for the collector.

Checklist:

  • Securely signed commits
  • Component(s) with PHPdocs
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@lonnieezell
Copy link
Member

I think that's fine for now, but does warrant a deeper look into the disconnect between user guide and functionality.

@lonnieezell lonnieezell merged commit 8ac5c73 into codeigniter4:develop Apr 25, 2019
@MGatner MGatner deleted the fix-custom-collectors branch April 25, 2019 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants