Comments (6)
how?
from mini.
Hey, check this area of the readme, it explains this, it's super easy !
https://github.com/panique/mini#quick-start
from mini.
example.com/songs/editsong/17 will do what the editsong() method in application/controllers/songs.php says and will pass 17 as a parameter to it.
from mini.
is it possible to pass two or more parameters to the method? for example creating an API, which has several arguments, maybe how many values, and which database to get the values from..
from mini.
Good question, can you plz try out if this works (I dont have a dev computer right now here):
as URL
example.com/songs/editsong/17/abc
and in https://github.com/panique/mini/blob/master/application/controller/songs.php
use two parameters in the controller method, like public function editSong($song_id, $something)
Method 2: maybe simply use POST routes, like the delete/edit controller methods like public function addSong($artist, $track, $link)
in https://github.com/panique/mini/blob/master/application/model/model.php
Hope it works out well for you :)
from mini.
Dear panique, thanks for your reply! I actually ended up implementing this using the _GET params inside my model functions, as such: $location = $_GET['location']; for url?location=XXX
from mini.
Related Issues (20)
- how to use session?? HOT 2
- [Question] How to display one song? HOT 3
- Suggestion!
- Pagination
- Question on adding more helpers
- how to add validation and session HOT 1
- How to add a login/register model?
- Please organize classes with namespaces HOT 1
- How to make a www to non-www redirect htaccess rule? HOT 1
- Fetch identity after insert HOT 2
- Model
- nginx erro HOT 3
- IIS web.config Error 404
- Nginx conf with $_GET params
- How add DoctrineORM to Constrollers?
- Internal Server Error HOT 2
- How to add controller/model for Login/Register
- Need to set cron
- moving mini from Apache to Nginx
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 mini.