Let’s Talk!
Suchen Sie einen zuverlässigen Partner, der Ihr Projekt auf die nächste Stufe bringt? Ob es um Entwicklung, Design, Sicherheit oder laufenden Support geht – ich würde mich gerne mit Ihnen unterhalten und sehen, wie ich Ihnen helfen kann.
Again another Google AMP article, this time dealing with Syntax Highlighting. If you have a code centric website, this is important. In one of my last articles I talked about a Generic Syntax Highlighter. This time I want to show you, how to add Syntax Highlighting with GeSHi to a custom template in AMP-WP. FIRST SOME RESOURCES Please read up on […]
easily build out your own REST API or use the long available HTTP REST API 1.0+ for WordPress. But with the new HTTP REST API 2.0+ its getting really easy to build out your own REST API Namespace and assign routes for all your JSON needs. The new REST API will make its appearance in WordPress 4.4, but […]
When projects are getting bigger, its always nice to split things up and prepare parts of your code for general reuse. PHP Traits (PHP 5.4+) are a nice way to do this. Adding multiple Traits or classes, requires you to make sure all are being included. Here is a nice way to register both with the __autoload function […]
Single inheritance has often been the limitation for PHP. This means that a class can only inherit from one other class. Often classes share the same methods and it would be beneficial to allow reuse and prevent duplication. In PHP 5.4 a new feature was added, known as Traits. A Trait is like a Mixin, allowing […]
header(‚Cache-Control: no-cache, must-revalidate‘);header(‚Expires: Mon, 26 Jul 1997 05:00:00 GMT‘);header(‚Content-type: application/json‘); The first two headers prevent the browser from caching the response and the third sets the correct MIME type for JSON. Than just output your JSON data $data = array( „fire“ => 1, „water“ => 0, „earth“ => 1, „air“ => 1, ); echo json_encode($data); exit;
PORTALZINE® NMN
Alexander Gräf
Stettiner Str. Nord 20
DE-49624 Löningen
PORTALZINE® NMN
Alexander Gräf
Stettiner Str. Nord 20
DE-49624 Löningen