Questions tagged as 'codeigniter'

1
answer

How do I have expiration time on the recovery link?

I've done a function in the codeigniter for password recovery and everything is working, only I wanted it to expire the link has a x time / day. What is the logic to use in this situation?     
asked by 02.09.2016 / 22:01
1
answer

How does the controller know it was for it without passing the parameter in the 'echo open_form ()'?

I have a code here that I am studying as it does. See this view insira o código aqui<div class="animate form login_form"> <section class="login_content"> <?php echo form_open('', 'id="form" name="form"'); ?> <h1>L...
asked by 08.09.2016 / 19:18
2
answers

Update balance with revenue and expense

I have an application, where there is an option to register an ACCOUNT with initial balance equal to zero and two options to register REVENUE and EXPENSES. When registering a REVENUE, the account balance updates according to the value recorde...
asked by 14.09.2016 / 16:22
1
answer

Calling an Array of a Public Function in Codeigniter View

I have this public function in Controller : public function faturar() { $this->load->library('form_validation'); $this->data['custom_error'] = ''; if ($this->form_validation->run('receita') == false) {...
asked by 13.09.2016 / 21:56
1
answer

Problems with friendly URL in codeigniter

I have the following problem. I'm working with a system in CodeIgniter and need to remove the index.php from the url. My .htaccess is as below: RewriteEngine on RewriteCond $1 !^(index\.php|resources|assets|robots\.txt) RewriteCond %{REQ...
asked by 23.11.2016 / 18:44
1
answer

Find data from 2 tables - PHP + CodeIgniter.

Hello, I'm starting my studies in codeIgniter and I came across following. I have an employer table and another one of vacancies, the vacancy has id of the employer. I would like to display the data from the 2 tables. For example: I type some...
asked by 20.08.2016 / 02:37
1
answer

Problem copying an html block when you click a button

I was able to make that when I click the add more fields button, the form is replicated. But the create button started to do the same thing as the add + fields button and not its function of inserting the data in the database. Could you help me?...
asked by 01.05.2016 / 21:14
1
answer

Print variables from two foreach in a table in different columns - codeigniter

I'm trying to print a table that accesses the database and inserts the different values of each array in each column. The problem is not printing the values correctly. Controller: private function mostrar_resultados() { //vai buscar o...
asked by 21.05.2016 / 18:48
2
answers

Creation of a website and a backend with PHP frameworks [closed]

I'm creating a website with a back-end system. I have always done this process using only a framework like Laravel or Codeigniter, but talking to some more experienced people on this subject, they recommended using Codeigniter or Laravel only...
asked by 22.03.2016 / 19:08
2
answers

Use the id for an insert without auto increment

In MYSQL I have a table of subscribers where the primary key is the subscription number which is a column that does not have auto-increment, I can not change that. I made, in Codeigniter, a method that takes the next id for insertion like...
asked by 09.03.2016 / 18:30