Posts by Saymon • 517 points
37 posts
-
0
votes1
answer28
viewsA: Error while listing data in Angularjs
The error message is clear, you have duplicate keys in the array, always good to set the track by no ng-repeat in the example you placed would: <div id="inputGrupo"> <select…
-
0
votes1
answer23
viewsA: Angularjs + Requirejs + Ngnestable
Hello after much turning around I found a solution: shim: { 'angular': { deps: ['jquery', 'bootstrap'], exports: 'angular' }, {...}
-
0
votes1
answer23
viewsQ: Angularjs + Requirejs + Ngnestable
Talk guys, all right? So I’m working with Requirejs along with Angularjs, today I needed to work with an Ngnestable lib kamilkp/ng-nestable But when I try to load the directive into my app as…
-
0
votes1
answer27
viewsA: 404 modal - Error loading template in modalHtml
The error may be in the URL that Angularjs is looking for, check it as follows Copy the URL you are trying to request, if it gives 404 very likely that the error is on templateUrl:…
-
3
votes2
answers202
viewsQ: Ngshow two parameters - Angularjs
Hello all right? I hope so! I’m still kinda Noob on the angular and today I came across a doubt, I need to spend two Xpression in the ng-show of Angularjs, I need the same do the show or Hide and…
-
0
votes2
answers163
viewsA: Include files in the codeigniter view
Good after so much searching in gringos forums I found a suitable solution, inside the folder application, the file .htaccess is in charge of blocking all direct requests to the files, this practice…
-
0
votes2
answers163
viewsQ: Include files in the codeigniter view
Hello, I’m trying to call a js/css file that is inside application/views/app.js, but I’m trying to include it within a view that opposes in the same folder application/views/login.php but a 403…
-
1
votes1
answer63
viewsA: Why adding an ng-click to the html body does not work?
You need to do something like: <div ng-show="d.box" class="box-red"> <img src="images/boxred.jpeg"> </div> <div> <i class="button" ng-click="toggleFunc()"></i>…
-
0
votes1
answer68
viewsA: URL with fixed and variable parameter
After much research I found a solution: RewriteRule ^representantes?(.*)$ representantes.php?i_page=3&uf=$1 [QSA,L] this rule sends the fixed parameter and the UF, so I can redeem the values by…
-
1
votes1
answer68
viewsQ: URL with fixed and variable parameter
Hello, I’m having trouble getting my htaccess file right, and I have a fixed parameter that I pass manually and one that depends on the user when I click and change Uf, follow the example…
-
-2
votes1
answer111
viewsQ: User friendly URL on specific page
I am with a customer project in production (Locaweb then n has Cpanel :|) and have a news page and need to leave the same with friendly URL, the page php news. has the following code: How do I leave…
-
-1
votes1
answer19
viewsA: Variable with null value when calling model method
Guy tries to arrow an initial value to the variable class Movimento_model extends CI_Model { private $cnpj; $this->cnpj = 0; public function setCnpj($cnpj) { $this->cnpj =…
-
1
votes2
answers112
viewsA: How to pass post variables, save them until the last step and show all values
Use sessions, store each step in an array with the data and place in the separate session each step by a main key, example: $array = array( 'etapa 1' => array(), 'etapa 2' => array(), 'etapa…
-
1
votes1
answer83
viewsA: Where in datatables with codeigniter
check if the data of the Session is arriving correctly to the model, of an echo in the session inside the model if the data return certain believe that its problem is in concatenation, look for…
-
2
votes2
answers125
viewsQ: Sort two-dimensional array by date index (timestamp)
I got the following array that contains file information from a folder: Array ( [name] => Apresenta__o1.ppt [server_path] => C:\wamp\www\portais\arquivos\alunos\4_45258\files\Apresenta__o1.ppt…
-
1
votes2
answers40
views -
1
votes2
answers40
views -
2
votes3
answers1230
viewsQ: Return ajax data with php
I am creating a modal in ajax where it will return the id and lists the information in modal the problem is that php returns the "full page" to ajax and gives me no error in the console, I have…
-
0
votes1
answer410
viewsQ: Identify selected checkbox
Good guys I have a page (view) that makes a select of the bank and returns me the registered images for the user select a limit of photos determined by the administrator most wanted to count and…
-
0
votes1
answer910
viewsQ: Limit jQuery checkbox
I am creating a system where I list images of the bank and below each image has a checkbox, all this within a for to take the images of the bank, wanted a function to be able to limit the amount of…
-
1
votes1
answer839
viewsQ: Validation in multiple input file with JS
Guys I have a JS code for validation of the form attachments and I’m trying to call the function once for all fields with the same class="" the problem is that it works only with the first view the…
-
4
votes3
answers1170
viewsA: How to format title to url format?
There is, use it strtolowerand url_title. strtolower : Returns string with all characters converted to lowercase. url_title : Takes a string as input and creates a friendly URL string. Example :…
-
3
votes4
answers3380
viewsQ: change class of the clicked element
so guys I got a list: <ul class="nav nav-tabs" id="myTab"> <li class="active"><a href="#novas"><span class="badge badge-info"><?php echo $qtd_novas ?></span>…
-
2
votes1
answer1388
viewsA: Two forms on one page
I was able to solve as follows, I created an Hidden field in each form with the same name and different value for the identification in the controller <input type="hidden" name="acao_form"…
-
1
votes1
answer1388
viewsQ: Two forms on one page
Good guys I have a view with two forms and both possess action="current_url()", i.e., the two will perform the action on the same page, the problem is that regardless of the button I click to send…
-
0
votes3
answers86
viewsA: Using variables in the Model
if your Return is returning the values of the function you can use it within the view and give a print_r to see which values are returned within the view, otherwise create a variable to store the…
-
0
votes3
answers1624
views -
1
votes1
answer92
viewsA: Join Arrays with php
Well I managed to solve as follows, at the time it returns the array with the values of the bank I have something like [0] => Array ( [i_chamada] => 1 [i_interacao] => 19 [i_tecnico] =>…
-
0
votes1
answer92
viewsQ: Join Arrays with php
good guys to making a system and need to return session and database values most wanted it within a single array, using the function array_unshift() he returns me the following Array ( [0] =>…
-
1
votes1
answer513
viewsQ: php does not recognize the file field
So guys I’m working on a support system where has a form for the user to send the message where he selects the area, type the title the message and also a to send files if necessary the problem is…
-
1
votes2
answers1804
viewsA: Destroy sessions in PHP
create a file with session_destroy(); and use as logoff, it is already enough to break all php sessions
-
0
votes3
answers877
viewsA: Doubt in Insert, update and delete with Codeigniter Framework?
I believe that there is no way, you will have to do both Inserts, it is even easier using the functions passed by Andrew Maxwell and GWER
-
1
votes1
answer764
viewsA: How to translate codeigniter error messages?
download the translation on github with. plays within app\language and changes the file app\config\config.php, look for the line $config['language'] = 'nome_da_pasta'; and change the nome_da_pasta…
-
0
votes0
answers115
viewsQ: Call error in Bootstrap js file
When I access the browser console it generates the following error: Bootstrap functions like the tooltip work normally even with such error, I am calling jQuery before Bootstrap as in the image: Can…
-
-1
votes1
answer212
viewsA: Problem insert file name in database
Try rewriting the variable or function that takes the file name using this form of rewriting <? /* * Script para remover acentos e caracteres especiais: */ $palavra = "açúcar união"; $palavra =…
-
1
votes1
answer565
viewsA: How to make a sliced layout using the codeigniter framework?
create a view as index view_index.php <?php $this->load->view('includes/header');//INCLUI A VIEW DENTRO DA PASTA VIEW/INCLUDE/HEADER.PHP $this->load->view('includes/menu');//INCLUI A…
-
2
votes1
answer198
viewsQ: Error of Session in user level validation
Good guys I am making a simple panel more with user level where I pass to the Session an array with three values, so far so good, the functions that validate the form, validates the bank user,…