Questions tagged as 'codeigniter'

1
answer

Error uploading videos in CodeIgniter

I am not able to upload videos in CodeIgniter, the function works with pdf , but not with other extensions. The return I have is file type not allowed . Controller: public function add(){ $dados['tutorial']= $this->uploadArqui...
asked by 21.03.2014 / 14:07
2
answers

Check if userid is logged in (session - codeigniter)

I'm building a login system and I'm doing some validation on it. All functional except, the verification if user is already logged in. I'm using the method below, but it's not 100% functional. What I want to do is check if the user trying to...
asked by 06.09.2017 / 04:01
1
answer

Error with pagination and codeigniter

Clicking on the page link returns a NOT FOUND. <div class="scroll"> <table class="table table-hover" id="myTable"> <thead> <tr> <th><b>Nome</b></th> <th...
asked by 20.08.2017 / 22:43
0
answers

CodeIgniter 2.2 and Doctrine 2

I have installed CI2, Doctrine 2 and HMVC. I followed the steps in this site . by removing Smarty that I did not find necessary. My folders are organized as follows: ->application ->cache ->doctrine ->generated_ent...
asked by 22.05.2015 / 16:29
1
answer

Error executing fields checklist

I have the following code: $funcionario_materiais = array(); foreach($_POST AS $key=>$val){ $tmp = explode("_",$key); if($tmp[0]=="materiais"){ $funcionario_materiais[$tmp[1]]=$val; unset($_POST[$key]); } } $fun...
asked by 14.06.2015 / 06:20
1
answer

Codeigniter images do not download [closed]

I'm new using CI, and I'm having problems with it because it does not load the images in localhost environment (using XAMPP) . I have already inspected and verified if the path is all ok, and this is in fact, but nothing of the image to upload....
asked by 09.09.2016 / 16:54
2
answers

Customize an Alert [duplicate]

I have a code that when clicking the button it opens a new tab. Depending on the condition of the report it shows a Alert that by clicking Ok it closes the tab that was opened. Is there any way I can customize this alert, to be more...
asked by 29.10.2015 / 12:39
4
answers

Character limit

I need to limit characters in a text, and should stick with (...). The title goes out of the layout. if($related){ echo ' <div class="row"> <div class="medium-12 columns"> <div class="ap-ads-related"&...
asked by 01.11.2016 / 09:48
4
answers

How to generate an array with the list of uploaded files?

Type I want to generate an array like this. array('nome1', 'nome2', 'nome3',) What I have is the string $ name, how do I generate the above array? would be something like array($nome) ?? My code if (!empty($_FILES['files'])) {...
asked by 07.01.2015 / 19:55
1
answer

perform sum of values codeiginiter

I need to add some values to the end of a table as shown below: HerearethecodesI'musing:Controller:functionindex(){$this->template->set('title','ListadeOrçamentos');$config=array("base_url" => base_url('orcamentos/p'), "per...
asked by 05.06.2017 / 15:15