Tag Archives: CodeIgniter
Codeignter's image manipulation(using GD library) doesn't resize some JPEG images
I have an upload form that takes an image jpg/gif/etc, I use it to upload some images(image format is Jpg) for the gallery I use for my website, but unfortunately it doesn’t work well for some images(It makes everything black… Continuer la lecture
Codeigniter form validation errors stuck in a loop
I’m following along with a tut the source files can be found here: https://github.com/JeffreyWay/Simple-CI-Authentication
Now when I try and login it keeps looping back saying I have errors where as in the tutorial video his comes back as ok and… Continuer la lecture
Image upload using php,codeigniter and jquery
Im working on a project..there is a form for posting an item .I want user to choose image and as soon as he select the image, the image should appear as preview. I written that code using plain php and… Continuer la lecture
Can't execute external PHP files (CodeIgniter)
I am using codeigniter for my application and it works fine in localhost and in development server. I am hiding the index.php using following .htaccess
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [L]
…
Prevent sessions from expiring and causing errors
My question is more of a conceptual one, since I’m rather new to working with users and sessions.
My current setup is Codeigniter running with the Tank Auth user library
My problems I’m experiencing are, the users are being logged… Continuer la lecture
Contrôleur de charge CodeIgniter de la vue
Y at-il un moyen de charger un contrôleur à partir d'un point de vue ?
Voici ce que je suis affter..
Je veux utiliser un point de vue à plusieurs reprises, mais ce point de vue est en cours de chargement par le contrôleur distinct qui donne le point de vue, information… Continuer la lecture
Javascript / PHP chaîne de coder / décoder avec la clé
I am working on a sign in form using jQuery / CodeIgniter and was wondering if it would be possible to do something like so:
When the user clicks Sign In… it sends a request via AJAX to get a Continuer la lecture
multiple database connection in CI
can i connection with multiple database
main connections is from database.php
but the another one in from the model
and i want to switch between it
comme celui-ci
$config['remote']['hostname'] = 'localhost';
$config['remote']['username'] = 'root';
$config['remote']['password'] = '';
$config['remote']['database'] = 'countries';
…
configure and run scheduled tasks (Cron Jobs!) en utilisant php
I want to build a section at admin panel to give the ability to configure the scheduled tasks.
Idea :
at that panel:
admin can upload a php file (I can do this)
make a schedule (i. once a week… Continuer la lecture
SQL query works on phpMyAdmin but not Codeigniter
I have this SQL Query :
SELECT *, ( 3959 * acos( cos( radians(41.832100) ) * cos( radians( latitude ) ) * cos( radians( longitude) - radians(-87.789597) ) + sin( radians(41.832100) ) * sin( radians( latitude ) ) ) ) …





