in my codeigniter 3 view page i post id value while submitting the form to controller method as hidden input and activate an ajax function which updates sql table in phpmyadmin.
<input hidden type="hidden" name="REPORT_ID" value="{{ @$AKTIVE_PROFILE->id}}">
here, i got id value from active profile.
but i want to send this id value outside the submission proccess as well. so that i could be able to use that in first load of page to generate form content from the sql tabel directly.
how should i retrive the $AKTIVE_PROFILE->id
value in controller method directly when ajax does not activated? and outside the form submission.
could you provide a solution for that?