Questions tagged as 'codeigniter'

0
answers

Codeigniter - select by id and print only the values of this id

Well, I'm trying to make a page that shows the user's data that is logged in. So I have to make a select to the id of the user in question. Controller: function perfil() { $this->load->model('perfil_model'); $data['list'] = $this...
asked by 07.06.2016 / 12:00
2
answers

Pass value from a select to GET parameter of a link

Hello, I needed to pass the value from one to a parameter of a link, this to be sent via GET. I'm using the codeigniter framework. Here's the code snippet I have: <div class="col-xs-12 col-md-3 form-num-sala"> <div class="row"&...
asked by 05.05.2016 / 12:24
1
answer

Why does CodeIgniter understand a route as a directory and break the links?

I have created a system in CI that uses the template schema, with header, navmenu, template (component) and footer. For stylization I use Foundation. The problem is this: when accessing a simple route, such as home, I have no errors, but w...
asked by 18.06.2016 / 04:02
1
answer

Doubt codeigniter

Opa Galera! I'm starting with php and codeigniter, I have a question: I have two controllers, each with crud functions, but I would need create (form) views to be loaded on a 3rd page together, how do I do this? (As if they were a single form, b...
asked by 20.04.2016 / 00:58
0
answers

Sending email to gmail (Codeigniter), appears as spammer

I have a problem sending emails to GMail via CodeIgniter. All the emails I send do not appear in the images and are left with a message from GMail saying it could be a spammer . Is there any way to overcome this? Here is a print of how the e...
asked by 30.05.2016 / 13:11
0
answers

Insert an array with codeIgniter and ajax

Hello I'm trying to insert an array, but in this case, you can insert multiple lines in db. How do I pass the pro codeIgniter data: var productsData = []; $(".productRow").each(function(i){ var pData = {...
asked by 18.04.2016 / 01:50
2
answers

Find more data after finding nothing related to ID

I am doing a 4x4 array system for a client and am having a difficulty in the following question: The system has to check if the indicated to be checked already has 4 people in the network, if there is then look at the next indicated next, until...
asked by 09.04.2016 / 08:18
1
answer

Friendly URL Code igniter does not work

My htaccess inside the application folder looks like this: RewriteEngine on RewriteCond $1 !^(index.php|images|robots.txt) RewriteRule ^(.*)$ /index.php/$1 [L] Am I putting in the right folder? Code correct? Where am I going wrong? I awa...
asked by 14.04.2016 / 19:46
1
answer

Return Date data according to the month

I have developed the following function: public function get_agendas() { $this->db->select("*, EXTRACT(MONTH FROM data) as mes_referencia, count(id) as total_registros"); $this->db->where("data >=", date("Y-m-d")); $...
asked by 04.04.2016 / 02:59
1
answer

Execute the function once get the return and use in a codeIgniter loop

Hello I'm having trouble retrieving the return of a model and using it in a foreach, without the function being executed again several times ... How can I do to get the return and use this same return several times? Code for illustratio...
asked by 18.04.2016 / 21:46