I've created a php page, but the content may only be available for a particular group Joomla.
The file is within a folder, and this folder is in the root of the site with joomla!
How do I get my php page, check the user data: UserGroupID
/ root
/ root / administrator
/ root / components
...
/ root / folder
/ root / folder / file.php
And file.php
$content_to_group_id = 7;
if ($group_id_user == $content_to_group_id) {
// show
} else {
// error
}