Posts by Michel Henriq • 647 points
65 posts
-
1
votes1
answer371
viewsQ: fpdf with cakephp
I am using the library in fpdp cakephp, created a private method in my controller by mounting a basic pdf and then called this method in an action but it does not generate pdf.. private method:…
cakephpasked Michel Henriq 647 -
0
votes0
answers43
viewsQ: Using Virtualfields in cakephp variable
I created a virtual field, but I don’t have much concept about it, until today I only used to make pagination, as I do to use the result of this virtual in a variable? public $virtualFields = array(…
cakephpasked Michel Henriq 647 -
1
votes0
answers67
viewsQ: Foreach inside if Cakephp
I have an A table that stores an item, and in this table, I have a related B that may have several items aggregated to an item in table A. Follow the if code: if…
-
0
votes1
answer532
viewsQ: Error generating PDF with mPDF
I rode this script to generate a PDF invoice, but when I try to generate the PDF the message appears: This PDF document may not be displayed correctly. <?php $meses = array( '01' => 'Janeiro',…
-
0
votes1
answer490
viewsQ: Background table image does not work in outlook
I am mounting an email marketing, and when I put the html in outlook it does not show the image that is like bg of a table, someone knows how to force it? Part of the code that is with img as bg:…
htmlasked Michel Henriq 647 -
3
votes2
answers3938
viewsQ: Calculation with decimal number PHP
I’m making a query, which gets 2 values from the database. It returns the correct values with comma. But when multiplication is done, it is not counting the decimal places. foreach…
phpasked Michel Henriq 647 -
1
votes0
answers61
viewsQ: Passing sql in CAKEPHP array input
I need to make 3 queries, if x icon is enabled, make query X. If it is y icon, query y. If both are, I want everything from x and y query. I can get the x and y query, but when it comes to getting…
-
1
votes1
answer42
viewsQ: Redirect cakephp
I created an action, in which, when clicking an icon on the page, it calls this action and in itself has a redirect to the page itself. The problem is you’re not doing this redirect. Action: public…
cakephpasked Michel Henriq 647 -
1
votes0
answers36
viewsQ: Problem with Event keyup
In this script, I’m picking a start date of a datepicker, and to her I’m adding the week that the guy type with another 5 days. The problem is that he only applies this rule on the first date I…
-
0
votes1
answer842
viewsQ: Next and Prev button of the datapicker does not appear
Right and left button images do not appear. css files I installed: <link rel="stylesheet" href="/css/jquery-ui.css"/> <link rel="stylesheet" href="/css/jquery-ui.min.css"/> <link…
-
1
votes0
answers241
viewsQ: Showing just one day on Datapicker
I have 2 datapickers, as I do to show only that day I stored? code: $("#data-retorno").datepicker({ dateFormat: 'dd/mm/yy', dayNames:…
datepickerasked Michel Henriq 647 -
2
votes1
answer774
viewsQ: Using the value of one datapicker in another
I’m trying to use this DataPicker to catch the day he selects, add 7 more days and from these days, return only Saturdays. Follow the code. Code updated, now only remaining to add the 7 days.…
-
4
votes2
answers1536
viewsQ: Changing date to be shown on datepicker
I’m making a calendar with datepicker, and I need this calendar to show only Mondays, and most importantly, to show a month after the current date, IE, will have to show from the day 27/05 only…
-
1
votes2
answers162
viewsQ: Creating a link from one site to another in cakephp
I’m having a problem, I’m creating a button, which is on an X site, but the controller the action of the link is on the Y site. My problem is that when I click the button, it references the…
cakephpasked Michel Henriq 647 -
0
votes0
answers42
viewsQ: pathinfo with cakephp
Hello, I made an image upload system, in which, saved images, are saved with $id_o.$extensao = 1_o.jpg , now, I am creating an element, that with this image name, return me the relative path of this…
cakephpasked Michel Henriq 647