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

dev: Allow easier overriding of views in developer applications. #565

Merged
merged 3 commits into from
Dec 20, 2022

Conversation

lonnieezell
Copy link
Member

@lonnieezell lonnieezell commented Dec 19, 2022

Fixes #555

When using a theme/template system other than the built in CI features, it is very difficult to integrate without copying large amounts of logic from Actions and controllers that a developer should not have to maintain.

This adds a new trait, Viewable, that provides a simple, consistent way to override just how views are rendered.

docs/customization.md Outdated Show resolved Hide resolved
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.

Looks good to me with @kenjis' fix.

@datamweb datamweb added the enhancement New feature or request label Dec 19, 2022
docs/customization.md Outdated Show resolved Hide resolved
Co-authored-by: kenjis <kenji.uui@gmail.com>
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.

@kenjis Last check?

@kenjis kenjis changed the title dev: Allow easier overriding of views in developer applications. Fixes #555 dev: Allow easier overriding of views in developer applications. Dec 20, 2022
@kenjis kenjis merged commit ca7335c into codeigniter4:develop Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dev: Extend Actions to allow custom rendering methods.
4 participants