Hash Password in CI4

Posted on: Friday January 3, 2025

Password: 1. Created a Helper Function Created helper functions for password hashing and verification to reuse across your application. Create a file in app/Helpers, e.g., [...]

Read More

Login in CI4 Complete Code

Posted on: Friday January 3, 2025

Controller: [crayon-6790b24d34d62774405405/] Password: 1. Created a Helper Function created helper functions for password hashing and verification to reuse them across your application. Create a file [...]

Read More

Blob Image to PDF

Posted on: Monday November 25, 2024

BluDart  API way bill response is in blob, so save it as PDF file inh a folder instead of storing in a database. I already stored in the database so I’ll show you how to save as PDF. [...]

Read More

Disable the button when the form is submitted

Posted on: Saturday November 23, 2024

Solution: Disable the button when the form is submitted. Re-enable the button after the page is loaded or when the form submission is complete. Example Implementation: HTML: [...]

Read More

Redirect in CI4

Posted on: Tuesday November 19, 2024

Redirect with a Flash Message To pass data (like success or error messages) during a redirect, you can use session flashdata. Example: Set flashdata in the controller before redirecting: [...]

Read More

Flashdata (Temporary Session Data)

Posted on: Tuesday November 19, 2024

Flashdata is temporary session data that is available for the next request only. Example: Setting Flashdata [crayon-6790b24d350c5434197759/] Example: Retrieving Flashdata [...]

Read More