<?php
#include_once($_SERVER['DOCUMENT_ROOT'] . "/application/core/config.php");
header("Content-Type: application/javascript");
?>
$(document).ready(function(){
alert('Hello from SIMPLE JS code!');
});
try {
$request = $client->method($object);
} catch (SoapFault $exception) {
print_r($client->__getLastRequest());
return false;
}
.listt {
font-size: 0;
white-space: nowrap;
width: 100%;
overflow-x: scroll;
}
<li></li>
<ul>
<?php foreach ($category['children'] as $child) { ?>
<?php if ($child['category_id'] == $child_id) { ?>
<a href="<?php echo $child['href']; ?>" class="active"><?php echo $child['name']; ?></a>
<?php } else { ?>
<a href="<?php echo $child['href']; ?>"><?php echo $child['name']; ?></a>
<?php } ?>
<?php } ?>
</ul>
&tvFilters=`{"tags:LIKE":"%черный%"}`
[[!getPage?
&elementClass=`modSnippet`
&element=`getProducts`
&depth=`1`
&includeTVs=`1`
&parents=`[[*id]]`
&tpl=`goods_list`
&pageLimit=`10`
&pageNavVar=`page.nav`
&tvFilters=`[[!get_filters]]`
&limit=`1`
]]
<?php
if(isset($_GET['filter_name']) && isset($_GET['filter_value'])){
return '{"'.$_GET['filter_name'].'":"'.$_GET['filter_value'].'"}';
}
А как реализовать, например, запрос addTourproduct?
Т.е там разные пространства имен. Вложенность и т.д.
Т.е так уже не написать.
$req = new Request();
$req->messageList = new MessageList();
$req->messageList->message = new Message();
$req->messageList->message->phone = '79871234567';
$req->messageList->message->text = 'Тестовое сообщение 1';
$req->messageList->message->date = '2013-07-21T15:00:00.26';
$req->messageList->message->type = 15;
$client = new SoapClient( "http://{$_SERVER['HTTP_HOST']}/smsservice.wsdl.php",
array( 'soap_version' => SOAP_1_2));
var_dump($client->sendSms($req));
$client->addTourproduct($object);
[[+любой TV]] - любой TV-параметр, например ;
[[+shk_любой TV]] - любой доп. параметр, выбранный при добавлении товара в корзину (из [[+addit_data]]), например [[+shk_param1]].
$client = new SoapClient($location, array('trace' => $trace, 'location'=>$location, 'login' => $login, 'password' => $pass));
$orders = ORM::factory('Order')
->join('orders_archive', 'LEFT')->on('orders.id', '=', 'orders_archive.order_id')
->where('author_id', '=', $this->user->id)
->and_where(?)
[[*tv_name:replace=`[[+id]]==[[*id]]`]]
$client = new SoapClient($location, array('trace' => $trace, 'login' => $login, 'password' => $pass, 'soap_version' => 'SOAP_1_1');
try {
$request = $client->method_name();
$last_request = $client->__getLastRequest();
} catch (SoapFault $exception) {
$last_request = $client->__getLastRequest();
}