create perawi.php controller