favicon, icon, and apple-icon
The favicon
, icon
, or apple-icon
file conventions allow you to set icons for your application.
They are useful for adding app icons that appear in places like web browser tabs, phone home screens, and search engine results.
Image files (.ico, .jpg, .png)
Use an image file to set an app icon by placing a favicon
, icon
, or apple-icon
image file within your /app
directory. The favicon image can only be located in the top level of app/
.
Prisma PHP will evaluate the file and automatically add the appropriate tags to your app's <head>
element.
favicon
Add a favicon.ico
image file to the root /app
route segment.
The link tag for the favicon is all ready set in the <head>
element of your layout.php
file.
The step is replace the favicon.ico
file with your own image file.
<link rel="icon" href="<?= Request::baseUrl; ?>/favicon.ico" type="image/x-icon" sizes="16x16">