Archivo de la etiqueta: 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 blackSigue leyendo

Etiquetado , , , , | Deja un comentario

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 andSigue leyendo

Etiquetado , | Deja un comentario

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 andSigue leyendo

Etiquetado , , | Deja un comentario

No se puede ejecutar archivos externos de PHP (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]

Mi Sigue leyendo

Etiquetado , , , | Deja un comentario

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 loggedSigue leyendo

Etiquetado , , , | Deja un comentario

CodeIgniter load controller from view

Is there a way to load a controller from a view ?
Here is what i am affter..
I want to use one view multiple times, but this view is being loaded by separate controller that gives the view, informationSigue leyendo

Etiquetado , | Deja un comentario

Javascript / PHP string encode / decode with key

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 Sigue leyendo

Etiquetado , , , , | Deja un comentario

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
como este

        $config['remote']['hostname'] = 'localhost';
        $config['remote']['username'] = 'root';
        $config['remote']['password'] = '';
        $config['remote']['database'] = 'countries';
        

Sigue leyendo

Etiquetado , , | Deja un comentario

configure and run scheduled tasks (Cron Jobs!) usando 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 (Yo puedo hacer esto)
make a schedule (yo. once a weekSigue leyendo

Etiquetado , , , | Deja un comentario

Consulta SQL funciona en phpMyAdmin, pero CodeIgniter no

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 ) ) ) ) 

Sigue leyendo

Etiquetado , , , | Deja un comentario
52 páginas