Skip to content

feat: introduce hot reload system for views in development mode - #9816

Closed
mgarciad34 wants to merge 1 commit into
codeigniter4:developfrom
mgarciad34:feature/hot-reload-views
Closed

mgarciad34 wants to merge 1 commit into
codeigniter4:developfrom
mgarciad34:feature/hot-reload-views

Conversation

@mgarciad34

Copy link
Copy Markdown

This PR introduces a lightweight Hot Reload system for development in CodeIgniter 4.

  • Automatically starts Hot Reload when running php spark serve
  • Adds a background watcher for app/Views
  • Includes the partials/hotreload snippet for automatic browser reload
  • Updated README with documentation for usage and configuration

No external tools (Node, Webpack, Vite) required. This feature is fully implemented in PHP.

@mergeable

mergeable Bot commented Nov 30, 2025

Copy link
Copy Markdown

Hi there, mgarciad34! 👋

Thank you for sending this PR!

We expect the following in all Pull Requests (PRs).

Important

We expect all code changes or bug-fixes to be accompanied by one or more tests added to our test suite to prove the code works.

If pull requests do not comply with the above, they will likely be closed. Since we are a team of volunteers, we don't have any more time to work
on the framework than you do. Please make it as painless for your contributions to be included as possible.

See https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md

Sincerely, the mergeable bot 🤖

@mgarciad34 mgarciad34 changed the title Add Hot Reload integration for views in development server feat: introduce hot reload system for views in development mode Nov 30, 2025
@neznaika0

Copy link
Copy Markdown
Contributor

Unfortunately, your PR is likely to be rejected. You are developing an existing library. In addition, in the app/ folder.

@totoprayogo1916

Copy link
Copy Markdown
Contributor

@mgarciad34 feel free to see #7489

@mgarciad34

Copy link
Copy Markdown
Author

Lamentablemente, es probable que tu solicitud de solicitud sea rechazada. Estás desarrollando una biblioteca existente. Además, en la carpeta app/ .

Puede ser, pero esta libreria se hace integramente en PHP.

@michalsn

Copy link
Copy Markdown
Member

@mgarciad34 Thank you for trying to make CodeIgniter better, but as mentioned, the HotReload feature is already implemented, see: https://codeigniter.com/user_guide/testing/debugging.html#hot-reloading

@michalsn michalsn closed this Nov 30, 2025
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.

4 participants