Questions tagged as 'codeigniter'

2
answers

Multilanguage site Codeigniter

I need to create a multilingual website in codeigniter. The texts must come from the database. My intention is that each table has both languages. For example. Table sobre would have id | titulo_br | titulo_en | conteudo_br | conteudo_e...
asked by 29.09.2016 / 15:16
2
answers

How to use special order_by of mysql in codeigniter

In mysql I can do this. SELECT * FROM 'Cidade' ORDER BY 'id'=1347 DESC But I can not do codeigniter, I'm trying like this: $this->db->order_by("id = 1347", "DESC") ->get("Cidades"); In this case his output look...
asked by 29.03.2016 / 15:45
1
answer

failed to work with base_url in Codeigniter 2.2.6

I'm trying to load bootstrap files into Codeigniter using base_url (). My autoload.php file has the following configuration $autoload['helper'] = array('url'); In my view I put inside the head the following code. <link rel="styles...
asked by 14.03.2016 / 20:09
1
answer

Upload and save image PHP / MYSQL

This is a form that contains fields like CPF, RG ... and a photo for profile. I can add normally, but I can not edit. If I change any data other than the photo, eg CPF, it works perfectly. But if I want to change only the photo, the upload...
asked by 29.04.2016 / 20:16
1
answer

Creating and using Libraries in Laravel 5.1

I'm new to Laravel 5.1 (I come from CodeIgniter) and I have libraries of my own that I'd like to implement in it. In CodeIgniter, we have the folder libraries where I can play all my libraries there and if in case I need the same just nee...
asked by 30.12.2015 / 12:05
1
answer

Problem using CODEIGNITER on Nginx server

My site was hosted on UOLHOST and worked perfectly with the following .htaccess RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRul...
asked by 26.12.2015 / 00:37
2
answers

Error uploading media Codeigniter

When attempting to upload any media, the following error always appears: O TIPO DE ARQUIVO NÃO É PERMITIDO . But yes, I put jpg , png , gif , I already changed only to pdf and error persists! Here are codes: CON...
asked by 19.11.2015 / 13:40
1
answer

.htaccess directing everything from the URL to the index.php

I picked up a panel for maintenance and developed a new panel in codeigniter . Once created, I created a folder on the server named adm and threw all the files there. The problem is that the root folder (before adm ) has a .htaccess...
asked by 23.11.2015 / 20:17
1
answer

Search Query from a Dynamic Form (Codeigniter)

I'm having a problem building a QUERY that comes from a dynamic form. I have a search form in which the fields for search are dynamic (can be text or checkbox), that is, whenever a new field is added it must be possible to search for that fie...
asked by 10.11.2015 / 12:47
1
answer

Persist search parameter in pagination codeigniter

Hello, I'm doing a search system for a store with codeigniter, the pagination is working, but when I change the page if I lose the search parameter, I would like to know how to persist the search so that pagination occurs without problems. Fol...
asked by 28.10.2015 / 12:13