# |
Aug 9th 2008, 07:52 |
cl0s_ |
yes true |
# |
Aug 9th 2008, 07:52 |
lqdice__ |
otherwise they can go page1.. some other page.. page2 and it still works |
# |
Aug 9th 2008, 07:51 |
lqdice__ |
but to guarantee they are coming from page1 you also need to unset the key if they go anywhere else |
# |
Aug 9th 2008, 07:51 |
cl0s_ |
page1 - set the session... page2- check for the session if not there redirect to page 1 else execute code, delete the session.. |
# |
Aug 9th 2008, 07:51 |
lqdice__ |
there is very little you can do to guarantee that one page was sent from another.. what are you trying to do exactly? |
# |
Aug 9th 2008, 07:49 |
cl0s_ |
yea i think a session would work best there.. but again thats not gauranteed.. |
# |
Aug 9th 2008, 07:49 |
lqdice__ |
its not guaranteed.. its sent by the user.. they can fake it and some browsers dont require sending it |
# |
Aug 9th 2008, 07:48 |
lqdice__ |
refererr should not be used like that |
# |
Aug 9th 2008, 07:48 |
NetersLandreau |
TheBig: check the referrer and only allow certain ones? |
# |
Aug 9th 2008, 07:47 |
lqdice__ |
TheBig: its hard to guarantee that |
# |
Aug 9th 2008, 07:47 |
TheBig |
btw, can I restrict the access to a page only if reached by an other page? |
# |
Aug 9th 2008, 07:47 |
lqdice__ |
good morning :) |
# |
Aug 9th 2008, 07:46 |
TheBig |
zeen. I was in doubt what I was able to use session only when logged, but simply I was storing empty data... :( me idiot :) |
# |
Aug 9th 2008, 07:26 |
zeen |
punish me if i'm doing bad :) |
# |
Aug 9th 2008, 07:25 |
zeen |
should be in there about sessions |
# |
Aug 9th 2008, 07:23 |
TheBig |
like writing them in sessios, for example... |
# |
Aug 9th 2008, 07:23 |
TheBig |
not using post or get |
# |
Aug 9th 2008, 07:22 |
TheBig |
how can I pass arguments form a page to another? |
# |
Aug 9th 2008, 06:48 |
zeen |
guess i can just add something to libs |
# |
Aug 9th 2008, 06:42 |
zeen |
without screwing around with the originals |
# |
Aug 9th 2008, 06:42 |
zeen |
is it possible i can code my own cake bake scripts? |
# |
Aug 9th 2008, 06:41 |
golak |
thanks Mickey689 |
# |
Aug 9th 2008, 06:41 |
golak |
got it |
# |
Aug 9th 2008, 06:41 |
golak |
should i set it in the controller or inside the model |
# |
Aug 9th 2008, 06:37 |
Mickey689 |
golak: you can set it beforehand, $this->Model->recursive = -1 for example |
# |
Aug 9th 2008, 06:35 |
golak |
How can i specify the recursive value for Model->findby<fieldname>() ??? |
# |
Aug 9th 2008, 06:28 |
Mickey689 |
thanks :) |
# |
Aug 9th 2008, 06:28 |
jan_cr |
Is there any Translate behavior tutorial on the internet? There is empty section in the book covering this topic and I am unable to google anything |
# |
Aug 9th 2008, 06:28 |
skua |
try |
# |
Aug 9th 2008, 06:28 |
skua |
it will show a debug to 0 |
# |
Aug 9th 2008, 06:28 |
skua |
then when it arrive to your specific action |
# |
Aug 9th 2008, 06:28 |
skua |
it's will set debug to 2 |
# |
Aug 9th 2008, 06:27 |
skua |
no cause cakephp read your core.php |
# |
Aug 9th 2008, 06:27 |
Mickey689 |
skua, thanks, but will it affect the whole site though? |
# |
Aug 9th 2008, 06:27 |
Mickey689 |
skua, thanks, but will it affect the whole site after that statement? |
# |
Aug 9th 2008, 06:26 |
skua |
in your foo action for example |
# |
Aug 9th 2008, 06:26 |
skua |
where you need the debug to 0 :) |
# |
Aug 9th 2008, 06:26 |
skua |
Configure::write('debug', 0); |
# |
Aug 9th 2008, 06:26 |
Mickey689 |
anyone knows how to do this? |
# |
Aug 9th 2008, 06:25 |
Mickey689 |
let i have my whole site debug mode set to 2 but..for some reason, i need to set the debug page on foo.ctp to be 0 |
# |
Aug 9th 2008, 06:25 |
Mickey689 |
anyone knows how to set the debug mode on a particular page? |