The Code You Will Love

Font Awesome icon in React

Posted on: Saturday November 30, 2024

Include FontAwesome Your code references FontAwesome icons. To use them: 1. Install FontAwesome: [crayon-6896174e9dade196197415/] 2. Import the CSS in your index.js or App.js file [...]

Read More

HTML Template to React JSX

Posted on: Saturday November 30, 2024

You have to convert your html code to JSX, there are online tools for this you can google it. https://transform.tools/html-to-jsx https://codebeautify.org/html-to-jsx-converter   1. Convert HTML [...]

Read More

React With Node and Boostrap 5 Setup

Posted on: Friday November 29, 2024

React with node, i want to strat with frontend and backend with for proper manageable structure with boostrap 5 theme. I installed npm and node. what next? To set up a React frontend and Node.js [...]

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

Database query in view file/template in CodeIgniter 4

Posted on: Friday November 22, 2024

[crayon-6896174e9e9f2500019993/] [...]

Read More

Convert Dashes to Underscores in URLs automatically in CI4

Posted on: Friday November 22, 2024

dashes to underscore in ci4 url Step 1: Create a Custom Router Create a custom router that converts dashes to underscores in controller methods. File Path: app/Controllers/Router.php [...]

Read More

URI Segment in CI4

Posted on: Thursday November 21, 2024

url segment in ci4 [crayon-6896174e9ed0f213867963/] [...]

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-6896174e9f058092280126/] Example: Retrieving Flashdata [...]

Read More
Translate »