Questions tagged as 'codeigniter'

1
answer

How to do an update in the database on several tables related to codeigniter

I'm trying to do an update with codeigniter on two related tables, but I'm not getting it. I'm using the following code. $this->db->set('p.page', $dados['page']); $this->db->set('c.title_map', $dados['title_map']); $...
asked by 17.07.2015 / 00:13
1
answer

Test connection to the database

I have an application that has a central database, in it is made the registration of several databases dynamically to use in another part of the application. I want to know how to test if there is a connection to this database. I currently ha...
asked by 18.06.2015 / 21:50
1
answer

Extend new CI class

I have the following code: class MY_Controller extends CI_Controller { function __construct() { parent::__construct(); } } I need to build a class where I do the CI_Controller extension, so I do not have to "repeat" functi...
asked by 20.07.2015 / 21:45
1
answer

How to put a string at the end of all URLs via PHP (CodeIgniter)

I'm using the CodeIgniter framework to develop a system. But in the company where they are using, the pages are not updating right, it's like the cache gives the whole page and only when I give an F5 it updates. For example, there is a screen...
asked by 23.07.2015 / 18:15
1
answer

Does anyone know how to connect oracle in codeigniter? [closed]

I can not connect to codeigniter in oracle. Displays this error: A PHP Error was encountered Severity: Notice Message: Use of undefined constant OCI_COMMIT_ON_SUCCESS - assumed 'OCI_COMMIT_ON_SUCCESS' Filename: database/DB.php Line N...
asked by 20.02.2014 / 00:39
1
answer

Refresh page in time interval

I need to set the goal: meta http-equiv="refresh" content="30" In the meantime I'm using CodeIgniter and I can not do it. I tried: $this->output->set_header('refresh:30;url=minhapagina.php'); Any suggestions?     
asked by 09.04.2014 / 18:23
1
answer

Is it possible to assign a value other than the value acquired from an OPTION in a SELECT when submitting the form to PHP?

Well, I think the title of this question has been confusing, but I'll try to get a better understanding of my problem. I'm developing a project with the CodeIgniter framework (I'm a beginner) where I have a php / html page with a form that co...
asked by 17.11.2018 / 19:19
2
answers

Unserialize data in CodeIgniter?

Seeing that I have the following method: Controller public function get_objeto($permissao_id) { if ($permissao_id == 0) { $permissao_id = $permissao_id; $dados = $this->permissao->get($permissao_id...
asked by 29.03.2018 / 22:03
2
answers

What is the best way to call files?

Well, I use codeigniter (but not specifically in it, anyone who is MVC). I wanted to know the best way to call my files, css, js, fonts, etc. I think the best way is to call the controller method, but let's assume that for each page (method) I w...
asked by 06.03.2017 / 22:25
2
answers

Get anchor url with PHP

I need to get the data of an anchor in the url, follow link: link I need this ID 8 that is in the anchor, the problem is that I can not use Javascript to get it. I need to use only PHP. I'm using Codeigniter, however, if I u...
asked by 28.06.2016 / 22:10