debugging helper for PHP developers
Questions tagged [kint]
16 questions
10
votes
2 answers
Composer: Specify autoload_files require order
Laravel's helper function has if ( ! function_exists('xx')) protection.
Can I specify order of the autoload_files, and let Kint.class.php require before helpers.php?
return array(
$vendorDir .…

Chen-Tsu Lin
- 22,876
- 16
- 53
- 63
4
votes
15 answers
Debug Toolbar in Codeigniter 4 not working
I installed Codeigniter 4.0.2 and did following changes:
1- CI_ENVIRONMENT = development in .env file
2- SetEnv CI_ENVIRONMENT development in .htaccess in public folder
3- Added $useKint = true; in main index.php file in public folder
When I open at…

MyO
- 413
- 1
- 8
- 19
3
votes
2 answers
How does kint parse PHP functions prefixed by symbols (plus/minus sign, tilde, exclamation mark, at)?
The PHP debugging tool kint has a strange syntax where certain symbols can be prefixed to functions to alter their behavior, as shown in this guide.
The relevant information:
Modifiers are a way to change Kint output without having to use a…

glaux
- 701
- 7
- 20
3
votes
1 answer
Drupal 8 - how to access field values nested deep inside an array structure
I am trying to access values of a content type nested deep into array. This is the actual scenario:
I want to customise the default search result page layout of Drupal 8 with additional field information. To know what fields are available for me to…

Subrata Sarkar
- 2,975
- 6
- 45
- 85
2
votes
2 answers
How to emulate/capture unusual PHP operands from Kint
Background (Intro)
Kint is a PHP debugging tool that works as a more powerful replacement to PHP's var_dump(), print_r(), and debug_backtrace(). One unusual -- for PHP at least -- feature of Kint is the ability to use real-time modifiers in the form…

Blizzardengle
- 992
- 1
- 17
- 30
1
vote
0 answers
Problems installing kint correctly
I downloaded kint, unzipped it and moved the folder to the Library folder. Then I put this code as the second line of my PHP file (after
require '/kint/Kint.class.php';
and now, when I go to execute the PHP code, I get a blank screen.
Was…

SpokaneDude
- 4,856
- 13
- 64
- 120
1
vote
1 answer
How to load external library in Phalcon?
I'm trying to load Kint into my first Phalcon project. I'm trying to use the loader.php to do so. I tried with "registerDirs", "registerClass" and "registerNamespaces".
I am used to using Kint in Symfony2 via composer but this time I tried to clone…

ecc
- 1,490
- 1
- 17
- 42
0
votes
0 answers
How to print layout builder sections inside of a twig file in Drupal 8
I am looking to set up a three column grid in Layout Builder to be printed within a bootstrap col-md-4 div. I am wondering how I can print each column within its own bootstrap column.
My main thing is I dont understand how to print out the contents…

Jon
- 1
0
votes
1 answer
How to Install Kint Globally Drupal - Without Devel Module
I was trying to setup an easy way to debug the Lando Drupal installations using Kint module. But I don't want to install the Devel and Devel Kint Extras modules in each Installations.
What I have initially done is installed the Kint globally in my…

Adharsh M
- 2,773
- 2
- 20
- 33
0
votes
0 answers
spreadsheet import excel to array timeout
I have written a piece of code that turns into array an excel that a user uploads.
on 5/10 rows works totally fine but if i try to upload a bigger file ( not that big, something like 150 rows X 8 columns) i get a timeout error.
$reader = new…

gurgu
- 11
0
votes
1 answer
I keep getting a “Call to undefined function..” error displaying
I am new to PHP programming and I am trying to teach myself WordPress theme development for fun and I am using PhpStorm as my IDE.
I am trying to better understand the inner-workings of WordPress and I am running into a roadblock on something.
I…

I Am Sir Ask Alot
- 117
- 1
- 1
- 9
0
votes
1 answer
R Markdown cannot get RStudio Version - error message in knit
I have the following line in my R Markdown code chunk
RStudio.Version()$version
when I run the knit on the R Markdown to create a Word document, I get the following error message:
Error in RStudio.Version(): could not find function…

CodeMaster
- 63
- 4
0
votes
1 answer
How can I print php variable in twig?
I want to make a twig template for my custom module that outputs Next and Previous article links.
In my .module file I have

David Kovač
- 153
- 10
0
votes
1 answer
How can I display ordered items and shipping info on Drupal Commerce 2.x complete/thank you page?
I need to edit /complete page.
Is there a way to show items from the current order, and possibly shipping info?
Is there something like:
{{order_entity.getOrderShippingInfo}}
or
{{order_entity.getOrderItems}}

David Kovač
- 153
- 10
0
votes
0 answers
How can I use kint within twig template to get the vid value, for example?
Also, when I increase max depth within config.default.php every page that has kint used breaks.

David Kovač
- 153
- 10