Questions tagged as 'codeigniter'

1
answer

Upload does not work online, part of the Upload class code appears on the screen

I created a project in PHP using the CodeIgniter that uploads an image to the server. Locally it works perfectly, however, online, hosted on a Locaweb server ( Windows Platform ) presents an error, when I upload it appears part of the code o...
asked by 01.07.2014 / 15:16
2
answers

URL rewriting in .htacces

I have the following URL: http://<site>/application/views/ambiente_teste/assets-teste/... And I wanted to re-add it to: http://<site>/assets-teste/... I tried the following in my .htaccess: RewriteRule ^assets-teste/?$ /a...
asked by 16.12.2014 / 20:20
1
answer

Private functions via ajax - Code Igniter

I'm using CodeIgniter to create a web system and so the user does not refresh the page by missing it already I use all ajax calls inside "modules". The problem is that if I put a function in a controller as public the user can kick the URL and a...
asked by 05.01.2015 / 16:52
1
answer

Insert dates into the database?

How do I insert the maximum number of days of a month via insert into codeigniter? Ex: data | campo2 camp3 01/01/2014 | 02/01/2014 | 03/01/2014 | . | . | . | 31/01/2014 |     
asked by 09.06.2014 / 20:28
1
answer

How to join two selects of different tables?

I have the following tables: +--------- + +-------------+ | usuario | |usuario_grupo| +----------+ +--------- + +-------------+ | grupo | |usuario_id|----->| membro_id | +----------+ | nome | | grup...
asked by 23.08.2017 / 22:35
1
answer

How to feed notifications in real time as a logged in user?

I'm wanting a system that keeps updating the logged in user to go showing the messages he receives. Taking into account that this system will have 250-500 concurrent users there, what is the best way to search the data in the database and update...
asked by 24.11.2016 / 18:05
1
answer

Multi connections MySQL Codeigniter

In my database.php I created two connections: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $active_group = 'default'; $active_record = TRUE; $db['default']['hostname'] = 'localhost'; $db['default']['usernam...
asked by 04.10.2016 / 17:38
1
answer

How to access a variable array codeigniter

I have difficulty getting values inside an array variable in codeigniter Help me understand how this works once and for all I made a search in the database that is sent to the view by an array: Controller $dados= array( 'perfil' => $this-&g...
asked by 14.10.2016 / 20:18
1
answer

column does not obey the where statement of an update

I have a problem. At the moment I do an update, when I use the where only the line with the informed code is updated. but the description field that I inform, its contents is replicated for all the lines of the bank this is the only column that...
asked by 09.06.2016 / 16:29
1
answer

Pass an array of one query to all Codeigniter pages

It has a view that repeats itself in all the others through a $this->load->view('menu'); would I have a way to load the dynamic menu query in all other views with the above line? If I do this on all controllers, of course it's true:...
asked by 31.05.2016 / 19:20