Hi,

I have a private method just simple like:

private function _check($email){
    if($email){
        return true;
    }else{
        return false;
    }
}

Then I have a public method with annotation mapping to a url just like

public function showResult(){
    if($this->_check('u...@gmail.com')){
        return ...
        (1)
    }
    return ...
}

I find that the code in part (1) does not work, it looks that the
private method _check() always return null,

I can invoke private function from public function in controller, isn't it?



Regards,

Haulyn Jason
Founder, http://yunshang.org
Rm. 807, Qilu Software Tower, Qilu Software Park
1 Shunhua Rd., High-Tech Development Zone
Jinan, Shandong 250101, P. R. China
Tel: +86 158 5410 3759
Website: http://haulynjason.net

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to