Skip to content
  • Homepage
  • HTML
  • CSS
  • Symfony
  • PHP
  • How to
  • Contact
  • Donate

Teach Developer

Articles, Guides & Tips

How to trigger a button click from another button click event with JavaScript?

Posted on August 21, 2022August 21, 2022 No Comments on How to trigger a button click from another button click event with JavaScript?

Sometimes, we want to trigger a button click from another button click event with JavaScript. In this article, we’ll look at how to trigger a button click from another button click event with JavaScript. To trigger a button click from another button click event with JavaScript, we call the element click method. For instance, we write to…

Read More “How to trigger a button click from another button click event with JavaScript?” »

How to, JavaScript

How to add page numbers in PDF in CodeIgniter

Posted on March 15, 2022July 20, 2022 5 Comments on How to add page numbers in PDF in CodeIgniter

Step 1: Install CodeIgniter 4 To install CodeIgniter 4 we can install it through Composer or download CodeIgniter 4 directly here: Install via composer: Step 2: Change CodeIgniter Environment CodeIgniter is the default environment product, a security feature to add security when settings go wrong when it’s live. To change the environment, we will rename or…

Read More “How to add page numbers in PDF in CodeIgniter” »

Codeigniter, How to

How to style an HTML radio button to look like a checkbox with CSS?

Posted on August 20, 2022August 20, 2022 No Comments on How to style an HTML radio button to look like a checkbox with CSS?

Sometimes, we want to style an HTML radio button to look like a checkbox with CSS. In this article, we’ll see how to style an HTML radio button to look like a checkbox with CSS. To style an HTML radio button to look like a checkbox with CSS, we use the appearance property. For instance, we write…

Read More “How to style an HTML radio button to look like a checkbox with CSS?” »

CSS, How to

How to Change SSH Port in Linux

Posted on September 9, 2022September 17, 2022

SSH (Secure Shell) is the most popular protocol for connecting remote Linux systems. Changing the SSH port will provide you with an extra layer of security. The new port will be a little harder to identify for hackers. Change SSH Port in Linux Changing the SSH port is a straightforward process in Linux systems. Any…

Read More “How to Change SSH Port in Linux” »

How to, Linux, SSH

How to add two-factor authentication (2FA) to WordPress using the Google Authenticator plugin.

Posted on August 2, 2022August 2, 2022 No Comments on How to add two-factor authentication (2FA) to WordPress using the Google Authenticator plugin.

WordPress two-factor authentication (2FA) is a more simple work than you imagine. You can improve the security of your website by adding WordPress two-factor authentication. If you are worried about brute-force attacks and hacking, then you should instantly go for 2FA. The essential step in protecting your WordPress setup is adding a two-factor authentication system. If the…

Read More “How to add two-factor authentication (2FA) to WordPress using the Google Authenticator plugin.” »

Wordpress

PHP 8.1: read-only properties

Posted on September 25, 2022September 25, 2022

Writing data transfer objects and value objects in PHP have become significantly easier over the years. Take for example a look at a DTO in PHP 5.6: And compare it to its PHP 8.0’s equivalent: That’s already quite the difference, though I think there’s still one big issue: all those getters. Personally, I don’t use them…

Read More “PHP 8.1: read-only properties” »

Top Tutorials

How to install Git on Linux

Posted on September 1, 2022September 17, 2022

Linux is a popular and as well as widely used operating system. The installation of Git on Linux is quite simpler when compared to other platforms. However, one has to use the right package manager for Linux distribution.We will proceed with this tutorial to see how to install and set up Git on various distributions…

Read More “How to install Git on Linux” »

How to, Linux

How to change background Opacity when the bootstrap modal is open with CSS?

Posted on August 21, 2022August 21, 2022 No Comments on How to change background Opacity when the bootstrap modal is open with CSS?

Sometimes, we want to change background opacity when the Bootstrap modal is open with CSS. This article will look at how to change background opacity when the Bootstrap modal is open with CSS. To change background Opacity when Bootstrap modal is open with CSS, we set the opacity style in the modal-backdrop class. For instance, we write to set…

Read More “How to change background Opacity when the bootstrap modal is open with CSS?” »

CSS, How to

Important most things you should know about JSX

Posted on July 31, 2022July 31, 2022 No Comments on Important most things you should know about JSX

What JSX is JSX is a syntax extension for JavaScript. Basically, it extends JavaScript so that constructs like HTML/XML can be used with JavaScript. It allows developers to use HTML syntax to compose JavaScript components. This makes it possible to have a clear and familiar syntax for defining DOM tree structures with attributes. Although it…

Read More “Important most things you should know about JSX” »

JavaScript, React

How to use :hover to modify the CSS of another class?

Posted on August 19, 2022August 21, 2022 No Comments on How to use :hover to modify the CSS of another class?

To use :hover to modify the CSS of another class, we can use it with another selector. For instance, we write to select the elements with the class wrapper in the elements with class item that we hovered on. We set its color and background-color for those elements.

CSS, How to

10 Programming Habits that every Developer Should Adopt

Posted on March 20, 2022July 20, 2022 3 Comments on 10 Programming Habits that every Developer Should Adopt

Write Human-Friendly Code Always remember that you are not writing code for machines but for others too. So it is essential to come up with a readable code. It is true that programming is like writing a good poem. The tone should be very consistent, the words should be descriptive & sentence well-structured. Here are…

Read More “10 Programming Habits that every Developer Should Adopt” »

Others, Tips

How to split a string into an array with Twig

Posted on March 14, 2022July 19, 2022 6 Comments on How to split a string into an array with Twig

Twig provides many filters that mimic the basic features of PHP that are easy to understand for front-end developers. One of those filters is a split filter that allows you to split a delimited string by a single character, returning a repeating array. You can limit the length of the result array providing it as…

Read More “How to split a string into an array with Twig” »

Symfony, PHP

How to Disable WordPress Auto Update? Turn Off WordPress Auto Updates

Posted on August 4, 2022 No Comments on How to Disable WordPress Auto Update? Turn Off WordPress Auto Updates

WordPress can update your website automatically. It can also update themes and plugins on your site. Choosing to automatically update a website can provide additional security benefits and at the same time, the chances of breaking your site’s style or functionality cannot be ignored. It is more relevant in the case of websites built with…

Read More “How to Disable WordPress Auto Update? Turn Off WordPress Auto Updates” »

How to, Wordpress

How to Install a WordPress Plugin for Beginners

Posted on August 2, 2022August 2, 2022 No Comments on How to Install a WordPress Plugin for Beginners

WordPress plugins are used to enable addon features to the web application developed in WordPress. Many features do not come with the WordPress core by default. So, if we need to extend the functionality of the WordPress application, then we need to use the plugins. There are many plugins available in the market for WordPress…

Read More “How to Install a WordPress Plugin for Beginners” »

Wordpress

HTML Basic Examples

Posted on March 4, 2022July 12, 2022 3 Comments on HTML Basic Examples

In this chapter, we will show some basic HTML examples. Don’t worry if we use tags you haven’t learned about yet. HTML Documents All HTML documents must start with a document type declaration: <!DOCTYPE html>. The HTML document itself begins with <html> and ends with </html>. The visible part of the HTML document is between <body> and </body>.

HTML

Best Practical CSS Tips

Posted on August 4, 2022August 4, 2022 No Comments on Best Practical CSS Tips

1. First letter drop We can use :first-letter it to drop the first letter of the text. The:first-letter selector is used to specify the style of the first letter of an element, it only applies to block-level elements. The effect is as follows. See the Pen Untitled by TeachDeveloper (@TeachDeveloper) on CodePen. 2. Image text wrapping Shape-outside is…

Read More “Best Practical CSS Tips” »

Tips, CSS

ReactJs Properties

Posted on July 29, 2022July 29, 2022 No Comments on ReactJs Properties

A component props is an object that holds information about that component. They are similar to attributes in HTML. In fact, they are passed to the components the same way attributes are passed to HTML. Here’s the code for the component we made in my previous article. Adding Properties to Components So let’s say we want to…

Read More “ReactJs Properties” »

React

How to check if a customer is logged in to Magento 2 or not?

Posted on August 12, 2022August 12, 2022 No Comments on How to check if a customer is logged in to Magento 2 or not?

There are two ways by which you can check if a customer is logged in or not: 1) By using Object Manager It is always a bad practice to use ObjectManager directly. 2) By Injecting Class (Dependency Injection) As said earlier, it is one of the worst practices to use the ObjectManager directly. Therefore an…

Read More “How to check if a customer is logged in to Magento 2 or not?” »

How to, Magento-2

How to Delete Files in Ubuntu Command Line

Posted on January 2, 2024January 2, 2024

When you are new to the command line, even the simplest of the tasks may leave you searching the internet. Take the removal of files for example. You don’t have the luxury of right-clicking and opting for the delete option here. But when you know the right commands, things are not as scary. To delete…

Read More “How to Delete Files in Ubuntu Command Line” »

Tips, Top Tutorials, Ubuntu

PHP 8: Attributes

Posted on September 25, 2022September 25, 2022

As of PHP 8, we’ll be able to use attributes. The goal of these attributes, also known as annotations in many other languages, is to add metadata to classes, methods, variables, and whatnot; in a structured way. The concept of attributes isn’t new at all, we’ve been using docblocks to simulate their behavior for years…

Read More “PHP 8: Attributes” »

Top Tutorials

Categories

  • Codeigniter (3)
  • CSS (11)
  • eCommerce (1)
  • Framework (1)
  • Git (3)
  • How to (43)
  • HTML (5)
  • JavaScript (15)
  • Jquery (7)
  • Laravel (1)
  • Linux (4)
  • Magento-2 (1)
  • Node js (4)
  • Others (2)
  • PHP (11)
  • React (13)
  • Server (1)
  • SSH (3)
  • Symfony (6)
  • Tips (16)
  • Top Tutorials (10)
  • Ubuntu (3)
  • Vue (1)
  • Wordpress (7)

Latest Posts

  • What is SSH in Linux?
  • How to Delete Files in Ubuntu Command Line
  • How to Deploy a React application on a cPanel
  • How to use events listeners and Event Subscriber in Symfony
  • How to Convert PHP CSV to JSON

WEEKLY TAGS

AJAX (1) Codeigniter (1) Javascript (11) JQuery (1) PHP (16) Programming (1) React (3) Symfony (1)

Random Post

How to Delete and Remove Files on Ubuntu Linux Terminal
How to Get Environment Variables in Laravel ReactJS
Understanding State in React Components
How to use :hover to modify the CSS of another class?
How to split a string into an array with Twig

Quick Navigation

  • About
  • Contact
  • Privacy Policy

© Teach Developer 2021. All rights reserved