<?php
$client=new SoapClient('Link I can't post on my first post XD');
echo $client->getConnection('hello');
?>
and on the other Side I have:
<?php
class ConnectionController extends CController
{
public function actions()
{
return array(
'connect'=>array(
'class'=>'CWebServiceAction',
),
);
}
/**
* @param string
* @return string
* @soap
*/
public function getConnection($requeste)
{
$responde= "Hi <img src='http://www.yiiframework.com/forum/public/style_emoticons/default/biggrin.gif' class='bbc_emoticon' alt=':D' />";
return $responde;
}
}
as you’d guess this simple returns "Hi " and displays it on the page…
What I need to do is make the getConnection function Check if the user is a guest or falls into a certain “role” i have set up or if they don’t, each doing something different.
If statements don’t seem to work, Redirects are also not working…
I’ve not used this before now but have tried all I can think of/find.
if anyone has a way of getting 3 different responses on those 3 requirements I’d really appreciate the help.