Data dodania Pytanie
2017-10-06 12:10 OOP PHP — How to selectively call a specific method defined in a class' constructor? »
I'm learning to code Wordpress Multisite the OOP way, and since I'm pretty new to OOP now I am in a situation that I can't seem to solve on my own. ...
(1) odpowiedzi
2017-10-06 12:10 Easiest way to get csrf token hash in codeigniter? »
Is there any helper way just like below function get_csrf() { $ci = &get_instance(); return $ci->security->get_csrf_token_name().'=...
(0) odpowiedzi
2017-10-06 12:10 Laravel 5.5 Unit testing controller method »
I am trying to setup a simple unit test for one my controller method. The goals is to test if the a view has an expected value. /** * Does the home...
(1) odpowiedzi
2017-10-06 11:10 Symfony service injection syntax »
I am working on a Symfony 2 app implemented by another company and came across the following service definition: service_id: class: 'path\to\clas...
(1) odpowiedzi
2017-10-06 05:10 Laravel how to keep selection option selected »
I am trying to edit the customer profile where I have a list of countries like this on the form. Whenever customer tries to edit profile, then country...
(2) odpowiedzi
2017-10-06 02:10 PHP SilverStripe ORM: Duplicate key value violates unique constraint for DataObject write »
I have a function on my website that saves a bunch of values quite quickly to the same DataObject type. Most of the time it's OK but occasionally I ge...
(2) odpowiedzi
2017-10-05 20:10 WooCommerce: Get name and variation from a Subscription order »
I want to display the name of the subscription product in the overview of my active subscriptions. At the moment, the page shows only the subscription...
(1) odpowiedzi
2017-10-05 16:10 PHP Hex to Integer »
I'm integrating a PHP application with an API that uses permissions in the form of 0x00000008, 0x20000000, etc. where each of these represents a given...
(2) odpowiedzi
2017-10-05 15:10 Wordpress: how to use get_categories »
I have a ajax call to a php file which uses get_categories(). But it always says "Call to undefined function get_categories()" How can I make it to wo...
(1) odpowiedzi
2017-10-05 14:10 Registration redirct on condition based in laravel »
How can I redirect to specific path after registration in Laravel?. I want to redirect page on id after registration. please help me. Thank You, in a...
(2) odpowiedzi
2017-10-05 13:10 Anonymous function in php is not working with laravel »
I've created an anonymous function inside my method, it is just returning an item if the deleted field is equal to 0. But the problem is it is still r...
(0) odpowiedzi
2017-10-05 10:10 Splitting screen in half with CSS »
I've been using this, W3 Schools, a stackoverflow page with similar problem to make my table (in a div) inline to another div on the second half of th...
(5) odpowiedzi
2017-10-05 10:10 Fetch users who have posted the last comment 3 days before eloquent »
Actually, I need to send the reminder emails to all my users in a time interval. So basically if a user has not posted any comment in last 3 days I ne...
(2) odpowiedzi
2017-10-05 09:10 PHP-FPM unknown caller in gdb backtrace »
I'm debugging a segfault in my php app, I compiled php with --enable-debug option and after php-fpm dumped core during the segfault, I run: $ gdb /us...
(1) odpowiedzi
2017-10-05 08:10 Decode json data to array and access the array in PHP(Laravel) »
I am trying to submit my form input as json format. After decoding json data into an array I can't access array. { "info": { "q_title": ...
(4) odpowiedzi
2017-10-05 08:10 Why does the same code for Java and PHP not work? »
I wrote a program in PHP and Java which generates all possible words with length 2. I used recursion. Why does the program work in Java but not in PH...
(2) odpowiedzi
2017-10-05 06:10 get_template_part not working - WordPress »
i'm using get_template_part('theme-templates/opt_header1') function in header.php and again using get_template_part('carousal') function in opt_header...
(1) odpowiedzi
2017-10-04 22:10 Laravel or PHP unique with multiple conditions »
I'm trying to get the unique rows from a MySQL DB from PHP and Laravel. In my DB I have: Email Errors Status a@a.a error1 pending a@a.a ...
(1) odpowiedzi
2017-10-04 16:10 Delete record from database using AJAX »
I have a PHP file which displays data from a database. I'm using while() to display each of the records. My PHP file: <?php $flightTicketsSQ...
(2) odpowiedzi
2017-10-04 16:10 Csrf token issue with scaling »
I have scaled my application to 3 different servers that use common mysql and redis service. Than I have set session and cache driver to my redis (the...
(1) odpowiedzi
2017-10-04 16:10 Laravel 5.5 Conditionally adding validation rule »
I have data coming in through an AJAX post like this: data: 0: {type: 'percent', amount: 10,…} 1: {type: 'percent', amount: 200,…} As...
(1) odpowiedzi
2017-10-04 15:10 Yoast Breadcrumbs not following slug »
I currently pull through breadcrumbs from Yoast <?php yoast_breadcrumb('<p>','</p>'); ?> but it only pulls in the current page, and ...
(0) odpowiedzi
2017-10-04 14:10 check or condition in where clause »
I want to check OR condition for the variable role_id in role_mapping table. I want to check if user_id has role_id either '2' or '3'. User with user_...
(1) odpowiedzi
2017-10-04 13:10 Send secret key to API »
My API have AUTH_KEY in .env file. I want to check this KEY trough middleware. I send all my requests to API(another domain) with cURL. And I can't u...
(1) odpowiedzi
2017-10-04 12:10 Favicon using wordpress »
I am trying to change favicon in wordpress. For which i have uploaded image in media and in theme customisation, under site identity i used that image...
(2) odpowiedzi
2017-10-04 10:10 products "read more" button is not working in woocommerce store »
I recently added code snippet to my functions.php child theme file which task is to echo a "Read More" button under all products which leads the user ...
(1) odpowiedzi
2017-10-04 09:10 URL Rewriting from .htaccess with Symfony Routing »
I have some trouble RewritingUrl with Symfony (2.8) My objective is to redirect some URL without having them changing in the browser bar. I need thi...
(1) odpowiedzi
2017-10-04 09:10 Different results between Ruby Digest::MD5.base64digest and PHP base64_encode »
I didn't work with ruby ever, only with php. And I need help. I have ruby code which encode string like that: str = '123'; arr = str.bytes p Digest:...
(1) odpowiedzi
2017-10-03 16:10 Custom Post Type URL rewrite with Post Type Template »
I am building a Wordpress site for a video production company. They produce videos for adults as well as for kids and therefore I split the posts in t...
(1) odpowiedzi
2017-10-03 14:10 Unable to create thumbnail while image is uploading in Laravel »
I'm trying to create thumbnail of image while it is uploading. The problem is that the thumbnail isn't created at all. Also is not saved in database. ...
(1) odpowiedzi
2017-10-03 14:10 Laravel SOLID using Repository Pattern »
I want (at this moment tyring) to follow the SOLID principles, but my mind is going to blows up. I read a lot of posts about Repository Pattern in La...
(2) odpowiedzi
2017-10-03 13:10 Print Array Top to Bottom in table instead of Left to Right using PHP »
I am trying to write a logic to display records top to bottom instead of left to right in the table. Here is my attempt: <?php $options = array("...
(4) odpowiedzi
2017-10-03 12:10 Including wp-load.php in custom .php file causes page processing to stop. Why ? »
I have got a WP website running version 4.8.2. I have created, in the root folder of my theme, a custom php page that includes Wordpress functions wi...
(2) odpowiedzi
2017-10-03 12:10 JOIN THREE TABLES IN CODEIGNITER »
I have three tables 1.article (id,article_title) 2.article_status(id,article_id,stage_id) 3.article_stages(id,stage_name) Each article have multip...
(4) odpowiedzi
2017-10-03 11:10 Removing custom posts type posts from array, based on ACF date-time value »
I want to show posts by the date time field in ACF. My posts are sorted so that the closest to todays date is the first in the list and posts with a d...
(1) odpowiedzi