Menu editor URL not accepting php code

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
kirondedshem
User
Posts: 642

Menu editor URL not accepting php code

Post by kirondedshem »

When I try to create a custom menu item and paste custom url like "vw_employeeview.php?showdetail=employee_pension_information,employee_identification_information,employee_attachment_information,employee_bank_information&id=<?php echo CurUserID(); ?>"

It does not execute the php section to generate the parameter value, Instead it renders it as Plain HTML.

  1. How do I pass my custom php parameter into menu editor?

kirondedshem
User
Posts: 642

Post by kirondedshem »

For now Ive concatenated the url parameter I want as the menu item is being added .
function MenuItem_Adding(&$Item) {
//var_dump($Item);
// Return FALSE if menu item not allowed
if($Item->Text == "My Details")
{
$Item->Url .= "&id=".CurUserID();
}
return TRUE;
}


Post Reply