Questions tagged as 'codeigniter'

1
answer

Get name in Select Join

See the following function: $id_contratos = array_map(function($item) { return $item['id'];}, $result['contratos']); $empresa = " -- aqui eu preciso recuperar o nome da empresa --"; $view["empresa"] = $empresa; And the table with the follo...
asked by 16.11.2017 / 12:44
2
answers

Upload multiple to PHP online server

I have the following function to send multiple images: //Diretório onde a imagem será gravada temporariamente $dirToSave = 'assets/uploads/'.$pasta.'/'.$tipo.'/'; if(!is_dir($dirToSave)){ echo "noa tem"; mkdir($dirToSave, 0777, TRUE);...
asked by 22.11.2017 / 14:36
1
answer

Cron creating files on the server

I have the commands: curl https://meusite.com/acesso/cron/cotacoes wget https://meusite.com/acesso/cron/CPTEC It runs these two commands that are responsible for saving some photos on the server, the problem is that in addition to saving th...
asked by 17.10.2017 / 17:31
1
answer

Project Base in AngularJS with CodeIgniter

Hello, I'm having trouble creating a folder base using angularJS and codeigniter. Some examples I searched on the internet left all of the angular files inside a folder named "app" in the root, other examples left inside the "assets / js /...
asked by 07.11.2017 / 18:54
1
answer

Codeigniter - Only one line from a LEFT JOIN

I have a table that is related by the id of the other. One contains the data of the document, the other contains the images related to the document. More precise than in this specific query, only the first row of the image table is returned....
asked by 26.09.2017 / 15:03
1
answer

How to instantiate an object in Hooks to use in the CodeIgniter Controller?

I have a class that will manage some of my dependencies. I want it to be called before any method is called in the controller , and for this I am using hooks . The problem is that I do not know how to call this object that has already been i...
asked by 18.08.2017 / 17:23
1
answer

Send file to another server using Codeigniter [closed]

I have a Web System that I will move to a hosting. More I have the system with 2 banks (one for the site and the other is in my house for path of files, documents, logs, etc), the script will stay in the hosting and the path of the files on the...
asked by 09.08.2017 / 22:07
1
answer

Error connecting PostgreSQL to CodeIgniter? [closed]

PostgreSQL connection error with CodeIgniter:        
asked by 09.09.2017 / 16:14
1
answer

Always redirect to HTTPS with Codeigniter

I have an application with CodeIgniter and I always have to force the connection to always redirect to https . I did this: Changed within config\config.php line $config['enable_hooks'] to TRUE . Within con...
asked by 24.07.2017 / 20:49
1
answer

Save in the database the information of a variable in Codeigniter

I'm getting a lot of product information from the Cosmos API and storing it into variables, but how do I save the information from those variables in the database? VIEW $curl = curl_init($url); curl_setopt($curl, CURLOPT_HTTPHEADER, $hea...
asked by 27.06.2017 / 21:48