Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-20668

documentation: wrong code in cookbook

    XMLWordPrintable

Details

    Description

      on the mentioned page, at the section 'Setting the Repository User' this code:

      $administratorUser = $userService()->loadUser( 14 );
      $repository->setCurrentUser( $administratorUser );

      will show a php error

      correct is:
      $administratorUser = $userService->loadUser( 14 );
      $repository->setCurrentUser( $administratorUser );

      Attachments

        Activity

          People

            Unassigned Unassigned
            paulo.bras-obsolete@ez.no Paulo Bras (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 minutes
                5m