Recent content by pm4

  1. P

    XF 2.0 Best way to create/update entity

    Hi, what's the best way to make CRUD operations, in detail, how can I create (and update if it does exists) an entity with a single function? Thank you.
  2. P

    XF 2.1 Should I use custom user field or define my own table

    Hi, I have tried this same example, but it seems to not work. I'm using Xenforo 2.0 <?php namespace DM\BuyersPage\Entity; use XF\Mvc\Entity\Structure; class Buyer extends \XF\Mvc\Entity\Entity { public static function getStructure(Structure $structure) { $structure->table =...
  3. P

    XF 2.0 How to create a custom field from an addon

    Hi, how can I create a custom field from an addon? (XF 2.0) Thank you!
  4. P

    XF 2.0 delete and edit admin link

    I have only this route, what do I have to add? Thank you.
  5. P

    XF 2.0 delete and edit admin link

    Hi, I'm building a basic CRUD interface for an invitation system, the problem is that <xf:delete href="{{ link('invitation/delete', $invitation) }}" /> only returns the invitation/delete link. This is my invitation Entity class Invitation extends \XF\Mvc\Entity\Entity { public static...
  6. P

    XF 2.0 Help with routing parameter

    Hi, I have this routing configuration but when I visit the page I get this: Can someone help? Thanks!
  7. P

    XF 2.0 Best place to store secure temp data

    Hi, I'm developing a shopping cart for xenforo. What is the best place to store the cartid? Thank you very much.
  8. P

    XF 2.0 Load additional template

    Hi, I'd like to have a registration page where if the user fills a custom field another template with other fields is injected in the main template. Is this possible? Thank you.
  9. P

    XF 2.0 Get customfields in a controller

    Hi, thank you for your answer. The issue is that I have this code in my controller $userid= 52; //for example $userFinder = $this->finder('XF:User'); $user = $userFinder ->with('Option', true) ->with('Profile', true) ->where('user_id', $userid)...
  10. P

    XF 2.0 Get customfields in a controller

    Hi, how can I get custom fields of an user in a controller? Thank you.
Top Bottom