Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Youssef qasmaoui
    @qasmaoui
    my code look's like
    function login_post(){
    $login= $this->post('login');
            $this->response($login, 200);
    
    }
    how can i acess the login i sent as a parametrs
    using http post
    Youssef qasmaoui
    @qasmaoui
    well . in case of somebody seen this ( as i was sending json data ) i got my data like this
        $input_data = json_decode(trim(file_get_contents('php://input')), true);
    Kavinda Jayakody
    @kavinda1995
    Hello everyone,
    Does anybody knows how to upload image through rest server?
    MeloGit
    @MeloGit
    Hi everybody, I'm trying to configure my restserver with CI 3.1 and I have this issue
    image.png
    Someone can help me
    image.png
    Akshil Shah
    @akshilshah
    Hi, I know the how to fix the error ping me
    K Lakshmi Deepak
    @kldeepak_twitter
    Hi @akshilshah, I'm also facing same issue can you help me out
    Prakash A Bhat
    @spabhat

    in you controller do this:

    <?php
    use Restserver\Libraries\REST_Controller;

    class Example_api extends REST_Controller {
    }

    Then in the file: libraries/REST_Controller.php
    <?php
    namespace Restserver\Libraries;

    use Exception;
    use stdClass;

    require('Format.php');
    use Restserver\Libraries\Format;

    This works for me in CodeIgniter version 3.1.7

    ComputerAbir
    @ComputerAbir
    Hello everyone I am using backbone and Rest_controller for a web application. I have some problems using the delete function
    mpuyosa91
    @mpuyosa91

    Hi everybody, i'm upgrading a codeigniter 3.0-dev and i'm having troubles with Rest Server

    PHP Fatal error: Class 'REST_Controller' not found in ...

    I have REST_Controller abstract class on library folder, and i'm already importing it, can anyone help me?
    Prakash A Bhat
    @spabhat
    @mpuyosa91 why 3.0-dev? when there is 3.1.7 ?
    ComputerAbir
    @ComputerAbir
    Hello everyone! For some reason I am getting "Failed to load resource status 500" error, and I do not know why, I have tried a number of things, but the problem is still here. Does someone know how to fix this? Any help is appreciated.
    The resource works fine, I know because it works fine somewhere else.
    ComputerAbir
    @ComputerAbir
    Hello everyone, I hope you are doing well. Apologies for this "silly" question in advance, however I want to know if it's possible to sent data over to the database without the use of forms? So far I have been using forms to post and get information from my database, however I am working on this web application where it would be better if I could somehow do that without the use of forms? Thank you in advance if you know the answer to this question and give me some advice :)
    Sawa
    @sawaYch
    I think CUrl library would be a good choice, or using AJAX request?
    ComputerAbir
    @ComputerAbir
    Hello everyone, is there a limit of characters which you can send through with a GET request? I am using ajax for this particular GET request, but I am getting this 400 bad request status code, has anyone come across this before? Thanks
    • this is my ajax code
    image.png
    • this is function which deals with the Get request
    image.png
    • and this is the 400 bad request error code I get.
    • can someone tell me where I went wrong?
    image.png
    Web & Co 2.0
    @webandco_gitlab
    Hey everyone, is it possible with this library to generate a wadl automatically ?
    ComputerAbir
    @ComputerAbir
    Hi everyone is there an application which allows you to measure the size of a website? let's if I visit bbc.co.uk/news I would like to know the size of the of the site or page at least, so is there an application that do that?
    ComputerAbir
    @ComputerAbir
    sql screenshot 08 19-13-57.png
    hi guys is it possible to possible to have a query inside Value?
    I am trying to do that but so far so no luck
    I am trying to have a sql query inside Value() if that makes sense, so a nested query for Value().
    ComputerAbir
    @ComputerAbir
    Hi everyone, hope you are doing all well! I know strictly speaking this isn't a place for it, so I apologise in advance. I will be graduating this summer in Computer Science and I needed some help with my CV, I have one, but I am sure it can be done better, so if someone could read my CV and give me some feedback and tips, I would very much appreciate that!
    Chaudhary Sushil
    @heysushil
    i friends I using this file to create api to get all data of table and I'm successfully get the data on json format on browser and postman but how to authenticate it
    I am using 2.1.3 version file and on rest config file make rest_enable_key ture but it shows fatal error
    Chaudhary Sushil
    @heysushil
    I also found restful code on codexWorld https://www.codexworld.com/codeigniter-rest-api-user-login-registration/ which is userd curl but I didn't understand where to put the restful code to make it run on postman with Basic auth or Auth Key
    hi, I want to use auth key or any authentication for my api on 2.1.3 version @chriskacerguis @anburocky3 @akshilshah @mertyildiran
    Albert Angmor
    @aspokes
    hi everyone. i am new here so pls pardon the dumbness. do i need to merge the codeigniter-restserver with codeginiter itself to install? if yes then what do i do with the duplicate files. thanks
    Chaudhary Sushil
    @heysushil
    You only need to replace the inner files of folder on right way. Because CI structure must be as it is. Also must be have same version of both
    Alex Saldívar
    @SaldivarAlex_twitter
    Hi there!
    Screen Shot 2019-09-20 at 1.39.25 PM.png
    I have this error, anybody help me please?
    Screen Shot 2019-09-20 at 1.39.38 PM.png
    And this is my code
    Ralf Tenbrink
    @rtenny_twitter
    I am starting with a sample CI installation and have added the files. There are several new config files. Do I need to add them to autoload? Or will CI find and load them automatically? Sorry for the newbee question but its the first time I am addedn a 3rd party libary
    Ralf Tenbrink
    @rtenny_twitter
    I got it all working, config files get loaded without adding to autoload.
    Satendra Rawat
    @Satendra-SR

    Hi everyone, I was using this library in my project.
    The PHP version is: 5.6
    Codeigniter version is: 3.0

    I experimented with the Composer and manually and facing a similar problem.
    The URL I'm using is $route['api/example/users)'] = 'api/example/index'; and it shows method not found but when I'm adding the type in the URL like $route['api/example/users)'] = 'api/example/index_get';, it works fine.
    However, it won't work for other methods as the is a check in the Rest_controller to append method to it.

    Could anybody help me with how I can tackle this problem? Thanks

    rtrujilloatencion
    @rtrujilloatencion
    Hi!