Questions tagged as 'codeigniter'

1
answer

Passing parameters from a list to sub menu

I have a list of users that is formed from a query in the database. And the names are in <a> tag, which consequently when clicked will open a submenu, however I want to pass user data typed into this sub menu. I'm using CodeIgniter....
asked by 01.04.2015 / 22:06
1
answer

Check if a parameter passed by the url exists inside the View

I have this following code in my Controller : public function SetImageAndColor($client_id) { if(isset($_GET['color']) AND isset($_GET['image'])) { $dados['click2call'] [$client_id] ['image'] = $this->input->get('image'); $dados['cl...
asked by 24.03.2015 / 19:22
1
answer

Error Loading Model in CodeIgniter

Hello, I'm trying to load the model into my controller as follows: $this->load->model("gerente"); But simply everything after this code does not work, I've already tried loading by passing "Manager" instead of "manager" but th...
asked by 22.03.2015 / 14:13
2
answers

Problem with registration in codeigniter

I have a course site made with codeigniter and an error is occurring when I register for a specific address, in this case link instead of the data being included in the database, it returns the following error, for example: An Error Was En...
asked by 20.03.2015 / 23:58
1
answer

Error uploading image in CodeIgniter

I have a function in PHP to add a thumbnail image as a course cover on my website, regardless of whether the image has the right requirements, the message is returned:    Thumbnail image exceeds the allowed maximum size of 1MB. I'd like t...
asked by 12.03.2015 / 01:28
1
answer

Insert and Edit with CodIgniter

In reality it is not a question but rather if you can give me some direction to take on a subject. I took a project to fix and the developer used CodeIgniter, but the project is quite large and we have several files. The big problem is that...
asked by 13.02.2015 / 15:18
1
answer

How to retrieve records that have been updated?

How to keep a record of a record when it has update ? I have a form where it does update of data in MySQL. What I want to do is: When performing a update of a record, it keeps a history of the above. I'm using the framework Codeigni...
asked by 13.02.2015 / 12:57
1
answer

Two forms on one page

Well, I have a view with two form and both have action="current_url()" , that is, the two will execute the action on the same page, the problem is that regardless of the button I click to send the form it always executes the two generating...
asked by 08.04.2015 / 21:46
1
answer

Error deleting file with unlink

How do I remove a file with unlink? The file is in this folder /home/user/public_html/public/data/file.png I'm running the unlink from this file /home/user/public_html/admin/application/controllers/delete.php I am using codeigniter,...
asked by 01.01.2015 / 02:28
1
answer

How to insert the name of the files loaded in the database

$this->load->library('upload'); //Configure upload. $this->upload->initialize(array( "upload_path" => './public/uploads/album/', "allowed_types" => 'mp3', "max_size" => '2194304000',...
asked by 06.01.2015 / 16:55