Questions tagged as 'codeigniter'

1
answer

Check area size on Canvas

I have a code that when you open the report information, a rectangle is created on top of each image in Canvas. However, these images have different sizes, but the canvas remains the same size. I need to make if the area of the image is 1 the ca...
asked by 30.09.2015 / 16:30
3
answers

PHP session expires ahead of time

I'm having a problem at a session time in PHP with CodeIgniter. I was using the sessions in CI and with so many problems I decided to look for a solution to use native sessions with the CI and at first it has improved, but still it continues to...
asked by 25.02.2014 / 15:25
1
answer

Android and HTTP request field X-auth-token

I'm trying to send a token through an Android application in the 'X-auth-token' field of the header. This request is sent to a PHP server, in which I use CodeIgniter. Android HttpClient httpClient = new DefaultHttpClient(); HttpPost...
asked by 19.05.2015 / 21:47
1
answer

Error connecting to SQL Server using CodeIgniter

I'm having an error connecting the database to my CodeIgniter project, I'm using SQL Server. $db['sql'] = array( 'dsn' => 'DRIVER={SQL Server}; SERVER=HOSTPT-01407; DATABASE=localidade;', 'hostname' => 'HOSTPT-01407', 'us...
asked by 06.10.2015 / 21:41
1
answer

Pagseguro in production: Instant Cancellation

Well, guys, I have some doubts. The Transparent PagSeguro Checkout API implementation is working correctly in PHP, but purchases are being canceled. This is most likely due to invalid buyer data (credit card), but I have not found it yet. Some t...
asked by 18.07.2017 / 21:29
2
answers

Error codeigniter 3: Undefined variable: alert

I'm doing the recording in the bank received from a form, it's recording, but I want a message to appear after the recording, which was received successfully. But you are giving the error below. I've been locked in this for 2 days, I do not know...
asked by 09.09.2015 / 21:33
1
answer

Routes in CodeIgniter

I would like to know how to create routes in CodeIgniter. At the moment, all I can do is routes of type " www.site.com/index.php/page2 ". I would like to create routes like " www.site.com/page2 " I've tried using the CodeIgniter 3 document...
asked by 08.06.2018 / 14:19
1
answer

Difference between base_url (); and base_url ('assets / example');

What would be the difference between them? Because in my project I used both and could not identify the difference.     
asked by 27.04.2018 / 01:15
2
answers

Retrieve string in the database in a dynamic form_dropdown

I'm trying to retrieve a string from a form dropdown field in a update page from my database, view below. $option = array(NULL => 'Selecione uma categoria'); foreach ($categories_list->result() as $category): $option[$category-&g...
asked by 18.06.2014 / 08:24
2
answers

Sum of table fields with PHP and Codeigniter

I need to add some fields to a table. I have the transaction id and I need to sum all the amount fields with the id 224, all with 222.     
asked by 23.03.2016 / 12:19