Hello,
i'm using CodeIgniter for developing a community board. As I'm using nested sets to get a nested forum hierarchy, I have to run a lot of queries such as:
SELECT `id` FROM `forums` WHERE 1 BETWEEN `lft` AND `rgt`
My problem: CodeIgniter is replacing the "1" by "`1`" because the "1" is recognized as a column name. Of course, the...
Hi all,
I am integrating ion auth with the codeigniter cart, both are working independently however if I have items in my cart then I login, I lose the cart items.
Guess this is session related, I have scanned the login scripts and doesnt seem to be ended the session and starting a new one, so I am a bit lost.
Fairly new to codeignite...
When we load a view, we can pass some dynamic data to it.
What I would like to achieve is when the view receives no data, it uses some default data that is loaded from a model (database).
The problem is I don't really want to put these statements (that loads the default data) in the view.
What is the simplest solution available, witho...
I'm working with one array that have 55 elements inside and each one are another array with 17 elements each one.
When I show the array on the screen, nothing wrong happens but when I take a look in the page source, I have 55 x 17 "Severity: Notice" errors with the message "Undefined index".
Does someone know what can be wrong?
If th...
im using the following library in codeignighter
http://codeigniter.com/wiki/File:Paypal_Lib.php.tgz/
when i go to my history>ipn history in my paypal account, all the ipn notifications have a status of 408
is this a server problem. ive tried rewriting the ipn handler everywhichway
im on rackspace cloud.
...
As a quick background. I am a web developer. I tried to develop 10-15 of my domains. Due to lack of time/focus, none got anywhere - as such I decided to focus on two, and do them properly.
In the past, I have used wordpress for a CMS of sorts.
One of the sites is essentially a blog with additional PHP based dynamic features. Using the P...
Hi All .... I use codeigniter framework for my new project and the photo upload is taking a lot of time in server. what could be the reason. The server is bluehost
...
Hi everybody!
I'm build a a BitTorrent tracker with CodeIgniter, and i'm use Torrent RW class for parsing .torrent files (info hash, read/write tracker url, etc.).
I would like to run external torrents, and i need help: how to parse external torrent stats -> seeders-, leechers number.
Please, help me, and sorry for my bad english.
Th...
One of the pages in one of my apps runs very slowly on the web server compared to my local test server. There are some radical differences in the environments that might explain it, but I'm hoping for a more solvable solution than that.
Server:
Solaris 10
Apache 2.2.9 Prefork
PHP 5.2.6
The server is run on a cluster of 4 not-even-a-yea...
This is my first time getting my hands dirty with CI so I'm getting a little confused.
I'm wanting to accomplish a couple things with my question. First of all, I'd like to always use the default controller without having it to appear in the url. For example, I created a new class named after my site (Example.php) and that works fine. H...
Hello,
When a user tries to access our website via a link (for instance going to www.website.com/privatepage) they are redirected to a login page. Once they login, we want to redirect them to that intended URL - how do you do this?
Also we have a use case where a user logs in from the homepage, or goes directly to the login page with ...
I'm trying to do this in CodeIgniter. Here's my code I put into pastebin.
As you can guess, it's not working. I need the view to render the results like this:
A
A Client
A CLIENT 2
Another Client
B
Big Client
Brother client
C
Course I'm a Client
Coming Over Client
You get the picture. I really need the help. Thank you!
...
Hi,
I have enabled the use of query strings by setting the config variable "enable_query_strings" = TRUE.
I understand that in order to invoke method X of class Y, my URL will look like this:
http://localhost/ci_sample/index.php?c=Y&m=X
However, what if my function signature for X is
function X($param1, $param2) {...}
how sho...
Is there anyway to gzip with codeigniter? If yes please share Library, plugin or helper...
Thankyou!
...
I have a foreach and then a foreach inside a foreach. The first foreach seems to work fine and I don't get any php errors. However in each subsequent foreach loop I get a Message: Undefined property: stdClass::$filename error (replace filename with every single identifier). Can someone help me out and tell me what I'm doing wrong? Thanks...
Hi folks
I have a website going that takes a user's uploaded image, and makes three copies - a 'full' copy to print with (downsized to 1500x1125), a 'web' copy to display online (not coded yet), and finally a thumbnail.
So here's the code - _imageformat() is passed the parameters (which I've confirmed to be correct) from CI's Upload Cl...
Hello, I'm very newbie to php and codeigniter (and smarty too).
I follow a lot of tutorials and Now I'm confident with my smarty + CodeIgniter configuration, but now I have this escenario. I want to pass a couple of variables into a smarty include in order to show just two strings in the include ( the header, the strings are part of the...
i recently start using CodeIgniter as PHP MVC FrameWork , before CodeIgniter, i was using my own small implementation of MVC Pattern , So , i was using language system build on constants like :
define( CONTACT_US , ' Contact Us ' ); and so ... , but when i start using CodeIgniter , i see it use Language Class , so if we need to use a la...
I have json object like this, the site is running codeigniter which is ultimately the problem.
var obj = {
states : {
'state' : {cities : ['city', 'city2', 'another']},
}
}
the problem is some states have special characters like , or spaces. When those states get added I get a Disallowed Key Characters. error....
I am using codeigniter 1.7.2.
In my web app after logging out, on clicking the back button of the browser the page is reloaded in the logged in page.
This issue is occuring on Opera and Safari only.
I have disabled cache using meta, but that doesn't help. :(
<meta http-equiv="PRAGMA" content="NO-STORE" />
<meta http-equiv="Expires" c...