Dependent Dropdown box CakePHP 3

I have created a countries, cities and customers table and i'm trying to ensure that when I add a new customer from a drop down I can select a country and then a city related to that country. Currently I am able t select any city and country combinat...
more »

2017-02-22 22:02 (1) Answers

TIMEZONE select box change to USA only

I have a bit of code that populates a selectbox with timezones however it includes Asia, Africa, etc. I would like to only have it list US timezones. Is that possible? The code I have now is... /* Get all timezone listing */ functi...
more »

2017-02-22 21:02 (1) Answers

adding radio button to mail form

I have a HTML form : <form name="sentMessage" id="contactForm" novalidate> <div class="row control-group"> <div class="form-group col-xs-12 floating-label-form-group controls"> <label>Name</label> ...
more »

2017-02-22 21:02 (2) Answers

PHP Like System / 'Most Liked' (Need for logic)

I'am trying create a basic comment system, I was success but I have a problem right now. I can't list "most liked" comments and I don't have an idea about how can I. My votes database showing like that: voteid | value | entryid | userid 25 ...
more »

2017-02-22 21:02 (1) Answers

Mediawiki doesn't send any email

My Mediawiki installation (1.28.0, PHP 7.0.13) doesn't send any email and yet there is no error reported. I checked using Special:EmailUser page. What I have tryed: 1) Command line SendMail can send email without problem. 2) A simple PHP script ...
more »

2017-02-22 18:02 (0) Answers

How to unit test Symfony validation constraints?

What is the best way to verify that a class has all the expected constraints (property constraints, get/is/has method constraints, custom callback constraints, class constraints) set? A good way would be a way that: allows defining set of constrai...
more »

2017-02-22 18:02 (0) Answers

how to avoid spambox with php mail() function

This is my first post. Yeah! I got a problem with my contact form. it sends the email to my spambox. How to avoid the spambox using php mail() function? I already search on stackoverflow and serverfault but i can't seem to find the right solution...
more »

2017-02-22 17:02 (1) Answers

Multiple insert query error while using PHP - PDO

This is a test query "INSERT INTO `tablename` (`col1`,`col2`) VALUES ('1487767957','1470061061'),('1487767957','1470119999'),('1487767957','1478802807')"; "INSERT INTO tablename (col1,col2) VALUES (1487767957,1470061061),(1487767957,1470119999),(14...
more »

2017-02-22 17:02 (0) Answers

CakePHP 3 ODBC connection

Using Windev our databases are currently hosted on HFSQL, the proprietary Windev database system. I would like to use CakePHP to allow a web view of the data. I know how to connect to the HFSQL database via ODBC and it works in php, but impossible ...
more »

2017-02-22 16:02 (0) Answers

Laravel: @foreach does not render content within

I'm creating a simple @foreach but for some reason it is ignored completely. I made sure that the data exists. I var_dumped both in the controller and in the view and the variables do exist. Controller Code: public function create(Request $request)...
more »

2017-02-22 15:02 (1) Answers

PHP Class and Function return

I have problem with PHP class and function. My class file is: <?php class EF_IP{ public function ip_adresa(){ // dobivanje IP adrese if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; return $ip...
more »

2017-02-22 15:02 (2) Answers

Requesting Api Call using cURL

Someone could help me ? I'm trying to do a request by the code bellow, but anything happen, any message appears. I believe my code it's right: public function subscribe(){ $json_url = 'https://apisandbox.cieloecommerce.cielo.com.br/1/sales/'; ...
more »

2017-02-22 15:02 (2) Answers

Enable PDO Oracle

I want to enable PDO for Oracle. I try uncomment the following line in php.ini to enable it but it's not working: extension=php_pdo_oci.dll PHP Description: Version:5.6.15 Thread Safe VC11 I install Oracle Database Express Edition 11g Releas...
more »

2017-02-22 12:02 (0) Answers

Laravel 5.4 validation unique issue

I'm trying to update an user and when the email is already taken it will give an error, except when it's your own email. Right now my code is: $user = User::find($id); $input['email'] = request('email'); $rules = array('email' => 'unique:users...
more »

2017-02-22 09:02 (2) Answers

Pagination in php mvc(jream)

sometimes last year i went through a php mvc tutorial done by jream the platform looks so simple and convenient. Now am building a web application with this mvc platform and now am stoked in the aspect of pagination, while trying to paginate records ...
more »

2017-02-22 09:02 (0) Answers

Validation form doesn't work in Codeigniter

So I have this registration form working well. But when try to click submit button without any input, the page just reloaded without any warning that should showed up. Here's my controller: <?php class Signup extends CI_Controller { public f...
more »

2017-02-22 07:02 (1) Answers

Preparing to migrate CakePHP 3.4 to CakePHP 4.0

As we are starting the second part of my project. And we would like to first start completing the migration process before working on the second half of the project. I’ve a few concern about the migration process and would like to clear my doubts. ...
more »

2017-02-22 05:02 (2) Answers

Can't get it to sort properly... PHP PDO

Trying to create a search function for a car dealer where the inventory listings are narrowed down by year, make, model and price range. For some reason I can't get the price options to work. I want to set it up so that the prices are listed in rang...
more »

2017-02-22 04:02 (0) Answers