If you need to inject code, such as JavaScript or CSS for analytics tracking, ad placement, or similar purposes, this software makes it easy to do so.
This software is divided into multiple ends/sections. Refer to the App Homes/Indexes chapter to learn more about them.
Each end/section has a dedicated root-level layout view file.
[app_root]\Nudasoft\App\Views\FramedRootLayout.php
[app_root]\Nudasoft\App\Views\FramedRootLayoutMyend.php
[app_root]\Nudasoft\App\Views\FramedRootLayoutAdminend.php
You can use these files to inject/place code. The injected code will be applied to all pages that use that layout.
If you only need to inject code into a specific view, you can use render sections within the view files.
Each of those root layout files contains several render sections, allowing you to inject code into specific places within the HTML document.
For example, suppose you want to inject some code at the bottom of the HTML body tag in the [app_root]\Nudasoft\App\Views\Home\Home.php
file. However, the Home.php file itself does not contain a body tag. Since the Home.php file extends the FramedRootLayout.php file, and the FramedRootLayout.php root layout supports a render section called bodyBottom, you can use this render section in the Home.php file to insert code at the bottom of the HTML body tag.
To learn more about view layouts and render sections, please refer to the View Layouts chapter in the official CodeIgniter documentation.