Code Monkey home page Code Monkey logo

boutiquecommerceold's Introduction

BoutiqueCommerce

CURRENTLY UNDER DEVELOPMENT

An eCommerce and Point-Of-Sale platform for apparel boutiques

Built with PostgreSQL (connecting through PHP-PostgreSQL), PHP (using the Slim3 micro framework),...

INSTALLATION (QUICK AND DIRTY) clone/download Create Apache site/host (with SSL support) with root Src/public Create postgresql db from the postgresDb.sql dump. Copy Src/config/env-sample.php to Src/config/env.php and fill in the blanks (especially db section) Navigate to site/index.php then login with btqbtq / btqbtqbtqbtq

boutiquecommerceold's People

Contributors

digitaltim avatar it-all avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

boutiquecommerceold's Issues

Should we set $_SESSION['formInput'] in middleware

Currently are setting
$_SESSION['formInput'] = $request->getParsedBody();
in controller methods as needed. I believe this is the best approach, even though it causes some repetition as opposed to setting it once in middleware, because it must be unset upon a successful controller action and that doesn't seem possible through middleware. Leaving it in the controller methods will be a good workflow, setting and unsetting in each method where form input is required.

Note, the middleware code that works for setting is
if ($request->isPost() || $request->isPut() || $request->isPatch()) {
$_SESSION['formInput'] = $request->getParsedBody();
}

Error Handler Redirect Page

for non-fatal errors handled in ErrorHandler::handleError(), we currently redirect to the home page and display the error message (details on dev site, generic on live site). is it better to remain on the current page (either redirect to current script or spit out complete html page within ErrorHandler)?

weird php error

getting written to log file on occasion for me

[2017-04-20 19:22:21 America/New_York]btqWeb Page: GET /type: 32
message: type: 32

file: Unknown
line: 0

type 32 means CORE WARNING or something. i'm guessing there's something wrong in my php.ini file - sounds minor. i'm not sure how to debug, but not really a problem

admins logic in list.twig not compatible w/ testimonials

authorization is basically 'hard coded' for admins functionality:

{% elseif key == updateColumn %} {% if authentication.user.role == 'owner' or attribute(row, 'role') != 'owner' %} <td><a href="{{ path_for(updateRoute, {"primaryKey": attribute(row, 'id')}) }}" title="update">{{ value }}</a></td>

as is delete logic:

{% elseif key == 'delete' %} {# do not show delete link for the current user (cannot delete self) or for owner rows if the current user is not and owner #} {% if attribute(row, 'username') != authentication.user.username and (authentication.user.role == 'owner' or attribute(row, 'role') != 'owner') %} <td><a href="{{ path_for(value, {"primaryKey": primaryKey}) }}" title="delete" onclick="return confirm('Are you sure you want to delete admin {{ attribute(row, 'username') }}?');">X</a></td>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.