Small correction, I want to overload the authorize function of the auth
component.
On Sunday, April 21, 2013, Michael Gaiser wrote:
The Alaxos ACL Plugin is pretty cool and I will want my code to work very
similar to that when I am done, but I dont think it will do exactly what I
want. As for
Vitor Pacheco, obrigado pela resposta.
Então, sua função tem uma condição a mais ( if ($this-request-is('post'))
{), o que essa linha faz??? Pois no meu caso não se trata de um blog, e eu
não tenho um post.
Em sexta-feira, 19 de abril de 2013 17h25min19s UTC-3, Anderson Moraes
escreveu:
Although I stopped short of this in my recent projects, so I haven't tried
it, but it seems you could create a component of your own and just inherit
the AuthComponent and overwrite that way.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter
I was looking around and found this page
http://joykapoor.wordpress.com/2013/01/09/authcomponent-variables-in-cakephp/
It seems that you can have your own isAuthorized() function in your user
model and it will call it once it determines you are a valid user. I am
going to give that a shot and see
I set up a postgresql database on my server and am getting the following
error with a fresh installation (and brand new download of CakePHP):
Cake is NOT able to connect to the database.
Database connection Postgres is missing, or could not be created.
Selected driver is not enabled
I've
A condição a mais está verificando o tipo de requisição que está sendo
feita a action login... E não tem relação alguma com posts de um blog.
Quando você abre a página de login, é enviada uma requisição GET para o
servidor. E quando o formulário é enviado, o browser envia uma requisição
POST para