Skip to main content
Blog IT Information technology

Main navigation

  • Home
  • Contact us

User account menu

  • Log in
  • Register

php

  1. Home
  2. Blogs
  3. Php

Pagination

  • First page « First
  • Previous page ‹‹
  • Page 1
  • Current page 2
  • Page 3
  • Next page ››
  • Last page Last »

Dynamically modify the content displayed in the "empty" area of your view

This is how you can dynamically modify the content displayed in the "empty" area of your "custom" view when it's rendered as a block, based on the configuration's empty header text. Of course you can update the conditions as you think they fit better for you. You can put this into your web/modules/custom/custom.module file.

Although this is of course available from within views admin ui section, sometimes in production for example you might not provide for security reasons the views_ui module making it hard for modifying the empty header text message of a view.

Blog IT Blog IT
1 year 10 months ago
Read More

How to create a custom database table with Database Schema in Drupal 8+

Recently i had to build a custom simple table in a drupal 8+ installation that would be used as an api feed bridge between drupal 8+ and a custom api feed service. This is the code i used for the custom table with an extra tip for the date field since there is no date type by default in drupal.

Blog IT Blog IT
1 year 11 months ago
Read More

How to programmatically login/authenticate a user Symfony

Last night I was experimenting with Silex and I needed a register/login form. Silex comes with a SecurityServiceProvider which gives you the power of the symfony/security component. But I couldn’t figure out how to programmatically login the user after registration. So here’s my solution:

In order to login you have to do following steps

Blog IT Blog IT
2 years 4 months ago
Read More

Environment Configuration Laravel

Environment variables are those which provide a list of web services to your web application. All the environment variables are declared in the .env file which includes the parameters required for initializing the configuration.

By default, the .env file includes following parameters: 

Web Developer Web Developer
2 years 3 months ago
Read More

Create Route Larvel

In Laravel, all requests are mapped with the help of routes. Basic routing routes the request to the associated controllers. This chapter discusses routing in Laravel.

Routing in Laravel includes the following categories: Basic Routing - Route parameters - Named Routes

Web Developer Web Developer
2 years 4 months ago
Read More

Install Laravel with composer

Laravel is a web application framework based on PHP, it provides tools to create powerful and robust applications, it is an open source framework, which provides a structure that saves a lot of time to create and plan large applications . It is one of the most secure platforms using a PHP base. It provides built-in features for user authorization such as login, register and forget password.

Web Developer Web Developer
2 years 4 months ago
Read More

Create taxonomy term programmatically drupal

We know Taxonomy is a powerful core module and helps us categorize the content. A vocabulary in Drupal is essentially a container for terms that are used by the system. These terms are what Drupal uses to connect certain areas together within the website.

Blog IT Blog IT
2 years 4 months ago
Read More

How to Use bcrypt to Hash Passwords in PHP

It is not a secret that storing passwords in a clear text is not secure. However, sometimes developers do that to make the site easy for password recovery. There exists a password hashing technique that is used for building the security of passwords. It is called bcrypt. You can use it for protecting the password from different attacks. With it, the password is kept in a bcrypted format. In this snippet, we will demonstrate the way of using the bcrypt technique for hashing passwords. It can be done with the password_hash() function.

Blog IT Blog IT
2 years 4 months ago
Read More

Get a remote IP address in PHP

Getting the real remote IP address of the client can sometimes be quite tricky for PHP programmers. Receiving the correct remote IP address has a crucial role both for tracking activity and for the security purposes.

This tutorial is aimed at helping programmers to overcome such problems. Go ahead and see how to get the real remote IP address in PHP. Often, programmers try to use $_SERVER[‘REMOTE_ADDR’] for detecting the real IP address of the client:

Blog IT Blog IT
2 years 4 months ago
Read More

How to redirect a web page with PHP

To perform a redirect in PHP, we use the header() function. This function sends HTTP headers to the server. To perform a redirection, you must send the Location header: followed by the URL of the new page. For this to work, it is advisable to use an absolute URL. A relative URL will however be taken into account in most cases. You must not display any text or HTML before, otherwise it will trigger the display of an error.

Blog IT Blog IT
2 years 4 months ago
Read More

Pagination

  • First page « First
  • Previous page ‹‹
  • Page 1
  • Current page 2
  • Page 3
  • Next page ››
  • Last page Last »

Subscribe to the Newsletter

Blog Category

Web
Mobile
Security
Design

Tags keyword

html
css
php
Sass
html5
drupal
drupal 8
drupal 9
drupal 10
laravel
symfony
vue.js
vue
js
css3
jquery
javascript
image
table
iframe
link
mail
twig
drush
module
git
gitflow
web
drupal 7

Monthly archive

  • May 2018 (1)
  • May 2019 (1)
  • November 2019 (1)
  • December 2019 (1)
  • March 2020 (2)
  • May 2020 (3)
  • June 2020 (2)
  • July 2020 (3)
  • November 2020 (1)
  • December 2021 (3)
  • October 2022 (1)
  • November 2022 (7)
  • December 2022 (15)
  • February 2023 (1)
  • April 2023 (1)
  • May 2023 (2)
  • June 2023 (3)
  • July 2023 (4)
  • August 2023 (8)
  • September 2023 (3)
  • October 2023 (9)
  • November 2023 (5)
  • September 2024 (1)

Copyright © 2025 - Blog Information technology - Sitemap