How do I get the user ID logged into the site, then insert it into another table?
Trying to explain better. I have an action called CreatePub, which allows the user to write their publications on the site. In my publications table, you have the user id, which is mandatory, for me to know who posted on the site. My idea, it's time for the user to click create publications, this field of the publications table, receive the user id logged in, thus allowing the insert.