Questions tagged [userfrosting]

UserFrosting is a user management system for PHP that works out of the box and builds on top of modern components and standards.

UserFrosting is a user management framework and fully-extendable application for PHP.

It is built on top of the Slim micro-framework, the Twig templating engine, and Laravel's Eloquent ORM.

Features

  • User registration and login
  • Self-serve password reset and account email verification
  • User account settings
  • Groups and roles
  • Fine-grained access control with access conditions
  • Admin user creation and management
  • Sleek, responsive frontend interface

Primary Objectives

  • Create a fully-functioning user management script that can be set up in just a few minutes
  • Make it easy for users to quickly adapt the code for their needs
  • Introduce novice developers to best practices such as separation of concerns and DRY programming
  • Introduce novice developers to modern constructs such as front-end controllers, RESTful URLs, namespacing, and object-oriented modeling
  • Build on existing, widely used server- and client-side components
  • Clean, consistent, and well-documented code
75 questions
1
vote
1 answer

Adding .env file to UserFrosting

I am facing a problem linking my MySQL database to Userfrosting. The guide gives an example of adding a .enr file to the directory so that Userfrosting can read the database credentials, but it doesn't seem to work. Can someone give me an in-depth…
mnismael
  • 43
  • 5
1
vote
1 answer

Saving a field inside database table using eloquent laravel - Userfrosting

This is a sample code inside some controller I have: $arr = json_decode($post['arr_json']); for ($i = 0; $i < count($arr); $i++) { $port = Port::where('id', $arr[$i]->id)->first(); $port->company_a_json = $arr[$i]; …
1
vote
1 answer

Userfrosting - Get Working, Post blank screen with no error in log

I'm creating my first Userfrosting app and trying a few simple things but falling at the first hurdle. I am trying to create a form which adds bands to a database table: CREATE TABLE `uf_band` ( `id` int(11) NOT NULL AUTO_INCREMENT, `band_name`…
Christian Mayne
  • 1,709
  • 7
  • 26
  • 42
1
vote
0 answers

Dropzone.js & UserFrosting Forms

Does anyone have any experience implementing dropzone.js with UserFrosting? I receive the following error in browser's control: POST '.../website/images/upload 400 (Bad Request)' Dropzone.js is added to /website/images/upload, whenever I drag and…
Luke G
  • 1,741
  • 6
  • 23
  • 34
1
vote
1 answer

PHP app, web services & separate IP addresses

I am working on an app where each customer has its own profile. One of the features allows sending SOAP requests to systems owned by customers. Currently all communication with customers web services goes over a single IP address, the same as the…
Luke G
  • 1,741
  • 6
  • 23
  • 34
1
vote
1 answer

Composer & Parsedown - Class 'UserFrosting\\Parsedown' not found

I managed to install Parsedown using composer with "require": { ... "erusev/parsedown": "^1.6" }, and added the class path to the autoload section "autoload": { "classmap" : [ "controllers", "middleware",…
Luke G
  • 1,741
  • 6
  • 23
  • 34
1
vote
2 answers

UserFrosting forms - Invalid or missing CSRF token

I am trying to submit a simple form in UserFrosting and as a test only display the success message, with no data modification. I followed the guidance from Lesson 2 but I ran into the CSRF issue: UserFrosting returns the following error: Invalid…
Luke G
  • 1,741
  • 6
  • 23
  • 34
1
vote
1 answer

UserFrosting, Composer & wrong path in includeJSTop

I recently started learning UserFrosting... I managed to successfully install highlightjs from Packagist using Composer. All went well, new folder and all required files are created in /userfrosting/vendor/components/highlightjs However,…
Luke G
  • 1,741
  • 6
  • 23
  • 34
1
vote
2 answers

Using Laravel Facades with UserFrosting

Have recently starting using UserFrosting to as part of a project and I'm having some problems using Facades within UserFrosting and would appreciate some help if possible. I am attempting to use the File facade from within a UserFrosting controller…
dazoido
  • 13
  • 3
1
vote
1 answer

php error-log on UserFrosting after loading main page

I'm trying to install UserFrosting and i get these errors after loading the main page [01-Oct-2016 18:28:29 Asia/Jerusalem] PHP 6. Composer\Autoload\includeFile() C:\Server\userfrosting\vendor\composer\ClassLoader.php:301 [01-Oct-2016 18:28:29…
1
vote
1 answer

Disallowing spaces in usernames [UserFrosting/Fortress]

How would I implement a filter to block out spaces in username (during registration)? I've been looking at the Fortress documentation, and probably the regex option is the one to look for. But there's no documentation examples on regex, and I've…
amivag
  • 91
  • 4
1
vote
2 answers

How to access config vars from within another class in UserFrosting?

can anyone give me a quick hand with namespaces and the UserFrosting environment? To explain my issue, I'm using TCPDF to create a PDF document from data within UserFrosting. I've created a custom class, MyPDF, in the UserFrosting namespace so I can…
nockieboy
  • 347
  • 1
  • 3
  • 14
1
vote
1 answer

UserFrosting save twig render output to a variable then write to a file

I want to save twig render output to variable and then write into a file. Normally, Twig in other projects would behave like this: $bob = $this->render('index.html.twig',[ 'foo' => $foo, 'token' => $token ]); $bob->getContent(); However, with…
Theodore
  • 21
  • 2
1
vote
1 answer

How to make sidebar menu respond to URLs with parameters?

I define a URL in Slim such as: $app->get('/dashboard/items?', .... I then add a link to it in sidebar.twig, and sure enough, it becomes of class "active" once the link is visited. However, if the URL contains parameters, the link no longer becomes…
amivag
  • 91
  • 4
1
vote
1 answer

UserFrosting (0.3.x) SMTP email error

[UserFrosting 0.3.x] I just set up UserFrosting, and everything looks to be working, except one tiny thing... When a user goes to register, there's an error "Fatal error attempting mail, contact your server administrator" In the…
swcreates
  • 21
  • 2