What will be the URL for a REST GET service with multiple arguments
Hello,
If I have a hook_service_resource() implementation as follows and my url of the end point is
"localhost/services/mylist"; what should be my full url with the two arguments?
function rest_managed_items_services_resources() {
return array(
'myList' => array(
'retrieve' => array( 'help' => 'Retrieves list of managed items',
'callback' => 'rest_managed_items_list_retrieve',
'access callback' => 'rest_managed_items_list_access',
'access arguments' => array('view'),
Infoga php i block
Jag provar att hämta och presentera innehåll från en annan webbplats i ett block på följande vis:
<?php
$homepage = file_get_contents('http://www.exempel.se');
echo $homepage;
?>
Det enda som visas är koden som skrivs ut i blocket?
Read more