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
27
results
Andrew Fletcher
•
When you have an entity ID value such as node ID (nid) or taxonomy term ID, how can you create the alias in a twig file? In other words, instead of /taxonomy/term/{tid} I would like to get the alias I have defined for this, eg: /some/path/to/my/term.
In trying to find an answer you might have queried your search criteria using something like
twig canonical taxonomy path
twig canonical entity path
twig canonical node path
How to achieve
This is achieved through using the...
Andrew Fletcher
•
Working in Twig, I had to add classes to a pre-existing array. Whilst I've...
Andrew Fletcher
•
A recent attempt to run an update composer (regular activity for many of...
Andrew Fletcher
•
I'm writing these steps primarily for myself as a reference. However, if...
Andrew Fletcher
•
Working in Laravel, I needed to loop through an array and know whether the...
Andrew Fletcher
•
I need to set the default php-version of a subscription to php7.3. The current server php version is PHP 7.1.33 (cli) (built: Oct 25 2019 11:33:58) ( NTS ).
Using a shell program (I used Terminal) from the home directory I ran:
export PATH=/opt/plesk/php/7.3/bin:$PATH;
centos 6 use
service httpd restartcentos 7 use
sudo systemctl restart httpd.serviceHowever, through shell when I ran php -v the version remained at 7.1.33.
Incase the restart wasn't enough I rebooted the server...
Andrew Fletcher
•
Attempting to load changes in a staging site and the bountiful error page...
Andrew Fletcher
•
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI...
Andrew Fletcher
•
This page shows a growing list of common commands for viewing and managing your...
Andrew Fletcher
•
Whilst updating nodejs and npm on a Centos 6 or 7 server running Apache, I...
Andrew Fletcher
•
Installing Laravel on an Apache server was going to be a no fuss process said no developer! Research done. Documentation looks good and easy to follow. Time to load Laravel.
The set-up
The install notes on Laravel are easy to follow. Beginning with checking that your server is able to install Laravel.
Using shell commands check that your server has the minimum requirements. To do this run the command php -m
-bash-4.1# php -m
[PHP...
Andrew Fletcher
•
We had an issue recently where saving a page in the admin area produced one of...