[RSS Feed/News] Using a new entity's id on creation

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I'm attempting to set an sql field on an entity to the location of an image inside of XF's data dir at the time when the creation/save process happens but I'm not quite sure how to approach this.

I am able to get the file saved with the proper filename and in the proper place (data://taylorj_blogs/blog_header_image/filenamehere.jpg) where filename is the id of the entity that is/was created.

I've tried placing my code in my saveProcess method as seen below
PHP:

protected function...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom