сряда, 25 декември 2013 г.

getIdentity () -> username;

Search results for "getIdentity () -> username;"
{
function init ()
{
$ this-> initView ();
$ this-> view-> baseUrl = $ this-> _REQUEST-
> getBaseUrl ();
Zend_Loader :: loadClass ('User');
$ auth = Zend_Auth :: getInstance ();
if ($ auth-> hasIdentity ()) {
$ this-> view-> name
= Zend_Auth :: getInstance () -> getIdentity () -> username;

$ this-> view-> status = "Logout";
}
else
{
$ this-> view-> name = "Guest";
$ this-> view-> status = "Login";
}
}
LoginAction function ()
{
if ($ this-> _REQUEST-> isPost ()) {
/ / Collect the data from the user the
Zend_Loader :: loadClass ('Zend_Filter_StripTags');
$ f = new Zend_Filter_StripTags ();

Няма коментари:

Публикуване на коментар