July 29, 2024

How to configure AWS on Windows for multiple accounts

How to configure AWS on Windows for multiple accounts in Windows https://www.youtube.com/watch?v=z-UwWhwiB3o As a developer or DevOps engineer, managing multiple AWS accounts is a common scenario. You may have separate accounts for development, testing, and production environments or for different projects. When working with Terraform, a popular infrastructure-as-code tool, configuring AWS credentials on your Windows...

Codeigniter 4 – Session library with Example

Codeigniter 4 - Session library with Example Configuring the Session Library - Open the app/Config/Session.php file. - Set the driver to the session driver you want to use (e.g. CodeIgniter\Session\Handlers\FileHandler). - Set the sessionName to the name of the session cookie. Example: public $driver = 'CodeIgniter\Session\Handlers\FileHandler'; public $sessionName = 'ci_session'; Starting a Session - Use...

Codeigniter 4 – Upload image with Example

Codeigniter 4 - Upload image with Example Configuring the Upload Library - Open the app/Config/Upload.php file. - Set the allowedTypes to the types of files you want to allow. - Set the maxSize to the maximum file size. Example: public $allowedTypes = ['jpg', 'png', 'gif']; public $maxSize = 1024; // 1MB Creating the Upload Form...

Codeigniter 4 – Form Validation with Example

Codeigniter 4 - Form Validation with Example Validation Rules - Required: required - Valid Email: valid_email - Min Length: min_length[5] - Max Length: max_length[10] - Exact Length: exact_length[5] - Alpha: alpha - Alpha Numeric: alpha_numeric - Numeric: numeric - Integer: integer - Decimal: decimal - Greater Than: greater_than[5] - Less Than: less_than[10] - In List:...

Codeigniter 4 – Creating Form for Validation with Example

Codeigniter 4 - Creating Form for Validation with Example Creating a Form - Create a new file in the app/Views directory. - Use HTML to create the form. Example: <form action="<?= site_url('form/submit') ?>" method="post"> <label for="name">Name:</label> <input type="text" name="name" id="name"><br><br> <label for="email">Email:</label> <input type="email" name="email" id="email"><br><br> <input type="submit" value="Submit"> </form> Creating a Validation Class -...

Codeigniter 4 – Services with Examples

Codeigniter 4 - Services with Examples What are Services? - Services are a way to organize and reuse code in CodeIgniter 4. - They provide a simple and intuitive way to perform specific tasks, interact with external services, or provide utility functions. - Services are typically used to encapsulate complex logic or functionality that can...

Codeigniter 4 – Pagination with Example

Codeigniter 4 - Pagination with Example Creating Pagination - Use the pager method provided by CodeIgniter 4. Example: $pagination = $this->pager->makeLinks($page, $perPage, $total); Configuring Pagination - Set the perPage variable to the number of items per page. Example: $perPage = 10; - Set the total variable to the total number of items. Example: $total =...

Codeigniter 4 – Creating Database, Model then setting up the configuration

Codeigniter 4 - Creating Database, Model then setting up the configuration Creating a Database - Create a new database using your preferred method (e.g. phpMyAdmin, MySQL Workbench). - Note the database name, username, and password. Setting up Database Configuration - Open the app/Config/Database.php file. - Update the default group with your database settings. Example: public...

Codeigniter 4 – Creating a Library with Example

Codeigniter 4 - Creating a Library with Example Creating a Library - Create a new file in the app/Libraries directory. - Extend the CodeIgniter\Libraries\BaseLibrary class. Example: namespace App\Libraries; use CodeIgniter\Libraries\BaseLibrary; class MyLibrary extends BaseLibrary { public function doSomething() { // Library code here } } Loading a Library - Use the library() method to load...

Shopping cart0
There are no products in the cart!
Continue shopping
0