Posts by Michel Henriq • 647 points
65 posts
-
1
votes2
answers35
viewsQ: Run code before starting services - Angularjs
Is there any way to run a code that runs before services? Because I want to use the function $http.defaults.headers before starting the services so that I can instantiate the header in all services…
angularjsasked Michel Henriq 647 -
0
votes0
answers87
viewsQ: 404 socket.io.js with express in Node.js
I’m creating a simple chat that switches simultaneous messages between 2 browsers, using Node.js with socket.io, but for some reason, my project can’t identify my socket.io.js within the project.…
-
0
votes1
answer154
viewsQ: How to affect div who is before div with Hover
We assumed in this code. How do I affect the class nav and the class img__logo when the input is with Hover? <div class="nav"> <div class="img__logo"></div> <input…
-
0
votes1
answer89
viewsQ: Phonegap Plugin
Hello, I’m a beginner with phonegap/Cordova, and I’ve been having trouble understanding some things, such as installing plugins, no matter the way I do, when I build the project on the phonegap site…
-
0
votes0
answers122
viewsQ: Facebook API does not open in phonegap mobile app
Well, I used the facebbok phonegap plugin, it works normally in the browser, but the application does not generate any results. I call on the app this way: $scope.sharethisfuckingshit = function(){…
-
1
votes0
answers71
viewsQ: phonegap plugin in Angularjs ngCordova
I have a slight difficulty in understanding how to install these plugins, in general they never work for lack of some file I haven’t called or anything like that. For example, this facebook plugin…
-
0
votes0
answers16
viewsQ: Phonegap facebook api in Angularjs
According to this project https://github.com/jeduan/cordova-plugin-facebook4, i installed via git-shell, this plugin in my phonegap, went to the root folder and ran the shell. At least, in this…
-
0
votes0
answers110
viewsQ: Inject facebook api into Angularjs controller
This function is called by a ng-click on a button in my view, but is not returning anything on the console. Can someone help me? $scope.shareContent = function(){ window.fbAsyncInit = function(){…
-
1
votes1
answer40
viewsQ: Emailcomposer Cordova no Angularjs
I was reading a project in the email plugin github of Cordova and did not understand how to install. It gives you the option to download the files, and then asks you to put this line in xml.…
-
0
votes1
answer47
viewsQ: Cordova com Angularjs
I did a lot of research, but I couldn’t find anything concrete. How to open standard mobile email client using Cordova with Angularjs?
-
2
votes3
answers11314
viewsQ: if inside an ng-class in Angularjs
because I can’t do that next check on my ng-class? setClass(sessao.tipo_2 != 3D ? sessao.tipo_3:sessao.tipo_2)" according to short-if logic, that syntax is right not?…
angularjsasked Michel Henriq 647 -
0
votes1
answer198
viewsQ: Status 200 data Undefined Angularjs
I’m building an angular application, where I give http.get in a url, the status comes 200, but the date comes empty. In the api where I built, I return the json array, and in the angular webservice,…
-
2
votes2
answers1753
viewsQ: global variable Angularjs
The question is simple, before the function I declared splited and within the alternate function splited for the value returned in response, now, after the function when I give console.log returns…
-
1
votes1
answer536
viewsQ: passing Scope value to javascript function
How to pass a $scope.video_url for a javascript function in my view? I have a service that returns the id of a video, and in my view I have a javascript infunction that starts the youtube player…
angularjsasked Michel Henriq 647 -
0
votes1
answer30
viewsQ: Daily cakephp 2x routine
How would I create a daily routine, so that every day he runs a trial? Would you do this via linux(crontab)? or is there a different and more practical way?
cakephpasked Michel Henriq 647 -
1
votes0
answers20
viewsQ: isUnique valitadion not working cakephp 2x
In my template, I created a valitaion for my email field, where if you have another email it shows that it is not possible to register, but this validation is not working. public $validate = array(…
-
1
votes0
answers84
viewsQ: Amadeus session error with cakephp
First of all, I want to make it clear that I know the documentation is private. I have the documentation in hand, I followed everything right, but the Amadeus keeps giving this error: 17|Session|No…
-
1
votes1
answer1256
viewsQ: Compile css with Sass on Windows
I installed ruby in windows and installed Sass. According to the tutorial, I have to monitor the css file until then beauty, but I wanted to edit a css file that already exists, and not a new, how…
-
0
votes1
answer27
viewsQ: using cakephp 2x push array_push
I am trying to add an array that is a return of a database query, this array is nothing more than an add-on I want inside my $this->request->data['Curso'], but the problem is array_push is…
-
0
votes0
answers28
viewsQ: Working with 3 templates within a 2x cakephp form
I’m dying to do this ,as as I work with 3 models within a form, and the form refers to the main model and the other 2 models are associated with this model. Example: <?php echo…
-
0
votes0
answers31
viewsQ: Saveall cakephp 2x
On my table Escola I have another associated table called EscolaPercentual. And I have a form that has data of the 2 tables, when saving in my action I give a SaveAll in the Model School, which has…
cakephpasked Michel Henriq 647 -
1
votes1
answer63
viewsQ: Fill a select via jquery in cakephp
I made it a little easier, but it’s not working yet. Instead of assembling everything in javascript, in my action I assemble all html and in javascript I only pass the mounted html to my select.…
-
1
votes0
answers127
viewsQ: Popular a select with php result using jQuery and cakephp
Hello, I’m trying to popular a select with the options that are returned, according to what the user selects in a particular select. The problem is that I’m a layman with jquery and I don’t know if…
-
0
votes1
answer20
viewsQ: Backup and redirect Hd windows server 2003
I have a Ws 2003 with a full 1TB hard drive, and now I bought a 2tb to can pass all the files from one to the other.The problem is that in copy-Paste it gives error in the file Thumbs. < br />…
-
0
votes1
answer30
viewsQ: Sitemap cakephp with Routes
Instead of doing sitemap on the nail, it is possible to make a method inside my Routes, which, all pages that exist in my project, are mapped by sitemap?
cakephpasked Michel Henriq 647 -
0
votes1
answer42
viewsA: controller name with hyphen in cakephp 2x url
http://book.cakephp.org/2.0/en/development/routing.html#Routes-Configuration According to the documentation of cakephp 2x, to mount a route for all controller actions, just do it this way.…
-
0
votes1
answer42
viewsQ: controller name with hyphen in cakephp 2x url
I’m working Google SEO on my site, and I realized, in word separations, a hyphen is better than an underline, or words together, only I realized that at first cakephp doesn’t accept creating…
-
-1
votes1
answer62
viewsQ: What can I do to load page without breaking code?
Currently, when I load the page of my site, everything appears broken, no configuration and then renders everything, the problem is that this is little interactive for the user. I’ve minified the…
-
1
votes2
answers76
viewsQ: Sass css/js minification
I’m looking for a software for windows, that does the minification of js/css files in Saas, currently only know codekit, but is for mac.
-
0
votes1
answer128
viewsQ: range slider jquery
It is possible, set the values that will be between the minimum value and the maximum value, for example, I give the minimum value to 10 and the maximum value to 200, but I do not want the values…
jqueryasked Michel Henriq 647 -
-3
votes1
answer954
viewsQ: html tag inside php variable
It is possible to use html tags within php variable. For example I am making a loop where I have a parent item that I want to take <strong> and the children items I just add a -, only if I do…
-
1
votes0
answers46
viewsQ: jquery combobox with cakephp 2x
With the code similar to what jquery ui provides, I am testing this combobox in my cakephp, the problem is that in no way it shows the arrow to enable the dropdown menu, already downloaded jquery ui…
-
3
votes2
answers136
viewsQ: Is it possible to make the optgroup label selectable?
It is possible to make the option of optgroup label selectable along with the rest of the group options, for example: <optgroup label="EUA"> <option value="0">NY</option>…
htmlasked Michel Henriq 647 -
0
votes1
answer45
viewsQ: How to put an exact number of cakephp 2x pagination results
I believe that by this code I can set an exact number of results per page in my pagination public $paginate = array('limit' => 7,); It’s just that the results don’t follow that number, and they…
-
2
votes0
answers92
viewsQ: Paging
In my controller I limit to 7, but when he makes the pagination, the first page comes with 3, 4, 1, and goes varied. public $paginate = array( 'limit' => 7, ); That’s what I do on my controller,…
-
4
votes1
answer2752
viewsQ: Where is stored the path of posts images in Wordpress?
I am building a plugin in cakephp custom, because the wordpress plugin itself does not work, until then, I managed to use everything, from the wordpress posts table, the problem is that I do not…
-
0
votes0
answers18
viewsQ: Failed Opening required no cakephp
I’m implementing a plugin in my cakephp project, but when I request a file that’s in the folder 'webroot/blog/file', he shows me the following message: Error: require()…
cakephpasked Michel Henriq 647 -
1
votes2
answers378
viewsQ: Separate string from end to start with substr php
Hello, I come across strings like that: Emirates EK 262 Air Canada AC 091 Lan Airlines LA 761 I know that from the end to the beginning the amount does not change, IE, if I want to get the name…
phpasked Michel Henriq 647 -
1
votes2
answers525
viewsQ: str_replace with php explodes
> A sua viagem Ref. reserva: 5SPGW9 Check My Trip Data de emissão: 06 Novembro 2015 . . Viajante Mrs Ana Paula Monteiro Malfati Agência INTERCAMBIO OPERADORA DE PROGRAMAS EDUC Rua Dos Tres…
phpasked Michel Henriq 647 -
1
votes1
answer291
viewsQ: mount select in javascript with php variable
I’m building a script that dynamically receives a variable php array, this variable I give json_encode, and now how do I mount my select with this information? script below: <?php $opts =…
-
1
votes1
answer32
viewsQ: disable select in cakephp
I have 2 selects, and want to make sure that when one of the select is with a different empty option, the other select enter disable. Follows my code: <script type="text/javascript"> function…
-
1
votes2
answers55
viewsQ: lighbox codeigniter
I set all right the files of lighbox, but for some reason it opens a new open showing the img, instead of showing the lightbox. <html> <head> <meta charset="utf-8">…
codeigniterasked Michel Henriq 647 -
2
votes0
answers226
viewsQ: Cursor stored Mysql precedent
I am inside a cursor that has 10 Rows of result. 2 Rows percentem is a number. example: 1,2 = 1, 3,4 = 2, 5,6 = 6, 7,8 = 9 , 9,10 = 3. How do I add only the values that correspond to the same number…
-
6
votes6
answers22962
viewsQ: How to calculate percentage?
I have a variable that dynamically receives from the database, a floating number that is the percentage to be taken out of a certain value. How do I take this percentage away from a value? For…
-
1
votes2
answers104
viewsQ: time() Function php
I am paying for some purchases that have specific dates, and when I step as parameter a date should be < that date("Y-m-t", time() + 14*24*60*60), that in case it would have to be 2 weeks, it…
-
1
votes1
answer87
viewsQ: thumbnail codeigniter
I built this class that makes a multiupload of images, creates the folders according to the id_year, and then generates the Thumbs of these images as per the foreach wheel. The problem is that the…
-
1
votes1
answer123
viewsQ: Stored Procedure loop
I built this project, it makes the query inside the cursor right, but when I select SPA_VALOR_ACOMODACAO, it returns the 0, which was set before the loop_duracao. Looks like it’s not getting into…
-
1
votes2
answers104
viewsQ: Data string-to-date Procedure
I am creating a Trial, which receives a date string '2015-09-11', checks if it is indeed a Monday, if not, it takes this date and play for Monday of the week itself. But my concept with sql is very…
-
1
votes1
answer271
viewsQ: STORED PROCEDURE
I have 2 procedures and I wanted to call the trial sp_is_temporada in the past sp_calcula_curso, where the value of the sp_is_temporada return will be used in procecure sp_calcula_curso, and the…
-
0
votes1
answer33
viewsQ: fpdf problems in cakephp
When I will create a new PDF class extending it to the FPDF to rewrite the methods Header, Footer, etc... This following error appears to me, I already searched but I could not solve.. this is my…
cakephpasked Michel Henriq 647