Alex Tech Adventures The webs best tutorials!

Welcome, Guest
Please Login or Register.    Lost Password?

Zend_Auth and Zend_Form
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Zend_Auth and Zend_Form
#95
Zend_Auth and Zend_Form 2 Years, 3 Months ago Karma: 16
** This thread discusses the content article: Zend_Auth and Zend_Form **

alexanderrv
Administrator
Posts: 279
graph
User Offline Click here to see the profile of this user
Gender: Male tmthv2 alexchatonly@hotmail.com Location: Freeport, Bahamas Birthdate: 1989-04-14
The administrator has disabled public write access.
 
#96
Zend_Auth and Zend_Form 2 Years, 3 Months ago Karma: 0
Notice: Trying to get property of non-object in C:wampwwwdziuryapplicationpluginsAccessCheck.php on line 19

Line 19: $role = $identity->role;

Any idea? Using 1.9v
robos85
Fresh Boarder
Posts: 0
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#99
Re:Zend_Auth and Zend_Form 2 Years, 3 Months ago Karma: 16
alexanderrv
Administrator
Posts: 279
graph
User Offline Click here to see the profile of this user
Gender: Male tmthv2 alexchatonly@hotmail.com Location: Freeport, Bahamas Birthdate: 1989-04-14
The administrator has disabled public write access.
 
#192
Re:Zend_Auth and Zend_Form 2 Years, 2 Months ago Karma: 0
Hi, I have a problem in this step:>.

And I don't now why:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\xampp\xampp\htdocs\szymon\application\plugins\AccessCheck.php on line 18

Code:


    public function preDispatch(Zend_Controller_Request_Abstract $request){
        $resource = $request->getControllerName();
        $action = $request->getActionName();

        $identity = $this->_auth->getStorage()->read();
        $role = $identity->role;

        if(!this->_acl->asAllowed($role, $resource, $action)){
            $request->setControllerName('authentication')
                    ->setActionName('login');
        }


    }



Please help:>
On the occasion a very nice tutorial!
cykcykacz
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#193
Zend_Auth and Zend_Form 2 Years, 2 Months ago Karma: 0
Just a question on Zend_Auth :
Why doesn't it make any difference between "DedE" and "dede"?
The case is ok on the password but not on the login?
If you have an answer
dede
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#206
Re:Zend_Auth and Zend_Form 2 Years, 2 Months ago Karma: 16
@dede
Sorry, i am not clear on what exactly do you mean by "case is ok".
Do you mean it is case sensitive on password but not on username or the other way around?

Not really sure of the answer but as far as I can tell in all software I've used username has never been case sensitive while passwords were (in order to meet complexity requirements) so I guess thats the norm.

@cykcykacz
Which one of those lines is 18 in your code?
Right now I can only guess because it does not look wrong to me. I would make sure that
private $_acl = null;
private $_auth = null;

is set properly in __construct:
public function __construct(Zend_Acl $acl, Zend_Auth $auth) {
$this->_acl = $acl;
$this->_auth = $auth;
}

I've also seen this error when PHP 4 is used but then if you had PHP4 I don't think ZF would even get that far.
alexanderrv
Administrator
Posts: 279
graph
User Offline Click here to see the profile of this user
Gender: Male tmthv2 alexchatonly@hotmail.com Location: Freeport, Bahamas Birthdate: 1989-04-14
Last Edit: 2009/11/28 22:34 By alexanderrv.
The administrator has disabled public write access.
 
Go to topPage: 12
Moderators: alexanderrv
You are here: Home Forum

Statistics

Members : 1388
Content : 42
Web Links : 1
Content View Hits : 190536

Poll

Interested in TinyBrowser and TinyMce plugin for ZF?
 

Who's Online

We have 30 guests online