Questions tagged as 'codeigniter'

1
answer

Alternative to the Codigniter table component

I'm developing the following screen using Codeigniter: Mydifficultyistoleavethecodeinanelegantway,withouttheuseofthetablelibrary(IbelieveitisnotthemostsuitableforwhatIamdoing)andwithoutgreatmanipulationsofdataintheview,Iwouldlikesomesuggesti...
asked by 02.05.2018 / 16:54
1
answer

Is it possible to hide URL parameters with PHP? [duplicate]

I have a project in php with codeigniter that gets dominio.com/?id=212454&survey=complete and after I save this data in a variable, I wanted to remove it from the url, getting only dominio.com My current controller looks l...
asked by 12.04.2018 / 18:58
1
answer

How to get an image of the view (html) and send it to a controller (php) using codeigniter?

I need to pass an image of my view to the controller , just the string with the url or the entire html element. I am using angular and codeigniter and the mpdf is not letting me generate through AJAX request, I'm throwing the parameters...
asked by 27.03.2018 / 18:51
2
answers

How to change the main URL in Codeigniter

I need to change the URL of a site in Codigniter, in the root of the site: "public_html" has the "application" folder of the Framework and has the folder: "site_novo" that is where the current site is. When you open the domain of the site it d...
asked by 17.04.2018 / 15:37
1
answer

Several functions that will do the same thing

I have the following function function about_about(){ $this->render(); } However, I have another 100 pages, which will only have render() , how can I make a function just to save code and time? Where I define the pages that wil...
asked by 08.06.2016 / 02:57
2
answers

Generate multiple records in MySQL

In MySQL I have two tables: CLIENTS | codigo-cliente | nome | grupo | valor | |----------------|------|-------|-------| FINANCIAL | codigo-cliente | codigo-boleto | grupo | valor | |----------------|---------------|-------|-------|...
asked by 02.03.2018 / 04:16
2
answers

Codeigniter friendly URL with emphasis on SEO

Friends, I'm developing a blog on CI. And thinking about the SEO of the blog, I would like the URL rather than be presented this way:    link I would like it to appear with the title of the post.    link My Route looks like thi...
asked by 12.02.2018 / 00:54
1
answer

DataTables JQuery does not render column button in Codeigniter

I'm trying to put action buttons in my table through the datatTable plugin. My Javascript code $(document).ready(function(){ var table = $('#dataTable').DataTable( { "processing": true, "serverSide": true, "a...
asked by 07.02.2018 / 15:20
1
answer

Condition IF codeigniter - Check if data exists in the database (model)

I have the following method to get data in codeigniter. // Obter Fase public function obter_fase($id) { $this->db->from($this->tbl_empresa_fase); $this->db->select("tbl_empresa_fase.*, IF(tbl_empresa_fase.crud = 'C', 'R'...
asked by 14.12.2017 / 19:56
1
answer

How do I automatically delete flash_data message after it is displayed in codeigniter

elseif($aulas_professor[0]['controle_aula'] == 0){ $desativado = $this->session->set_flashdata('desativado', "O Professor selecionado Não está ativado ,ative-o e tente novamente!"); return $this->calendario($d...
asked by 24.11.2017 / 17:42