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

Teach Developer

Articles, Guides & Tips

How to Deploy or Host your ReactJS App in cPanel

Posted on August 28, 2022September 17, 2022

This tutorial assumes you already have a cPanel hosting service purchased and a domain name registered. If yes, Let’s go straight to the steps (If No, You can comment, I can give you steps on how to get a domain and hosting service) Step 1. Using the Terminal/CMD in your project directory, create a react…

Read More “How to Deploy or Host your ReactJS App in cPanel” »

How to, Node js, React, Tips

ES6 classes

Posted on July 28, 2022July 28, 2022 No Comments on ES6 classes

Prior to ES6, classes have been in use in Javascript. ES6 just comes with a clean, nice-looking syntax for defining classes. It’s good to note that JavaScript’s class is just a more convenient way of creating constructor functions, which are very different from traditional classes. In this article, we will focus on: How to define…

Read More “ES6 classes” »

JavaScript, Jquery, Node js, React, Tips

How to fix getFullyear() is not a function with JavaScript?

Posted on August 21, 2022September 17, 2022

Sometimes, we want to fix getFullyear() is not a function with JavaScript. In this article, we’ll look at how to fix getFullyear() is not a function with JavaScript. To fix getFullyear() is not a function with JavaScript, we should be called getFullYear instead. For instance, we write to call start.getFullYear to return the 4-digit year number of the start date. Conclusion…

Read More “How to fix getFullyear() is not a function with JavaScript?” »

How to, JavaScript

PHP 8: Constructor property promotion

Posted on September 19, 2022September 19, 2022

I’m very happy with the constructor property promotion RFC, it’s passed and will be added in PHP 8. You see, this feature reduces a lot of boilerplate code when constructing simple objects such as VOs and DTOs. In short: property promotion allows you to combine class fields, constructor definition, and variable assignments all into one syntax,…

Read More “PHP 8: Constructor property promotion” »

PHP

What’s new in PHP 8.2

Posted on September 25, 2022September 25, 2022

PHP 8.2 will be released on November 24, 2022. In this post, we’ll go through all features, performance improvements, changes, and deprecations one by one. Readonly classes rfc This RFC builds on top of them and adds syntactic sugar to make all class properties readonly at once. Instead of writing this: You can now write this: Functionally, making…

Read More “What’s new in PHP 8.2” »

Top Tutorials

How to Define Global Variables for Twig Templates in Symfony 6

Posted on May 21, 2023May 21, 2023

Sometimes we may need to inject the same variable in all the Twig templates. It can be done on each controller by passing a variable to template. However, it is not a good solution. This tutorial shows how to define global variables for Twig templates in Symfony 6 application. Global variables for Twig templates can…

Read More “How to Define Global Variables for Twig Templates in Symfony 6” »

Symfony

Dealing with deprecations

Posted on September 25, 2022September 25, 2022

1. Deprecations are helpful It’s a common complaint: “why do my PHP scripts break with minor version updates??”. And quite right: PHP has a tendency to add deprecation notices in minor releases, which tend to be audibly present when upgrading a project. It’s important to understand what deprecations are about: they aren’t errors, they are notices….

Read More “Dealing with deprecations” »

Top Tutorials

How to Create Live Search in HTML table with jQuery

Posted on July 31, 2022July 31, 2022 No Comments on How to Create Live Search in HTML table with jQuery

This tutorial shows you client-side searching in an HTML table with jQuery this is a very simple and easy code snippet you can use it in small apps reporting where you want to add fast searching you can use this code snippet as a 10-line of code to make a simple. The code for this…

Read More “How to Create Live Search in HTML table with jQuery” »

How to, HTML, Jquery

CSS

Posted on March 4, 2022July 11, 2022 3 Comments on CSS

What is CSS ? CSS for Cascading Style Sheets CSS describes how HTML elements are to be displayed on the screen, on paper, or in other media CSS saves a lot of work. It can control the layout of multiple web pages all at once External stylesheets are stored in CSS files Syntax CSS is…

Read More “CSS” »

CSS

How to Delete and Remove Files on Ubuntu Linux Terminal

Posted on September 13, 2022September 17, 2022

Delete and remove files on ubuntu Linux using the terminal. In this tutorial, you will learn how to delete and remove a file on Ubuntu Linux-based system using a terminal or command prompt. This tutorial will use the rm command. It tries to remove the files specified on the command line. Use the rm command…

Read More “How to Delete and Remove Files on Ubuntu Linux Terminal” »

Ubuntu, How to, SSH

How to Recover Deleted WhatsApp Messages

Posted on September 18, 2022

Recover Deleted Messages From Google Drive & iCloud For Android For Android users, one of the best ways to restore your deleted WhatsApp messages is to restore your backup from Google Drive. But It is only possible if you have set your backup option ON in App. If you have not set a backup option…

Read More “How to Recover Deleted WhatsApp Messages” »

How to, Tips

How to Get Environment Variables in Laravel ReactJS

Posted on October 17, 2022October 17, 2022

This article will provide examples of react js environment variables. I would like to share with you how to get the env variable in the laravel react site. if you want to see an example of how to get environment variables in react js then you are in the right place. we will help you…

Read More “How to Get Environment Variables in Laravel ReactJS” »

How to, JavaScript, React

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 Symfony parameters and environment variables use

Posted on September 11, 2022September 17, 2022

Parameter The Symfony parameter is a variable stored in the service container. Use parameters when you want to separate out values that regularly change as well as for reusable purposes.We should prefix with ‘app’ to prevent conflicting with parameters from Symfony and 3rd party bundle, the following example is a parameter for sender email: #…

Read More “How to Symfony parameters and environment variables use” »

How to, Symfony

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 display the last updated date of a post in WordPress

Posted on August 2, 2022August 2, 2022 No Comments on How to display the last updated date of a post in WordPress

It is better to show the last updated date in the articles in addition to the created date. This will always help the readers to ensure the freshness of the post. It can easily be done on a WordPress site. There are two methods using which the last updated date can be displayed. The first…

Read More “How to display the last updated date of a post in WordPress” »

Wordpress

How to Reverse A String with JavaScript

Posted on July 29, 2022July 29, 2022 No Comments on How to Reverse A String with JavaScript

The inverse string problem is a general algorithm problem. In this article, we will consider four JavaScript solutions for that. Reversing a string is, well, reversing a string. Okay, here’s the problem statement: Write a function that reverses a string. If you pass “Teach” to the function, it should return “hcaeT” and “listen” should become…

Read More “How to Reverse A String with JavaScript” »

JavaScript, How to, Jquery, Tips

How to make the scrollbar visible in mobile browsers with CSS?

Posted on August 21, 2022August 21, 2022 No Comments on How to make the scrollbar visible in mobile browsers with CSS?

Sometimes, we want to make the scrollbar visible in mobile browsers with CSS. In this article, we’ll look at how to make the scrollbar visible in mobile browsers with CSS. To make the scrollbar visible in mobile browsers with CSS, we set the scrollbar’s width. For instance, we write to set the vertical width of…

Read More “How to make the scrollbar visible in mobile browsers with CSS?” »

CSS, How to

Understanding State in React Components

Posted on July 29, 2022July 29, 2022 No Comments on Understanding State in React Components

A difference between state and props is that while the data stored by props are fixed throughout their lifetime, state store data that can be changed over time. This change can be in response to user actions, network responses, or anything. Also, while props are set by the parent component, state is changed internally by the component itself. A component’s state should be considered private data. This…

Read More “Understanding State in React Components” »

React

How to use events listeners and Event Subscriber in Symfony

Posted on July 21, 2023July 21, 2023

We use events to perform some tasks if an event occurs, these tasks can be achieved by using the followings: 1. Event Subscriber 2. Event Listeners Event Subscriber vs Event Listeners They both serve the same purpose but have different implementations. Both trigger some functions in the specific time of processing data by Symfony. We can declare…

Read More “How to use events listeners and Event Subscriber in Symfony” »

How to, PHP, Symfony, 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 trigger a button click from another button click event with JavaScript?
How to Check Twig Version in Symfony
How to check PHP version using the command line
How to Define Global Variables for Twig Templates in Symfony 6
How to Convert PHP CSV to JSON

Quick Navigation

  • About
  • Contact
  • Privacy Policy

© Teach Developer 2021. All rights reserved