Comments (8)
Just comment them and it is ok now
from codeigniter-subqueries.
I guess I should've tested that a bit more, sorry about that. I didn't realize the 1.7.x series didn't have set_dbprefix
.
from codeigniter-subqueries.
It doesn't seem like there's a way to set the prefix in 1.7.x. You can get the prefix, though. The dbprefix()
function still works. Odd.
Guess I'll just add a check to see if that method exists before trying to use it.
from codeigniter-subqueries.
v2.4.1 checks for this function before trying to call it :-)
from codeigniter-subqueries.
Yes, it works now 👍
BTW, I think it is not a good practice to add ?> at the end of file.
It might cause BOM problem in some charset environment.
from codeigniter-subqueries.
I've seen that most of CI's files don't have the ?> at the end. I just always learned to add it. Not really sure what the "conventions" is.
EDIT: It seems CodeIgniter says you should omit the ?>.
http://ellislab.com/codeigniter/user-guide/general/styleguide.html
I'll do that later, I got other work to do :-P
from codeigniter-subqueries.
For example:
a.php
<?php
require_once('b.php');
header('Content-Type: text/html; charset=utf-8');
?>
b.php
<?php
// nothing to do
?>
There are two blank line at the end of b.php.
Now visit a.php, the warning would come out:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/b.php:5) in /var/www/a.php on line 3
Omit the close tag can solve this.
Note that if you enable output_buffering in php.ini, this problem would not appear.
from codeigniter-subqueries.
I've never actually had that problem, but it seems like something that could happen. Thanks for pointing that out.
from codeigniter-subqueries.
Related Issues (14)
- 0 becomes null HOT 5
- Problem using in union HOT 3
- where (not) exists HOT 4
- Question in Union Example HOT 2
- Error when use 2 or more group_by inside subqueries HOT 13
- Indicate return types HOT 2
- Licence HOT 1
- CI 2.0.3 compile_select problem HOT 7
- CI 2.1 issue: get_compiled_select() HOT 1
- Fatal error: Call to undefined method CI_DB_mysql_driver::get_compiled_select() in ...application\libraries\subquery.php on line 88 HOT 1
- where doesn't support "table.name"
- How to use $this->subquery->defaultDB() ? HOT 10
- Error running the library within CI 2.1.3 (stable) HOT 11
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-subqueries.