Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Pass parameters by post instead get in controller edit options?
  • I am having problems with edit controller action , it shows parameters in the url but i want to hide it.
    for example(person->edit) :
    Is there anyway to hide the id which is (1 or any number)?
    Is possible to pass parameter by post instead get?

    logica_razon@hotmail.com
  • HarroHarro
    Accepted Answer
    If you mean controller method arguments, the answer is no. FuelPHP is based on a URI segment system, in which URI segments map to namespaces, controllers, action methods and parameters.

    But off course you can create forms, post them, and process the post in your action. it would be a very limited framework if it could not do that. But you access that data through the input class:

    <input type="text" name="id" />

    can be accessed in the controller using

    $id = \Input::post('id', $yourdefaultvalue);
  • Thanks Harro.
    I resolved of another way , passing parameters by using post.
    I am glad to know there people willing to help. :)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion