Hi I want create PDF file with lib. TCPDF. When i dont use Auth
component all is ok and call url return PDF file, but wheh I use Auth
componet in app_controller, call url dont return PDF file, sure im
login. Please help me, i dont know where is problem.
THX!

Source of app_controller:

<?php
class AppController extends Controller {
        var $helpers = array('Javascript','Html');
        var $components = array('Auth');

                function beforeFilter(){
            Security::setHash('md5');
            $this->Auth->userModel = 'Restaurant';
            $this->Auth->loginAction = array(Configure::read
('Routing.admin') =>false, 'controller' => 'restaurants', 'action' =>
'login');
            $this->Auth->logoutRedirect = array(Configure::read
('Routing.admin')=> false, 'controller' => 'restaurants', 'action' =>
'logout');
            $this->Auth->userScope = array('Restaurant.statusaccount'
=> '1');

            if(!empty($this->params['admin'])){
                if($this->params['admin'] == true) {
                    $this->layout = 'admin';
                    $this->set('user',$this->Auth->user());
                }
            }
        }
}
?>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to