Welcome Guest, Not a member yet? Register   Sign In
Model method not inserting data into database
#6

Using row_array() instead of row() simply changes how you must reference the data afterwards, and wouldn't help unless there was a typo in the existing code or there was a reason to pass an array instead of an object. In this case, $id should be a value retrieved from the row, hence $this->ion_auth->user()->row()->id (using row_array() would make it $row = $this->ion_auth->user()->row_array(); $id = $row['id']Wink.

More than likely, the issue is either that the id is an unexpected value or there is a problem inside the log_activity() method.
Reply


Messages In This Thread
RE: Model method not inserting data into database - by mwhitney - 08-27-2015, 11:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB