Posts by Luiz • 473 points
44 posts
-
0
votes1
answer81
viewsQ: Laravel returns empty attributes in Edit method
I have another similar route working perfect, I do not know what I missed.. I thank anyone who can help me. Route: Route::get('/itensnfe/{itemnfe}/edit',…
-
1
votes3
answers94
viewsA: List with dynamic size
You are not using the main utility of Bootstrap which is the grid system. I believe this will suit you. You always need to have the classes col within the 'Row' class so that it is always readjusted…
-
1
votes2
answers38
viewsA: Codeigniter - Syntax error with select and Where
According to the documentation on the Codeigniter website, the "ideal" way to do this would be: $this->db->where('ativacao' , '1'); and when you’re going to use one where <> there you…
-
0
votes1
answer33
viewsQ: Error installing Magento on Windows 10
Forever in the 50%. Someone gives a light?? Module 'Magento_Directory': Installing data... [ERROR] PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'AD' for key…
-
0
votes1
answer119
viewsQ: Is it possible to swap already installed packages from "dependencies" to "devDependencies" just by switching lines?
Here’s an example of the file package.json, installed using the command npm install <nome> --save-dev: { "dependencies": {}, "devDependencies": { "bootstrap": "^4.1.3", "cross-env": "^5.2.0",…
-
1
votes2
answers719
viewsA: How to return ajax errors with jquery in Laravel 5.6
Here I leave it in case it suits some novice like me what I got: I adapted this code based on this tip: https://www.jesseqli.com/using-ajax-in-laravel-5-form-request-error-handling/…
-
0
votes2
answers719
viewsQ: How to return ajax errors with jquery in Laravel 5.6
From what I read in the documentation, when using ajax, the answer is always returned in json, but I cannot receive the information to print. The message returned on the console is:…
-
2
votes1
answer95
viewsQ: How to protect my account from unauthorized`pushs`?
I’m starting to use the git repository, through gitlab, but I’m using it on a company computer where I work. Assuming I leave the company and leave the setup ready, how can I block a new programmer…
-
0
votes1
answer88
viewsA: Playing Controller Info for View CI3
I never used that aside, but it seems to be a normal view after all.. well.. what I think what I understood was that you are not calling the model correctly, so see if it helps you in something…
-
0
votes2
answers864
viewsA: consult with Internet in codeigniter
First, you’re calling twice the way get, for me it’s wrong: $query = $this->db->get(); return $this->db->get('productos')->row(); You’re not using that first line of $query for…
-
1
votes2
answers721
viewsA: How to change the main URL in Codeigniter
In the application folder, you have another folder called config. There change the value of $config['base_url'] = 'http://www.pagina.com/que/voce_quiser';
-
0
votes1
answer362
viewsA: simultaneous access lock - Codeigniter
I’ve had this problem and found some tips, but no effect, as the Jquery $(window).unload(function(), but none of it had any effect. The best I’ve seen that you can do is: 1- you save in the database…
-
0
votes2
answers405
viewsQ: How to leave the footer with relative position and at least at the bottom of the page?
I am using in several pages the Sticky position of Html5 to give an effect in the menu of the site. But there are pages that the internal content is very small, does not occupy even 150px high and…
-
0
votes1
answer432
viewsQ: Can I connect a Cordova app directly to Mysql?
I want to make a system with local mysql server on a desktop, but without using PHP or ASP. Then android would make the direct connection. Is it possible? Thank you.
-
0
votes2
answers658
viewsA: Check return ajax, works only the first time
More detailed example of the problem, actually the code in the question is correct, the problem is that when reloading via ajax part of DOM, this new piece of code remains invisible to the jquery…
-
1
votes2
answers658
viewsQ: Check return ajax, works only the first time
Good morning friends, I have this code: $(document).ready(function(){ $('button').on('click',function(e){ e.preventDefault(); var codigo = $(this).attr('id'); $.ajax({ type: 'post', url: '<?=…
-
0
votes1
answer142
viewsA: How to use csrf class in codeigniter with onchange event?
Sorry for the delay, it’s true, after several searches, I found the answer. To "standardize" the work in any case, I saw that using ajax is easier, and also, da para usar o when and then of jquery…
-
0
votes1
answer142
viewsQ: How to use csrf class in codeigniter with onchange event?
I have the following situation: Form <?php $atributos = array('id'=>'cadloja','class'=>'form-inline','role'=>'form','data-toggle'=>'validator'); echo form_open('',$atributos); ?>…
-
2
votes1
answer554
views -
1
votes2
answers946
viewsA: Encryption with bcrypt + random salt
From what I saw, it is correct yes, but to improve. I recommend you first look at what you did in this link: http://blog.thiagobelem.net/criptografando-senhas-no-php-usando-bcrypt-blowfish and a…
-
1
votes2
answers226
viewsA: Jscript and CSS - Rotate by running the div instead of an image
Could also use css instead of jquery but there is no onclick: #conteudo > img:hover{ -ms-transform: rotate(7deg); /* IE 9 */ -webkit-transform: rotate(7deg); /* Chrome, Safari, Opera */…
-
1
votes1
answer90
viewsA: Mask a div with css
If you’re not gonna put anything on background in the menu, then some solutions I see are: body{ overflow-y: hidden; } #site{ /*esse site aqui é o id da sua div abaixo do topo*/ overflow-y: visible;…
-
0
votes2
answers1047
viewsA: Problem with Hover in p button/ change background color
The + just get the brothers in front of that element and not the previous ones. To do what you want easily, use jQuery like this: <style> .muda-fundo{ background-color: #000099 !important; }…
-
1
votes2
answers409
viewsA: SELECT AND UPDATE - Undefined index when submitting form
The same way you did: <input type="text" name="país" value="<?php echo $countryName; ?>"> has to be made a: <input type="hidden" name="cod_pais" value="<?= $_GET['edit'];…
-
0
votes2
answers153
viewsA: Javascript message not appearing in input
Updating the answer here, if you want to use Cpf mask, use this example, along with my tip below and when typing, you will already do everything automatically: Masks with jQuery: Phone, CPF and CNPJ…
-
1
votes2
answers940
viewsA: Undefined error Property: Products::$db in Codegniter
Updates your question with your code autoload.php and database.php also, but error of properties, is usually wrong configuration usually in the php.ini. You can try using connection PDO instead of…
-
0
votes2
answers940
viewsA: Undefined error Property: Products::$db in Codegniter
You are trying to consult the bank without having uploaded the connection library. If you’re just going to connect on time, write this on your model: $this->load->database(); //fará a conexão…
-
0
votes2
answers369
viewsA: Should I use form or div?
In my opinion, form should be used whenever you want to use tags input in the code, at least to leave the code "clear-cut" for other possible programmers. I see it as a story you write without a…
-
1
votes1
answer141
viewsA: Postgresql connection to Codeigniter error?
You have to activate the postgres dll in the xampp php.ini file, uncomment that line by removing the ;, otherwise no command will work. ;extension=php_pgsql.dll…
-
1
votes1
answer342
viewsA: How to hide the scrollbar when taking the mouse and making it visible when placing the mouse?
Create a css file with a class named after you side-nav, or if it is a class, this code is already correct. .side-nav{ overflow-y: hidden; } .side-nav:hover{ overflow-y: auto; }…
-
2
votes1
answer107
viewsA: Is there still reason to use var in Javascript?
Well, doing a brief search on the internet, including on Soen, there is no stated advantage. Until then, let and const offer in a certain way a certain 'protection, by following rules' to more than…
-
2
votes1
answer588
viewsA: How to make a Line automatically increase the height of javascript css jquery
Works best with Jquery: <div> <hr id="linha" class="borda-p"> </div> ou dessa forma <div> <hr id="linha2" class="borda-p-ja-vertical"> </div> <style>…
-
0
votes3
answers311
viewsA: How to simulate click on another HTML element?
Suggestion, the image should be darkened even, or it could be lightened? A very easy option is to use the opacity of css, example: <img src='suaimagem.jpg' class='altera-opacidade' > there in…
-
0
votes1
answer76
viewsA: Problem with width of components with form-inline bootstrap
With the form-inline you can use the attribute size, to determine the width of its inputs, but bootstrap repositions on the screen due to responsiveness. If you use the form-horizontal, all fields…
-
0
votes2
answers1192
viewsA: Display Mysql date in date field
What you need to use is this: <?= date_format(new DateTime($dtnascimento),'d/m/Y') ?> and it only works with date type if I’m not mistaken, if you’re datetime in the database or in your html,…
-
0
votes1
answer56
viewsA: PHP and mysqli . How to apply a filter without directly accessing the super global $_POST
Just as well as right: $email = filter_input(INPUT_POST,'email',FILTER_SANITIZE_EMAIL);
-
1
votes1
answer87
viewsA: Send and Remove from database with Jquery
Well, the business is to use ajax even, with jquery it gets simple, but your code ta bad to understand put an id in your form, <form id='f1'> //php form file. 2º then separates into two files,…
-
1
votes1
answer87
viewsA: problem when creating a triangle in after da div with css
You can’t use position Absolute, or you lose responsiveness. This width 100%, does not work with position Absolute. Daria para tentar usar media queries ou teria de mudar para relative e ajustar na…
-
0
votes3
answers842
viewsA: Disable and maintain click
You have to use the css together that right there. Hover is on account of css: create a.css style file for example, or put in a < style tag > .imagemModelo:hover{ 'width': '372px';…
-
2
votes1
answer623
viewsA: Bootstrap Collapse animation does not work
I tested your code here and it worked perfectly. You probably made some changes to css code with the property !Important and is affecting the operation of your bootstrap. I suggest commenting on all…
-
0
votes4
answers1350
viewsA: Check if id_user is logged in (Session - codeigniter)
Wagner, I don’t think it can be done, I tried to do it too. What can be done and works more or less cool, is to create a table in the database that makes a mark when logging in, because the sessions…
-
0
votes2
answers1733
viewsA: Problem with $_SESSION on login system, $_SESSION closes alone
If I’m not mistaken, on every page that checks the session, it has to be used one session_start() again, otherwise it’s like it’s closed. To confirm my tip, from a var_dump($_SESSION) before and…
-
2
votes1
answer87
viewsA: Table with 2 td with select inputs showing return only in the first row
I didn’t test it here, but I believe something like this will work Whenever you have doubts about how the array of a var_dump($sua_var) is coming; Since you’re using foreach, it must be kind of like…
-
0
votes2
answers785
viewsA: Confirmation Modal with codeigniter
Oops, good night, updated my answer a few times, see if it helps you... FIRST OF ALL, HERE IN $.post(base_url + .. bla bla bla shouldn’t be $.post(base_url() + bla bla bla ?? faltou o () no…