Code Monkey home page Code Monkey logo

Comments (5)

indradhanush avatar indradhanush commented on July 24, 2024 3

I reported the user with a link to this comment. Would suggest others do the same.

from vagrant-examples.

richardforth avatar richardforth commented on July 24, 2024 2

Great, I can see its been removed, top job!

from vagrant-examples.

richardforth avatar richardforth commented on July 24, 2024 1

^^^ Scam post ignore (dodgy link)

from vagrant-examples.

michaltakac avatar michaltakac commented on July 24, 2024

Few dirty moves, just to get it working in http://your.ip/dynamic-site/public...

Open /dynamic-site/application/views/additem.php

Change:

<form method="post" action="/add.php">

To:

<form method="post" action="/dynamic-site/public/add.php">

Same changes in other files
edititem.php
Change:

<form method="post" action="/edit.php?id=<?= $item->getId() ?>">

To:

<form method="post" action="/dynamic-site/public/edit.php?id=<?= $item->getId() ?>">

allitems.php
Change:

...
        <td><a href="/edit.php?id=<?= $item->getId() ?>">edit</a></td>
...
<p><a href="**/**add.php">add new item</a></p>

To:

...
        <td><a href="/dynamic-site/public/edit.php?id=<?= $item->getId() ?>">edit</a></td>
...
<p><a href="/dynamic-site/public/add.php">add new item</a></p>

header.php
Change:

<link rel="stylesheet" href="/assets/reset.css"/>
<link rel="stylesheet" href="/assets/dynamic.css"/>

To:

<link rel="stylesheet" href="/dynamic-site/public/assets/reset.css"/>
<link rel="stylesheet" href="/dynamic-site/public/assets/dynamic.css"/>

In /dynamic-site/public in add.php and edit.php, change all these lines:

header('location: /');

To:

header('location: /dynamic-site/public/');

from vagrant-examples.

michaltakac avatar michaltakac commented on July 24, 2024

Shouldn't be done like that

from vagrant-examples.

Related Issues (4)

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.