Questions tagged as 'codeigniter'

1
answer

How to get a certain php variable that is inside the view in the controller [closed]

Good morning I have a page in php that is inside the view folder in codeigniter, there I have a foreach that I am listing the alphabet and I wanted to get this variable ($ letter) inside the controller. Can someone help me?    This and my page w...
asked by 01.11.2015 / 02:32
0
answers

NetworkError: 500 Internal Server Error

I have a code that forms the user's profile screen. On the side of the name it has the edit option, which when clicked opens an inline edit ( form-x-editable.html ). Even in that part it is working normally, but clicking to save it gives the err...
asked by 25.09.2015 / 14:36
2
answers

lighbox codeigniter

I've instantiated everything right in the lighbox files, but for some reason it opens a new open showing the img, rather than showing the lightbox box. <html> <head> <meta charset="utf-8"> <title>Galeria de imag...
asked by 25.09.2015 / 21:09
1
answer

Popular second select after selecting the first select [closed]

Good evening! I want to populate the second select with the data depending on the first select, I have the following code View $(document).ready(function(){ $("#relatorio").change(function(){ $.ajax({ type: "POST",...
asked by 24.09.2015 / 03:57
1
answer

Error when changing location of codeigniter views folder!

Following the installation steps of the official CI guide, I moved the folder views out of the folder application - now inside public_html . I get ERROR message on the homepage    Your views folder path does not appear to...
asked by 17.08.2015 / 15:19
1
answer

Recover ID passed by the DIV on the next page

I have the following CSS class along with foreach (): <section id="cidades"> <div class="listacidade">ESCOLHA UMA OPÇÃO</div> <ul id="ListandoCidades"> <? foreach($cidades as $valor){ ?>...
asked by 04.08.2015 / 00:55
1
answer

Passing variable by $ _POST

I have the following foreach() <? foreach($cidades as $valor){ ?> <div class="listacidade"><a href="<? echo base_url("cidade/".$valor->idParametro."-".url_title($valor->parametro)); ?>"><img src=...
asked by 03.08.2015 / 23:10
0
answers

Different Date Format

Sirs, I have the following code: $funcionario_blocodcon_novo = array(); for($i=0;$i<count($funcionario_blocodcon['localtrabalho']);$i++){ foreach($funcionario_blocodcon as $key=>$val){...
asked by 02.07.2015 / 15:27
1
answer

thumbnail codeigniter

I've mounted this class that does a multiupload of images, creates the folders according to id_an, and then generates the thumbs of these images as% wheel. The problem is that thumbs are not being generated. My thumb class: function _...
asked by 18.09.2015 / 06:36
1
answer

How to transform an integer into decimal?

I need a function to do the following, I get the number for example 15, and I need to turn it into a 1.0 decimal, rounding the 5 to 0. I tried to use number_format(15, 1, '.', '') , but it returns me 15.0 How can I do this?     
asked by 22.06.2015 / 16:03