Problems with login CAKEPHP 2.6.1

Question: I'm having problems with login to the CakePHP site, I'm following the example described on the site, but when entering any user or password, even if it's not registered with the bank, it allows access to the features. Below is the code: User.php <?php App::uses(‘BlowfishPasswordHasher’, ‘Controller/Component/Auth’); App::uses(‘AppModel’, ‘Model’); class …

Problems with login CAKEPHP 2.6.1 Read More »

Upload file com CakePHP

Question: Regarding the upload file, I have the following codes so far: Controller: public function initialize() { parent::initialize(); $this – > loadComponent(‘Upload’); } public function upload() { if (!empty($this – > request – > data)) { $this – > Upload -> send($this – > request – > data[‘uploadfile’]); } } …

Upload file com CakePHP Read More »

Problem with function call in CakePHP

Question: I have this in the Passagem.php model: <?php class Passagem extends AppModel { public $name = ‘Passagem’; }?> And this in PassagesController.php: <?php class PassagensController extends AppController { public $helpers = array(‘Html’,’Form’); public $name = ‘Passagens’; public $components = array(‘Session’); function index(){ $this->set(‘passagens’, $this->Passagem->find(‘all’)); } }?> The moment I …

Problem with function call in CakePHP Read More »

Scroll to Top