Re: cake 2.x auth component bugs with pages controller after changing htaccess files

2012-05-19 Thread Miloš Vučinić
You can make a sql qury which will delete all from given range.. I
think it would be best for performances as well

On May 19, 4:55 am, Jimit Kapadya  wrote:
> Hello All,
>
> how to delete Multiple tables fields values in cakephp 2.0

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cake 2.x auth component bugs with pages controller after changing htaccess files

2012-05-19 Thread Jimit Kapadya
Hello All,

how to delete Multiple tables fields values in cakephp 2.0

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cake 2.x auth component bugs with pages controller after changing htaccess files

2012-05-18 Thread Miloš Vučinić
I figured id out.. So I did have a char in the end of my while it is
because I maade my controller UTF 8 beacuse of some warnings that I
needed to make in serbian. However, I didn't make it utf 8 without BOM
(notepad ++ has that option), lousy missclick

Strange things are the following :

in local host , it worked 0.O
second thing is, ACL->Allow worked when you make all allowed but
doesn't when you need to check if someone is logged in. This behaviour
is super strange, because only AUTH component had the problem with my
controller. If it was allowed it worked ..

Anywyas LOZ .. I just wasted a day on that .. But at least its
over ..

On 18 мај, 23:35, Miloš Vučinić  wrote:
> Hi,
>
> this is really strange question. I made a simple web presentation (so
> far I have used cake 1.3 this is my first 2.x project), and added AUTH
> component looking at the tutorial from this link 
> :http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-cont...
>
> Ok so here is my problem. I have overridden pages controller and made
> 4 more. They all run perfectly in local host, however , only pages
> controller bugs on the server. In order to upload code and make it
> work I had to change my 3 htaccess files , because sever was giving me
> internal sever error without base variable.
>
> Now here is the funny part. The pages controller shows blank page with
> no errors, even in debug mode 2, whenever I try to access any of the
> functions for which you have to be logged in to use. Only pages
> controller, which doesn't use anything unusual, or unstandard. Just a
> plain blank page and only on that server. In local host it runs
> normaly.
>
> So I did the following :
> 1) I checked if there is any blank space left - no
> 2) I checked if allowed functions work - they do
> 3) When I put smth in before filter and do var_dump it prints it.
> 4) I tried to print user from session of from auth component , I get
> null - although in other controllers it works ok
> 5) This all happens regardless if I am loged in or out
> 6) I do not get redirected when the function is allowed for normal
> users, I only get the blank page , i checked to surce of the page,
> nothing, just html and body tags empty again
> 7) when i make auth->allow('*') everything runs ok. So only the
> functions which are not allowed.
>
> Since I wasted a whole day on this, I am going to rename the
> controller and try again because all others are working fine, and in
> local host even pages work fine. I suppose that since I had to change
> htaccess files, auth component bugs, but I cant guess what.
>
> I will post update about this, however if someone had a similar
> situation and solved it please help.
>
> I guess somehow I got different sessions for these controllers but I
> have no idea how or why... 0.O
>
> ty in advance

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


cake 2.x auth component bugs with pages controller after changing htaccess files

2012-05-18 Thread Miloš Vučinić
Hi,

this is really strange question. I made a simple web presentation (so
far I have used cake 1.3 this is my first 2.x project), and added AUTH
component looking at the tutorial from this link :
http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html

Ok so here is my problem. I have overridden pages controller and made
4 more. They all run perfectly in local host, however , only pages
controller bugs on the server. In order to upload code and make it
work I had to change my 3 htaccess files , because sever was giving me
internal sever error without base variable.

Now here is the funny part. The pages controller shows blank page with
no errors, even in debug mode 2, whenever I try to access any of the
functions for which you have to be logged in to use. Only pages
controller, which doesn't use anything unusual, or unstandard. Just a
plain blank page and only on that server. In local host it runs
normaly.

So I did the following :
1) I checked if there is any blank space left - no
2) I checked if allowed functions work - they do
3) When I put smth in before filter and do var_dump it prints it.
4) I tried to print user from session of from auth component , I get
null - although in other controllers it works ok
5) This all happens regardless if I am loged in or out
6) I do not get redirected when the function is allowed for normal
users, I only get the blank page , i checked to surce of the page,
nothing, just html and body tags empty again
7) when i make auth->allow('*') everything runs ok. So only the
functions which are not allowed.

Since I wasted a whole day on this, I am going to rename the
controller and try again because all others are working fine, and in
local host even pages work fine. I suppose that since I had to change
htaccess files, auth component bugs, but I cant guess what.

I will post update about this, however if someone had a similar
situation and solved it please help.

I guess somehow I got different sessions for these controllers but I
have no idea how or why... 0.O

ty in advance

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php