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

fix: support for assigning extra data for the view() method in controlled cells #6681

Merged

Conversation

michalsn
Copy link
Member

@michalsn michalsn commented Oct 13, 2022

Description
Follow-up #6620

This is related to the Controlled Cells.

According to the user guide, we should be able to assign extra variables to the view() method. But this function doesn't seem to be implemented. This PR fixes it.

Ref: https://github.com/codeigniter4/CodeIgniter4/blob/4.3/user_guide_src/source/outgoing/view_cells.rst#customize-the-rendering

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@michalsn michalsn added bug Verified issues on the current code behavior or pull requests that will fix them 4.3 labels Oct 13, 2022
@michalsn michalsn requested a review from lonnieezell October 13, 2022 17:25
Copy link
Member

@lonnieezell lonnieezell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding that!

Copy link
Member

@MGatner MGatner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love the Lost reference 😍
This looks good and logical to me. Let's see if @lonnieezell is around to confirm his intention.

@MGatner
Copy link
Member

MGatner commented Oct 14, 2022

🤦‍♂️ Always read the comments first. I'm so bad at it!

@kenjis kenjis merged commit 258bc3e into codeigniter4:4.3 Oct 17, 2022
@michalsn michalsn deleted the fix/view-extra-data-for-controlled-cells branch December 13, 2022 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants