Giter Club home page Giter Club logo

Comments (6)

juniorbatistadev avatar juniorbatistadev commented on June 2, 2024

how?

from mini.

panique avatar panique commented on June 2, 2024

Hey, check this area of the readme, it explains this, it's super easy !
https://github.com/panique/mini#quick-start

from mini.

panique avatar panique commented on June 2, 2024

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.

ezvr avatar ezvr commented on June 2, 2024

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.

panique avatar panique commented on June 2, 2024

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.

ezvr avatar ezvr commented on June 2, 2024

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)

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.