symfony
symfony forum
Home » development » Feature requests » secure.yaml ... i dont get it....
secure.yaml ... i dont get it.... [message #29233] Tue, 12 June 2007 23:00 Go to previous message
Hannes  is currently offline Hannes
Messages: 1
Registered: March 2007
Location: Berlin
Junior Member
i just started with symfony... and i really like it... Smile

i now wanted to set some security settings via. security.yml, but unluckily it didnt worked the way i though it should...

i just created a 'security.yml' in the 'apps/myapp/modules/mymodule/config/' Folder with (and nothing else) :

executeTest:
is_secure: on
credentials: admin

Test:
is_secure: on
credentials: admin

test:
is_secure: on
credentials: admin

I added that 3 Things couze test didnt worked... so here is my First question, if i have something like this:

actions.class.php:

class mymoduleActions extends sfActions
{
public function executeTest()
{
$this->temp = "if you can read me, it didnt worked out.";
}
}

so should the entry in the 'security.yml' be Test, or test? Well at least one of that 3 Ways should work, but if i try to open it myserver.de/mymodule/test

i can read the Text everytime ... and dindt get something like "permission denied" , by the way, i didnt added any Credentials and setAuthenticated(true) to the user, so what did i did wrong? Sad

And there are 2 Paths where i can add my security.yml , if i have Entryd in booth, wich one will be used for an action?

'apps/myapp/modules/mymodule/config/'
'apps/myapp/config/'

Thank you and sorry for being dump... Wink

Read Message
Read Message
Previous Topic:Input_date_tag enhancement
Next Topic:extracting string to translate into files
Goto Forum:

  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software