Comments (5)
I reported the user with a link to this comment. Would suggest others do the same.
from vagrant-examples.
Great, I can see its been removed, top job!
from vagrant-examples.
^^^ Scam post ignore (dodgy link)
from vagrant-examples.
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.
Shouldn't be done like that
from vagrant-examples.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vagrant-examples.