Search Results
Article: Drupal 9: Creating Ajax Dialogs
… { $output = []; $output['a_dialog_link'] = [ '#type' => 'link', '#url' => new Url('mymodule_display_modal'), '#title' => 'node in dialog', … { $output = []; $output['a_dialog_link'] = [ '#type' => 'link', '#url' => new Url('mymodule_display_modal'), '#title' => 'node in …
Article: PHP5 Filter Functions Part 1
… expressions to tell if a value is a number, a boolean or even a URL, you can just use these filter fucntions. The main functions that … }else{ echo 'Invalid Email'; }; The same thing can be done with a URL. $url = 'http://www.hashbangcode.com'; if( filter_var($url, …
Project: CURL Command Converter
… Convert a curl HTTP request from one format to another. This allows curl commands of various types to be parsed and output as equivalent code. Currently supported inputs: - Curl Currently supported outputs: - PHP Code Install composer require …
… file. This file is basically a XML file containing a list of URLs. Most major search engines understand (and look for) this file, so … and made sure that the index action did not show the layout. The URLs are passed as an array to the view. class SitemapController … indexAction() { $this-> _helper-> layout()-> disableLayout(); $urls = array(array('loc'=> 'http://www.hashbangcode.com/', 'lastmod'=> …
… of a string within another string. Basically, I needed to find all URL's from a table that were more than 3 levels deep (i.e. with 3 … difficult really, all I needed to do was find out the length of the URL string and then subtract the length of the string with the slashes removed. This MySQL statement will give you the URL and the number of slashes in that URL in a table. SELECT url, …
… = { attach: function attach(context, settings) { $.ajax({ url: Drupal.url('loading/ajax'), type: 'POST', contentType: 'application/json; … = NULL; // Create the batch_process(), and feed it a URL that it will go to. $url = Url::fromRoute('user.page'); $response = …
… and attempting to guess the next available resource by looking at the URL. Apparently, terabytes of Parler's data was downloaded by simply … post that was loaded using the type and ID of the content in the URL. This means that when a user visits the post they might see a URL with the path /post/1 . If a user wanted to see the next available …
… When moving a Wordpress install from one place to another there are a number of things you must be aware of. … you have created your templates properly you will have used calls to bloginfo('home') rather than using static links, but you will need to …
… the following error at the top of every admin page. Warning: parse_url(http://10.0.0.1:594191?ver=20091217) [function.parse-url]: Unable to parse URL in \www\wp-includes\script-loader.php on line 542 For some reason …
Article: Using mod_rewrite On Form Parameters
… websites is fairly straightforward and can create some lovely looking URL structures. Instead of having a URL that contains lots of odd looking parameters like this: … You can use a .htaccess file to rewrite the URL on the server side in order to shorten this to something like this: …