html - How should I edit a model entry in mvc? -
i working on small app using phalcon php framework. have implemented multiple controllers , models, far when want edit user example, use link links localhost/myappname/user/edit/11 "user's id" i told not best way this, , trying without passing id through url, using post method in forms without success far. correct way edit or delete entry or there better? tried search problem couldn't figure how name question yet find answered question. if don't want let access edit page can in few ways. solution #1 you can use phalcon acl block user's has no permission edit page allowed people managers can edit user or whatever. see access control lists acl solution #2 you can crypt/decrypt user id in url not readable humans , in edit method try dectypt id , if not valid echo error. <?php use phalcon\crypt; // create instance $crypt = new crypt(); $key = 'le password'; $user_id = 5; $encrypt = $cryp...