Comments (4)
Hey Brennan, is this fixed now? It should be.
from codeigniter-restserver.
I get an error if I try to pass html as string, my code:
$view = $this->load->view('test_view', '', true);
$this->response($view, 200);
I get two warnings:
Severity: Warning
Message: array_keys() expects parameter 1 to be array, string given
Filename: libraries/REST_Controller.php
Line Number: 830
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: libraries/REST_Controller.php
Line Number: 844
am I using wrong the library or is it a bug?
Regards
from codeigniter-restserver.
The error tells you the exact problem, you are trying to send a string and it wants an array.
Just output the view like you normally would, this extra code is entirely pointless.
Sent from my iPhone
On 21 Jun 2011, at 00:00, [email protected] wrote:
I get an error if I try to pass html as string, my code:
$view = $this->load->view('test_view', '', true);
$this->response($view, 200);I get two warnings:
Severity: Warning
Message: array_keys() expects parameter 1 to be array, string given
Filename: libraries/REST_Controller.php
Line Number: 830Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: libraries/REST_Controller.php
Line Number: 844am I using wrong the library or is it a bug?
Regards
Reply to this email directly or view it on GitHub:
#12 (comment)
from codeigniter-restserver.
I see, thanks
from codeigniter-restserver.
Related Issues (20)
- How is methods set in Rest Controller ? HOT 3
- Installing through composer will remove "self::" from RestController.php HOT 3
- POST request is not working only GET request is working HOT 2
- [RuntimeException] when installing library - [mikey179/vfsstream] HOT 1
- GET method with JSON input HOT 1
- Limit API key to class and function HOT 1
- Expected type HOT 1
- HTTP codes accessed through a variable that does not exist
- Class 'chriskacerguis\RestServer\RecursiveIteratorIterator' not found HOT 1
- Still work on CodeIgniter 3.0.4 ? HOT 1
- Duplicated data in serialized request log HOT 2
- Suspend key HOT 1
- CORS Issue HOT 2
- Add russian language HOT 1
- Cannot send body request from React js app HOT 2
- Got error after a Get service is completed HOT 1
- How about the client side HOT 1
- Issue with CodeIgniter 4.3.2 version - Rest Server version 3.1.4 HOT 2
- about DBAD License on Format.php HOT 1
- PHP 8.3 deprecation for `ldap_connect` with 2 parameters.
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 codeigniter-restserver.