Questions tagged as 'codeigniter-3'

1
answer

CodeIgniter - base_url problem

Recently I started developing an application with the CodeIgniter framework and I ran into the following problem. The method base_url() returns something that is not the default path of my application and this has brought me certain probl...
asked by 28.05.2016 / 23:21
2
answers

Add an "id" to an element created in PHP

I'm starting with PHP and I have a doubt, maybe a little basic, but the truth is that I can not solve it. What I'm trying to do is create something like a traffic light where the images are changed every so often, depending on the color they hav...
asked by 06.11.2016 / 02:05
1
answer

Undefined property and call to a member function on null in codeigniter

I'm doing a project with php and codeigniter but I get an error my codes are as follows: database.php       $active_group = 'default'; $query_builder = TRUE; $db['default'] = array( 'dsn' => '', 'hostname' => 'localho...
asked by 04.10.2016 / 23:46
1
answer

Query with WHERE statement in CodeIgniter does not work

I am trying to make simple queries to a MySQL database from CodeIgniter. For that I have a view called "Menu", here I will fill it with 3 categories: Meals (2), Drinks (1) and Desserts (3). In the database I have 2 tables, producto and...
asked by 22.03.2016 / 20:07
2
answers

Integrate function input PHP in HTML input

Hi, I'm trying to integrate a PHP function into an HTML input, because if I remove the HTML input and leave only the PHP function, by not taking the styles the field is reduced in width by half, as you can see in the image. * PHP + HTML <...
asked by 20.04.2017 / 09:19
1
answer

Codeigniter 3 MY_Controller not found

The error is as follows, by extending the Register class of the MY_Controller to create the user login, it throws me the following error. Any ideas? He says he has not found the class, but even adding it does not find it. Driver for...
asked by 27.04.2017 / 12:26
1
answer

Change date format Codeigniter 3 query builder

$this->db->select("DATE_FORMAT(cliente.fecha_reserva, '%M %e, %Y') as formatted_date", FALSE); This code gives me the following format: June 14, 2017 How do I get the format dd / mm / yyyy? Thanks     
asked by 20.06.2017 / 16:29
1
answer

Validate form in codeigniter

I am trying to validate a form in codeigniter and I have not been able to achieve it. I would like to validate the variables that arrive from the input of the form mailcontacto.php that is in view and that in that form show me the validation err...
asked by 04.05.2016 / 17:12
1
answer

Does not recognize CSS and JS styles in CI3

This is the structure of my project in CodeIgniter3 -codeigniter3 --application --assets ---bootstrap ---build ---dist ---plugins --system but for some reason it does not execute CSS or JS <!DOCTYPE html> <html> <head>...
asked by 18.08.2017 / 15:23
1
answer

update select field using ajax

I'm starting to use codeigniter, javascript with the jquery library and I have the following problem, I have a form and in the select field where I load the cities I send the data from my controller in json, from the sgt form. function L...
asked by 12.05.2017 / 21:16