developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
57
results
Andrew Fletcher
•
JSON structure
Outlining the structure of the elements common attributes: type, title, name and required;
Text area
{
"type": "webform_multiple",
"title": "What's new?",
"name": "what_s_new_",
"required": false
}Text field
An additional attribute for the text field is maxlength
{
"type": "textfield",
"title": "Text field (optional)",
"name": "text_field_optional_",
"required": false,
"maxlength": 255
}Select field
Options attribute is an additional...
Andrew Fletcher
•
In this instance, I'll check the beginning of the string. I want to focus...
Andrew Fletcher
•
ERROR Error: Uncaught (in promise): TypeError: undefined is not an object...
Andrew Fletcher
•
Working from the bases that .DS_Store has not been added to your git repository,...
Andrew Fletcher
•
How do you generate a .pem file from an existing .ppk key?
Is putty on your...
Andrew Fletcher
•
To sort through a multidimensional array seems to be a function that I occasionally call on. Handy to have referenced here:
/**
* Loop through a multi dimensional array
*
* @param array $haystack
* Data array.
*/
protected function sortMultiDimensionalArray($haystack)
{
foreach ($haystack as $key => $item) {
// If $item is an array and the number of children is greater to one
// keep looping through the array.
if (is_array($item) &&...
Andrew Fletcher
•
phpcs issue in Visual Studio Code, I'm receiving this warning in VS...
Andrew Fletcher
•
Had the situation where you are running composer however, the scripts stops with...
Andrew Fletcher
•
Oh the treasure of a client coming to you with a site they have removed the...
Andrew Fletcher
•
Currently I'm working through an app that has been abandoned by the developers....
Andrew Fletcher
•
I installed Lando 3.6.2 and Laravel 9. When I visit the web page, I getting
Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.28. in /app/vendor/composer/platform_check.php on line 24
Problem solving
Opening the directory in VS Code, if I run the command
php -vThe response I'm getting is
PHP 8.1.2 (cli) (built: Jan 21 2022 04:47:26) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2,...
Andrew Fletcher
•
First off, this isn't the only method to achieve the outcome of emptying a...
Andrew Fletcher
•
Clear DNS Cache
The DNS (Domain Name Service) cache on your Mac helps browsers...
Andrew Fletcher
•
Changing git push from passphrase? There are several ways to tackle this...
Andrew Fletcher
•
Updating to PHP 8.1, I found this interesting code stop...
Deprecated function:...