[RSS Feed/News] Add vs Edit

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
In making my addon, i see that XF uses just 1 template for both add and edit.

I can't get it to work.

When i include ID, i can't 'add' but edit works. (includes a hidden input in form)
When i don't include ID, i can't edit, as it gives me a duplicate entry error, which tells me it's trying to add, not edit.


I'm testing if the there's a slug in the url (works) and if so, pull that record.
if not, create an entity:

Code:

Code:
			$this->assertPostOnly();
			
			if($params['slug'])
			{...

Read more

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