Posts by sol25lua • 411 points
36 posts
-
1
votes0
answers127
viewsQ: How to go back to the previous page with the form data using codeigniter
Good afternoon using codeigniter how do I get back to the previous page without losing the form data? this data came from a controller and passed by parameters to a view, when I access another page…
-
0
votes1
answer139
viewsQ: How to pass the value of a variable through the form_open codeigniter function?
Good evening Using codeigniter how do I pass the value of a variable through the form_open() function? because here I have to inform the controller and the method that will be responsible for the…
-
-3
votes1
answer68
viewsQ: html attribute that when clicking on the text the checkbox option is selected
Good afternoon, I wonder if there is any attribute in HTML that the user click on the text of the option in checkbox, the field is selected, not needing to click well inside that small square. I…
-
1
votes2
answers181
viewsQ: How to assign to a variable the results of an array
I am receiving several times in a function, when calling the function in the Controller use the foreach and wanted these results(times) to be printed on the screen for the user to see, but using the…
-
1
votes2
answers197
viewsQ: How to receive an array of results in a variable
Good morning, I’m trying to carry out a very simple project using the Codeigniter framework, but I always had this question before even implementing a framework, I always beat myself up to receive…
-
0
votes1
answer56
viewsQ: Date in Codeigniter Framework
I’m trying to create a Date field in codeligniter for the user to inform Data, I created a helper file with the date code (actually I used a code that was helpful to another question on this site),…
-
0
votes1
answer155
viewsQ: How to keep form data after submitting using Codelgniter
I am beginner with the use of Codelgniter Framework, I have a doubt how to keep the data of my forms after submitting the page, I am creating a form with many fields to be filled, if the user leaves…
-
0
votes1
answer45
viewsA: Jquery function does not access variables from the form
I was able to get the variables as follows: var id_cat_animal = $('input#id_cat_animal').val(); var id_porte = $('input#id_porte').val();
-
0
votes1
answer45
viewsQ: Jquery function does not access variables from the form
I need to calculate the value of a service of a petshop project, where it is necessary to inform the data: id_porte (small, medium, large), id_categoria_animal (dog, cat), and what the service…
-
0
votes1
answer64
viewsQ: Trying to get Property of non-object error using codelgniter
I am trying to access in the view the value of a variable called $noticia that is in the controller, however appears the error Trying to get Property of non-object. Controller file: public function…
-
0
votes1
answer313
viewsQ: Modify carousel configuration in bootstrap 4
I’m using the model below to make a slide, model in which I took a previous question I asked and one person helped me gluing the path, but the slide is too big and I need to decrease the size or…
-
1
votes2
answers353
viewsQ: How to test site on screens of different sizes
I’m doing the creation of a site, but it’s still only on my machine on the localhost, how do I test on different screen sizes as for example on smartphones screens, Androids, SOS, but, firefox,…
-
1
votes1
answer672
viewsQ: Slide does not fill the entire screen with bootstrap
I’m trying to put a slide on my site, but when I index the Bootstrap 4 on the page, the slide does not get full screen (does not fill the screen), when not indexed the slide wheel straight fills the…
-
1
votes1
answer1148
viewsQ: Rows and columns in html
I’m not getting the columns to be on the same line, I’m using the code below, but the columns come out side by side, and I want it to be on the same line. <!DOCTYPE html> <html…
-
0
votes0
answers27
viewsQ: Installation Framework Foundation
I’m trying to install Foundation but I’m not getting it, I already installed GIT and Nodejs and when typing the command line at the prompt generates the instructions below, someone can give me a…
foundationasked sol25lua 411 -
1
votes2
answers63
viewsQ: Creating columns in Foundation
I’m taking an online course of the Foundation framework but I’m not able to make the creation of columns, just the lines, I tried in two ways: <div class="row"> <div class="small-1 medium-1…
-
0
votes1
answer110
viewsQ: session_destroy does not start new session
I am trying to use the code below so when the user clicks exit, it is redirected to the file below destroy the session, but after destroyed the session is not possible to login again, because the…
-
0
votes1
answer147
viewsQ: How to use the Location function in object orientation
I am trying to direct the user to the panel page, when he login on the home page, but when directing gives the error below, but if I use javascript with the same path it works. Using the Location:…
-
0
votes1
answer3183
viewsQ: Require_once is unable to access file
I’m not being able to include pages in my file controle_login.php, as it generates the following errors: Notice: Use of Undefined Constant ABSPATH - assumed 'ABSPATH' in C: xampp htdocs Modelo_mvc…
-
0
votes1
answer278
viewsQ: What is the addcslashes function for in php?
What is the addcslashes function for? I saw in the PHP manual but did not understand.
-
1
votes2
answers523
viewsQ: What is $_GET['path']?
I wonder what it means when someone uses it $_GET['path']? What would be the path? I thought the $_GET would only receive information from the URL. public function get_url_data () { // Verifica se o…
-
1
votes2
answers182
viewsQ: Can an object be instantiated?
I am reading a code and it appears with the following line $this->controlador = new HomeController(); $this->controlador = new $this->controlador( $this->parametros ) My question is as…
-
0
votes0
answers61
viewsQ: What is the function of the get_url_data() code
What is the function of get_url_data()? what does it do? I looked in php.net and found nothing, just about meta tag. public function __construct () { // Obtém os valores do controlador, ação e…
-
2
votes2
answers337
viewsQ: What is the Function of Error_reporting(0)
What is the function of the code: Error_reporting(0), I know it is to report an error, and between parentheses inform the level, but in the documentation of the PHP I haven’t found that level 0.…
-
1
votes1
answer2591
viewsQ: What is the ABSPATH method for?
What is the method for ABSPATH? I’m taking a course and the line of code came up that I don’t know what it means. define('UP_ABSPATH', ABSPATH . '/views/_uploads' );…
-
2
votes1
answer117
viewsQ: How to use the MVC development standard?
MVC is a software architecture model, it is divided into three layers and each one with its function, my doubt would be the following, it is the programmer who creates all this structure or it is…
-
0
votes3
answers1192
viewsQ: How to obtain the line number of a SELECT statement in PDO?
How do I know how many records I have returned from a SELECT statement? I tried using rowCount() but this did not work in my code, I just want to return to me the amount only this. $contador =…
-
0
votes1
answer98
viewsQ: How to access data from the form in object orientation
How do I receive information coming from POST form, so that these data enter a decision structure, Example: I have an abstract class with the function of entering the system, but in the form the…
-
2
votes3
answers927
viewsQ: How to declare an attribute in interface?
How can I declare some attributes in an interface? Example, I have the interface called animal, I want her to have some attributes that class mamifero will implement, but the attribute I declare in…
-
0
votes1
answer20
viewsQ: How to declare abstract methods in OOP interface
I would like to know how to create a method in the interface of a program in object orientation, where this method receives parameters... Example I am creating a remote control object where has the…
-
3
votes2
answers2759
viewsQ: How to make Regex accept only numbers?
How do I use the preg_match that only accept numbers? And that these numbers can also start with zero? function formatacao_cpf_func(){ $regular = "/^[0-9]*$/"; if(preg_match($regular,…
-
0
votes0
answers50
viewsQ: Date in PHP object orientation?
I’m starting to learn Object Orientation, I’d like to know how to use date with php, because in Java you can import the java util, but in the php I don’t know how to do it, I’ll show you my code:…
-
0
votes1
answer81
viewsQ: SELECT using php
Good evening how to assign a value to a variable where the value comes from select? however there are in the form varios select, I want to take the value of the selected select.
-
0
votes0
answers176
viewsQ: Update PHP UPDATE
Good evening I am trying to update a register of delivery of lunch boxes, I click on the button to update and update right in the bank, but when I will update again the same order for delivered, the…
-
1
votes2
answers70
viewsQ: can use variable php within the functions
My question is this, can I use a variable that has been defined outside a function within a function? example if I create a phone variable to receive the data via form and declare it, I can uitlizar…
-
0
votes2
answers94
viewsQ: When submitting form, GET data is lost
I’m trying to upload the data from a form to the database. I have data coming from POST and also from GET, but when clicking on the Submit button the value of the variable that receives data from…