Questions tagged as 'codeigniter'

1
answer

How to save in MySql all data inserted in a form-control

Well, how can I make a script to save all data just after insertion. In case the view would be this. Afterenteringandtypingenterthedatawouldalreadybesavedinthebd.Whatisthebestwaytodothis?Hereistheexcerptfrommyform:<!--Domainstart--><...
asked by 08.05.2018 / 03:06
1
answer

CodeIgniter 3 - Structure of subdirectories - Routes

I created a project in CI and I'm going through the following problem: I split my controllers into two folders: application/controllers/painel/ and application/controllers/site/ In the subdirectory panel there is the home controller an...
asked by 19.01.2017 / 11:25
1
answer

Destroy (Logout) Session_ID Codeigniter

Through the code below I retrieve all users logged into the system and display them in a table. <?php $dados = array( 'session_id', 'ip_address', 'last_activity', 'user_data' )...
asked by 24.01.2017 / 19:30
2
answers

PHP Logout with CodeIgniter

I'm having a problem logging out my system until it is logging out correctly and destroying the sessions, but if the user clicks the back button of the browser it returns to the previous page of the system where all data is displayed again . The...
asked by 03.02.2016 / 12:35
1
answer

Select (combobox) Dynamic

I need to use a dynamic select on my page, in which when I select the state (UF), it shows me in the next select only the cities of this UF. In the same way the neighborhoods. All of this information is already in the database....
asked by 16.02.2017 / 20:27
1
answer

Can we use {variable} in CodeIgniter Views?

I know that we can use Views.html file in CodeIgniter, now I would like to know if we can use {variavel} tags directly like in Smarty. Example: <body> <h1>{msg}</h1> </body> Are there any native replacement fun...
asked by 22.12.2015 / 15:21
1
answer

Problem creating SLUG in codeIgniter

Look, I'm developing the portal to my music label, and I'm having a pretty chatinho problem. I'm recording the news, album names, artist names and so on. When I register in the DB I play in a field the original artist name and in the other...
asked by 23.05.2015 / 08:06
2
answers

Dynamically execute a class model method from an ajax request for the controller

I'm creating a feature on my system for reloading components dynamically so that queries are executed that are allocated to model-layer classes through AJAX requests. However, as I use the MVC standard from the CodeIgniter framework, every reque...
asked by 05.01.2015 / 13:15
1
answer

Multiple databases with multiple applications

I made an application with CodeIgniter that uses only one database. However, I was asked to create multiple copies of this application which will also access several different databases. That is, I will have dozens of applications and dozens o...
asked by 04.12.2014 / 02:26
1
answer

CodeIgniter 3 - HMVC - Problem with routes, Not Found or Failed to Load Session.php

My scenario is as follows: I'm using CodeIgniter 3 with HMVC, while doing only local development, I had no problems with XAMPP with Windows, I went up to my test server which is an Ubuntu Server and then started the problems: The routes st...
asked by 16.05.2016 / 15:25