Hi all,
I am trying to make a multidomain setup of codeigniter.
I need to support links like this
www.site.com/users/username
subdomain.site.com
www.othersiteparkedonsite.com
in this 3 different cases i want to load application folder regarding the case
following code in index.php will work only with subdomain and domain case
//...
Hello,
I am using CodeIgniter framework for PHP. There are some pages that are exclusively for Admin and they are located in Admin/*. When the user logs in, i store some value in session as a flag and verify it in my controller to test whether the user is logged or not. I wrote the code to check session in every method in my controller....
I'm sure this is simple but I can't see how to make uploading a file with CI optional.
If you leave the file input box empty, the error "You didn't choose an upload file" appears.
The reason I want it to be optional is that my form edits a directory type listing, and I don't need to upload the image each time I edit the listing.
Is th...
I have a legacy database with a field which contains some parentheses, like "red(b)".
But if I try to query for that value, the parentheses come out encoded.
This query:
select * from table where field1 = "red(b)"
Becomes this query:
select * from table where field1 = "red & #40; b & #41; "
(I put a space between the & and # so...
For example, in Twitter you can have this URL format:
http://twitter.com/username/
With "username" being the username for the user.
I am wondering on the proper method to have that in Codeigniter. I would need the same format. I have other pages such as user account management, about, etc. Would I need to route it through one function,...
I am using codeigniter for my project and the file upload is taking a lot of time in server. When a user uploads images of size above 3 MB, its taking more than 1 minute to upload. Is there any way to speed up file upload process or does it depend upon the net connection being used
...
I'm starting a new site project in Codeigniter. I need this site to be multilingual, where English will be the default language.
I know how the language class in codeigniter works, and I am already using it.
My concern is that I need the URL to be shown in the selected language. I'll explain myself with an example:
When English langu...
I'm trying to use Codeigniter OpenID library (http://codeigniter.com/wiki/OpenID/) and everythyng work fine with default configuration of ci without .htaccess. When I remove index.php by changing config.php and .htaccess I get 404 Page Not Found when I try to verify my openid (http://ci.dlsb.eu/test/)
Can anybody tell me where I'm wrong...
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
function create_captcha($data = '', $img_path = '', $img_url = '', $font_path = '')
{
$defaults = array('word' => '', 'word_length' => 6, 'img_path' => '', 'img_url' => '', 'img_width' => '150', 'img_height' => '30', 'font_path' => '', 'expiration'...
I know how to center a regular popup window with javascript, but I can't get it to work with CodeIgniter's anchor_popup function.
Here is my code
$attributes = array(
'class' => 'blue-button',
'width' => '800',
'height' => '600',
'screenx' => '(window.width - 800) / 2',
'screeny' => '(window.he...
Hello,
I am just wondering if I could run CodeIgniter applications on Zend Server Community Edition without any issues.
I don't want to mess everything up by experimenting. Please let me know if you have faced any problems running CI on ZendServer CE.
Thanks
...
I'm using CodeIgniter and I can't figure out how to unzip files!
...
I am working on an apartment CRM of sorts and I would like to allow renters to be able to pay bills online. My issue is that I don't know how you would implement a system that would work in this case. I would both need to accept payment from landlords/owners for providing a service to them and also allow them to collect rent from their r...
Hello all
I am creating a webapp using codeigniter. I want to implement a error handling function. Say for example if I call a method of a model, and if an error occurs in that method, the error handler comes into action to return some pre-formatted string.
I was thinking of creating something like MY_Model, which every model class ext...
<div style="display: none;">
<div id="location<?php echo $r->id ?>">
<?php echo $r->address; ?>, <?php echo $r->city; ?>, <?php echo $r->province; ?>
<h3 class="sub">Map of Location</h3>
<?php
$CI->conjunction->showMap($r->id, $r->lat, $r->lon, $r->postal, 'map_canvas'...
After I was upggrading the CI 1.7 with Codeigniter 2 returns an Error and it shows as a routing error, its because of CodeIgniter 2 Routing library has little optimized. how to resolve this problem?
...
Im currently using codeigniter to build a messaging system and im trying to stay within the MVC guidelines, however I can't seem to find a way to easily update dynamic page content without having the HTML dynamically generated in the controller; which I believe is frowned upon when using an MVC framework.
Currently I am using ajax to r...
Hi,
I have been tearing my hair out over this for about 3 hours, please can someone help?
Here is what I want to achieve...
On my home page I wish to have a sidebar widget/module which displays the latest 10 events from the events controller.
I started off trying to use the widget plugin, but could not get my head around it -[url=htt...
Hello all
I want to implement a SQL statement using codeigniter active record.
UPDATE tags SET usage = usage+1 WHERE tag="java";
How can I implement this using Codeigniter active records?
Regards
...