[symfony-users] Re: yaml and mvc
But we can also configure Symfony using YAML and include javascript etc. - so model rather not. I think I will create special section for YAML - section with name 'Configuration'. Good idea ? On 28 Lis, 16:23, gato chlr wrote: > In symfony, it is a tool that help us to generate our model classes, so, if > it is needed , i put YAML inside the model section. In the model section you > can explain in the apendix a bit about YAML and then explain the purpose of > its use. Of course, don't forget that there is another ways to define you > model in with Symfony. > > 2009/11/28 Lee Bolding > > > > > YAML is a representation of a simple data structure used mostly for > > configuration purposes. I wouldn't class it as part of MVC at all - the same > > as I wouldn't XML or JSON. > > > However, as it's a representation of data, the closest fit would be a model > > > On 28 Nov 2009, at 09:14, mini_alexander wrote: > > > > I must write something about YAML in Symfony. To which group should I > > > classify YAML: model, view or controller ? I think about view or > > > controller or maybe both ? > > > > -- > > > > You received this message because you are subscribed to the Google Groups > > "symfony users" group. > > > To post to this group, send email to symfony-us...@googlegroups.com. > > > To unsubscribe from this group, send email to > > symfony-users+unsubscr...@googlegroups.com > legroups.com> > > . > > > For more options, visit this group at > >http://groups.google.com/group/symfony-users?hl=en. > > > -- > > > You received this message because you are subscribed to the Google Groups > > "symfony users" group. > > To post to this group, send email to symfony-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > symfony-users+unsubscr...@googlegroups.com > legroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] yaml and mvc
I must write something about YAML in Symfony. To which group should I classify YAML: model, view or controller ? I think about view or controller or maybe both ? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: loading old schema.yml with not existing table
I make that and then everything is ok but I thought that there is more comfortable way - maybe some command which I could write in console xD On 19 Paź, 16:19, Gareth McCumskey wrote: > So go to your models folder and delete them. If you don't nothing bad > happens, those files just wont get used is all. > > > > On Mon, Oct 19, 2009 at 3:57 PM, mini_alexander wrote: > > > Yes but Symfony doesn't delete old models. > > > On 19 Paź, 15:12, Gareth McCumskey wrote: > > > Did you remember to clear cache after altering your schema.yml? > > > > On Mon, Oct 19, 2009 at 10:32 AM, mini_alexander > >wrote: > > > > > In old schema.yml I had some table, then I deleted this table from > > > > schema.yml but this table is still creating when I write in console: > > > > php symfony doctrine:build-all-reload > > > > > I must delete from /lib/filter, /lib/form and /lib/model all files > > > > which have got in name, name this table and then after: > > > > php symfony doctrine:build-all-reload > > > > > everything is ok - I have in database tables from new schema.yml > > > > without this table, but it isn't comfortable - is other way ? > > > > -- > > > Gareth McCumskeyhttp://garethmccumskey.blogspot.com > > > twitter: @garethmcc > > -- > Gareth McCumskeyhttp://garethmccumskey.blogspot.com > twitter: @garethmcc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: loading old schema.yml with not existing table
Yes but Symfony doesn't delete old models. On 19 Paź, 15:12, Gareth McCumskey wrote: > Did you remember to clear cache after altering your schema.yml? > > On Mon, Oct 19, 2009 at 10:32 AM, mini_alexander wrote: > > > > > In old schema.yml I had some table, then I deleted this table from > > schema.yml but this table is still creating when I write in console: > > php symfony doctrine:build-all-reload > > > I must delete from /lib/filter, /lib/form and /lib/model all files > > which have got in name, name this table and then after: > > php symfony doctrine:build-all-reload > > > everything is ok - I have in database tables from new schema.yml > > without this table, but it isn't comfortable - is other way ? > > -- > Gareth McCumskeyhttp://garethmccumskey.blogspot.com > twitter: @garethmcc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] loading old schema.yml with not existing table
In old schema.yml I had some table, then I deleted this table from schema.yml but this table is still creating when I write in console: php symfony doctrine:build-all-reload I must delete from /lib/filter, /lib/form and /lib/model all files which have got in name, name this table and then after: php symfony doctrine:build-all-reload everything is ok - I have in database tables from new schema.yml without this table, but it isn't comfortable - is other way ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Doctrine - datetime - default value
Even if I create field 'data_photo' nullable, after insert row - this row has got null value in field 'data_photo' in database. Doctrine_Expression('NOW()') doesn't work :( On 19 Paź, 00:42, Eno wrote: > On Sun, 18 Oct 2009, mini_alexander wrote: > > I make something like that: > > > $record = new Photo(); > > $record->data_photo = new Doctrine_Expression('NOW()'); > > $record->save(); > > > And I have error: > > > Validation failed in class Photo > > 1 field had validation error: > > * 1 validator failed on data_photo (notnull) > > Looks like you have a field that cannot be null. > > -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Doctrine - datetime - default value
I make something like that: $record = new Photo(); $record->data_photo = new Doctrine_Expression('NOW()'); $record->save(); And I have error: Validation failed in class Photo 1 field had validation error: * 1 validator failed on data_photo (notnull) why ?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: how can I show html as html ?
thx wissl - it works: $raw_person = $sf_data->getRaw('person'); echo $raw_person['description']; On 18 Paź, 16:23, wissl wrote: > what class is the instance $person of? for doctrine somethine like > this should work: > > echo $person->getRawValue()->description; > > if it is a simple array you could do something like this: > > $raw_person = $sf_data->getRaw('person'); > echo $raw_person['description']; > > Best way is to var_dump the object (in this case $person) and then > look at the class of sfOutputEscaper instance > > On 18 Okt., 16:13, mini_alexander wrote: > > > $sf_data->getRaw("person[description]"); > > also doesn't work - strange... > > > Do You use symfony 1.2.9 ?? > > > On 18 Paź, 15:41, Gábor Fási wrote: > > > > Just a hinch: have you tried `$sf_data->getRaw("person[description]");` ? > > > Also, you may try to var_dump $sf_data, might give you some more info > > > about accessing the variables, if my hinch doesn't work out. > > > Never used getRaw(), I alway echo data from propel, and use something > > > like `$object->getBody(ESC_RAW);` > > > > On Sun, Oct 18, 2009 at 14:48, mini_alexander wrote: > > > > > I have tried: > > > > echo $sf_data->getRaw('description'); > > > > and > > > > echo $sf_data->getRaw($person['description']); > > > > > and still the same error - maybe this is some bug in symfony 1.2.9 ? > > > > > On 18 Paź, 14:04, Tom Boutell wrote: > > > >> Mini, Gabor used "test" as an example, use your field name > > > >> (description). > > > > >> As Mini pointed out you need to filter the content to remove > > > >> JavaScript, XSS attacks, bad CSS that trashes the layout of the page, > > > >> etc. (unless the only person entering it is trusted, and maybe even > > > >> then to cut down on tedious support calls). > > > > >> For that purpose, check out pkToolkitPlugin and the pkHtml::simplify() > > > >> method, which is designed expressly for the purpose of reducing > > > >> user-entered HTML to something sane and safe. > > > > >> -- > > > >> Tom Boutell > > > >> P'unk Avenue215 755 1330 > > > >> punkave.com > > > >> window.punkave.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: how can I show html as html ?
$sf_data->getRaw("person[description]"); also doesn't work - strange... Do You use symfony 1.2.9 ?? On 18 Paź, 15:41, Gábor Fási wrote: > Just a hinch: have you tried `$sf_data->getRaw("person[description]");` ? > Also, you may try to var_dump $sf_data, might give you some more info > about accessing the variables, if my hinch doesn't work out. > Never used getRaw(), I alway echo data from propel, and use something > like `$object->getBody(ESC_RAW);` > > On Sun, Oct 18, 2009 at 14:48, mini_alexander wrote: > > > I have tried: > > echo $sf_data->getRaw('description'); > > and > > echo $sf_data->getRaw($person['description']); > > > and still the same error - maybe this is some bug in symfony 1.2.9 ? > > > On 18 Paź, 14:04, Tom Boutell wrote: > >> Mini, Gabor used "test" as an example, use your field name (description). > > >> As Mini pointed out you need to filter the content to remove > >> JavaScript, XSS attacks, bad CSS that trashes the layout of the page, > >> etc. (unless the only person entering it is trusted, and maybe even > >> then to cut down on tedious support calls). > > >> For that purpose, check out pkToolkitPlugin and the pkHtml::simplify() > >> method, which is designed expressly for the purpose of reducing > >> user-entered HTML to something sane and safe. > > >> -- > >> Tom Boutell > >> P'unk Avenue215 755 1330 > >> punkave.com > >> window.punkave.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: how can I show html as html ?
I have tried: echo $sf_data->getRaw('description'); and echo $sf_data->getRaw($person['description']); and still the same error - maybe this is some bug in symfony 1.2.9 ? On 18 Paź, 14:04, Tom Boutell wrote: > Mini, Gabor used "test" as an example, use your field name (description). > > As Mini pointed out you need to filter the content to remove > JavaScript, XSS attacks, bad CSS that trashes the layout of the page, > etc. (unless the only person entering it is trusted, and maybe even > then to cut down on tedious support calls). > > For that purpose, check out pkToolkitPlugin and the pkHtml::simplify() > method, which is designed expressly for the purpose of reducing > user-entered HTML to something sane and safe. > > -- > Tom Boutell > P'unk Avenue215 755 1330 > punkave.com > window.punkave.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: how can I show html as html ?
Are You sure ? After wrote: echo $sf_data->getRaw('test'); I have an error: Notice: Undefined index: test in C:\Program Files\WebServ\httpd \symfony-1.2.9\lib\view\escaper \sfOutputEscaperArrayDecorator.class.php on line 162 On 18 Paź, 11:12, Gábor Fási wrote: > http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chap... > > echo $sf_data->getRaw('test'); > > Make sure you cleanse the content to avoid html injection and xss. > > On Sun, Oct 18, 2009 at 09:42, mini_alexander wrote: > > > I use rich text editor - tinyMCE to format text but after used it, it > > shows html in next page in view as a text - how can I show html as a > > html ? Now I have in view: > > > echo $object['description']; > > > Should I use function html_entity_decode() ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] how can I show html as html ?
I use rich text editor - tinyMCE to format text but after used it, it shows html in next page in view as a text - how can I show html as a html ? Now I have in view: echo $object['description']; Should I use function html_entity_decode() ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: symfony freeze - bug or not ?
So I have 2. errors, I think I have found a solution - good command should look: symfony freeze "C:\Program Files\WebServ\httpd\symfony-1.2.9 \data" Then 1 error less but I still have error: The execution of task "plugin:publish-assets" failed. - Too many arguments ("Files\WebServ\httpd\symfony_project\lib/ symfony" given). symfony project:freeze symfony_data_dir Because in Windows we have space between 'Program' and 'Files'. I can move 'symfony_project' to C:\ and then I don't have this error. But it isn't comfortabe :(( Maybe is better solutio ?? And why I should freeze project when it is ready ?? I can't earlier ?? On 11 Paź, 11:53, mini_alexander wrote: > Until today I have been downloading and using symfony sandbox and > everything was ok. Now I would like to use symfony source. > I have symfony source here: > C:\Program Files\WebServ\httpd\symfony-1.2.9 > And symfony project here: > C:\Program Files\WebServ\httpd\symfony_project > > I would like to use: symfony freeze but when I write: > symfony freeze "C:\Program Files\WebServ\httpd\symfony_project" > I have error: > > Warning: rename(C:\Program Files\WebServ\httpd\symfony_project\data/ > symfony/web/ > sf,C:\Program Files\WebServ\httpd\symfony_project\web/sf) > [http://www.php.net/ma > nual/pl/function.rename]: No such file or directory in C:\Program Files > \WebServ\ > httpd\symfony-1.2.9\lib\task\sfFilesystem.class.php on line 189 > > The execution of task "plugin:publish-assets" failed. > > - Too many arguments ("Files\WebServ\httpd\symfony_project\lib/ > symfony" given) > . > > symfony project:freeze symfony_data_dir > > Many other people have the same problem - for > example:http://forum.symfony-project.org/index.php/m/74078/http://forum.symfony-project.org/index.php/m/65408/http://www.bogdanmatu.com/?p=58 > > Here is something important:http://trac.symfony-project.org/ticket/5223 > But I don't understand - what path in my case I should use with > symfony freeze ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] symfony freeze - bug or not ?
Until today I have been downloading and using symfony sandbox and everything was ok. Now I would like to use symfony source. I have symfony source here: C:\Program Files\WebServ\httpd\symfony-1.2.9 And symfony project here: C:\Program Files\WebServ\httpd\symfony_project I would like to use: symfony freeze but when I write: symfony freeze "C:\Program Files\WebServ\httpd\symfony_project" I have error: Warning: rename(C:\Program Files\WebServ\httpd\symfony_project\data/ symfony/web/ sf,C:\Program Files\WebServ\httpd\symfony_project\web/sf) [http:// www.php.net/ma nual/pl/function.rename]: No such file or directory in C:\Program Files \WebServ\ httpd\symfony-1.2.9\lib\task\sfFilesystem.class.php on line 189 The execution of task "plugin:publish-assets" failed. - Too many arguments ("Files\WebServ\httpd\symfony_project\lib/ symfony" given) . symfony project:freeze symfony_data_dir Many other people have the same problem - for example: http://forum.symfony-project.org/index.php/m/74078/ http://forum.symfony-project.org/index.php/m/65408/ http://www.bogdanmatu.com/?p=58 Here is something important: http://trac.symfony-project.org/ticket/5223 But I don't understand - what path in my case I should use with symfony freeze ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: I can't install symfony
thx but I have error during symfony freeze - I will create other subject. On 11 Paź, 11:04, Gábor Fási wrote: > Download the symfony code again (since you've deleted it), and > uncompress it into your project's lib/vendor/symfony folder,then > modify your config/ProjectConfiguration.class.php to have the > following require_once: > > require_once dirname(__FILE__) . > '/../lib/vendor/symfony/lib/autoloa/sfCoreAutoload.class.php'; > > after this, do a symfony cc, and you should be ready to go. > > On Sun, Oct 11, 2009 at 09:47, mini_alexander wrote: > > > ok - css and images don't work only with default symfony source > > website. When I create my own default website - css and images work. > > I have one more question - when I deleting "C:\Program Files\WebServ > > \httpd\symfony-1.2.9" my project doesn't work - I have an error: > > > Warning: require_once(C:\Program Files\WebServ\httpd\symfony-1.2.9\lib/ > > autoload/sfCoreAutoload.class.php) [function.require-once]: failed to > > open stream: No such file or directory in C:\Program Files\WebServ > > \httpd\symfony_project\config\ProjectConfiguration.class.php on line 3 > > > Fatal error: require_once() [function.require]: Failed opening > > required 'C:\Program Files\WebServ\httpd\symfony-1.2.9\lib/autoload/ > > sfCoreAutoload.class.php' (include_path='.;C:\Program Files\WebServ\php > > \pear') in C:\Program Files\WebServ\httpd\symfony_project\config > > \ProjectConfiguration.class.php on line 3 > > > Why ? I would like to start create a website but I can't - why I need > > "C:\Program Files\WebServ\httpd\symfony-1.2.9" ?? My project is in "C: > > \Program Files\WebServ\httpd\symfony_project", what is more I had in > > symfony sandbox in catalog "\lib" folder "symfony" with many folders > > and now I don't have folder "symfony" in "\lib" - what is going on ? > > > On 10 Paź, 22:54, Gábor Fási wrote: > >> In the sandbox the contents of the /sf folder are copied in web/sf, > >> just copy it there and it'll work. > > >> On Sat, Oct 10, 2009 at 21:55, mini_alexander wrote: > > >> > But this alias is only for showing default symfony site with css and > >> > images ? I didn't use alias in symfony sandbox. So this alias isn't > >> > obligatory ? When I change default symfony website everything will be > >> > ok without this alias ? > > >> > On 10 Paź, 21:37, david wrote: > >> >> When switching like this - it's a good idea to go back to basics and > >> >> Jobeet:http://www.symfony-project.org/jobeet/1_2/Doctrine/en/01#chapter_01_w... > > >> >> You need to configure the sf alias > > >> >> On Sat, 10 Oct 2009 21:28:48 +0200, mini_alexander > >> >> wrote: > > >> >> > On this site:http://www.symfony-project.org/installation > >> >> > we can download symfony sandbox and symfony source. > > >> >> > Until today I have been downloading and using symfony sandbox and > >> >> > everything was ok. Now I would like to use symfony source. I > >> >> > downloaded symfony source: symfony-1.2.9.zip, unzipped and copied it > >> >> > to C:\Program Files\WebServ\httpd. Next I created in C:\Program Files > >> >> > \WebServ\httpd folder 'symfony_project' and wrote in command line: > > >> >> > cd "C:\Program Files\WebServ\httpd\symfony_project" > > >> >> > php "C:\Program Files\WebServ\httpd\symfony-1.2.9\data\bin\symfony" > >> >> > generate:project jobeet > > >> >> > php "C:\Program Files\WebServ\httpd\symfony-1.2.9\data\bin\symfony" > >> >> > generate:app --escaping-strategy=on --csrf-secret=UniqueSecret > >> >> > frontend > > >> >> > I copied file "symfony.bat" from "C:\Program Files\WebServ\httpd > >> >> > \symfony-1.2.9\data\bin" to "C:\Program Files\WebServ\httpd > >> >> > \symfony_project". I have created virtual host. But when I write in > >> >> > browser:http://localhost/Isee: > > >> >> > Symfony Project Created > >> >> > Congratulations! You have successfully created your symfony project. > > >> >> > Project setup successful > >> >> > This project uses the symfony libraries. If you see no image in > >> >>
[symfony-users] Re: I can't install symfony
ok - css and images don't work only with default symfony source website. When I create my own default website - css and images work. I have one more question - when I deleting "C:\Program Files\WebServ \httpd\symfony-1.2.9" my project doesn't work - I have an error: Warning: require_once(C:\Program Files\WebServ\httpd\symfony-1.2.9\lib/ autoload/sfCoreAutoload.class.php) [function.require-once]: failed to open stream: No such file or directory in C:\Program Files\WebServ \httpd\symfony_project\config\ProjectConfiguration.class.php on line 3 Fatal error: require_once() [function.require]: Failed opening required 'C:\Program Files\WebServ\httpd\symfony-1.2.9\lib/autoload/ sfCoreAutoload.class.php' (include_path='.;C:\Program Files\WebServ\php \pear') in C:\Program Files\WebServ\httpd\symfony_project\config \ProjectConfiguration.class.php on line 3 Why ? I would like to start create a website but I can't - why I need "C:\Program Files\WebServ\httpd\symfony-1.2.9" ?? My project is in "C: \Program Files\WebServ\httpd\symfony_project", what is more I had in symfony sandbox in catalog "\lib" folder "symfony" with many folders and now I don't have folder "symfony" in "\lib" - what is going on ? On 10 Paź, 22:54, Gábor Fási wrote: > In the sandbox the contents of the /sf folder are copied in web/sf, > just copy it there and it'll work. > > On Sat, Oct 10, 2009 at 21:55, mini_alexander wrote: > > > But this alias is only for showing default symfony site with css and > > images ? I didn't use alias in symfony sandbox. So this alias isn't > > obligatory ? When I change default symfony website everything will be > > ok without this alias ? > > > On 10 Paź, 21:37, david wrote: > >> When switching like this - it's a good idea to go back to basics and > >> Jobeet:http://www.symfony-project.org/jobeet/1_2/Doctrine/en/01#chapter_01_w... > > >> You need to configure the sf alias > > >> On Sat, 10 Oct 2009 21:28:48 +0200, mini_alexander > >> wrote: > > >> > On this site:http://www.symfony-project.org/installation > >> > we can download symfony sandbox and symfony source. > > >> > Until today I have been downloading and using symfony sandbox and > >> > everything was ok. Now I would like to use symfony source. I > >> > downloaded symfony source: symfony-1.2.9.zip, unzipped and copied it > >> > to C:\Program Files\WebServ\httpd. Next I created in C:\Program Files > >> > \WebServ\httpd folder 'symfony_project' and wrote in command line: > > >> > cd "C:\Program Files\WebServ\httpd\symfony_project" > > >> > php "C:\Program Files\WebServ\httpd\symfony-1.2.9\data\bin\symfony" > >> > generate:project jobeet > > >> > php "C:\Program Files\WebServ\httpd\symfony-1.2.9\data\bin\symfony" > >> > generate:app --escaping-strategy=on --csrf-secret=UniqueSecret > >> > frontend > > >> > I copied file "symfony.bat" from "C:\Program Files\WebServ\httpd > >> > \symfony-1.2.9\data\bin" to "C:\Program Files\WebServ\httpd > >> > \symfony_project". I have created virtual host. But when I write in > >> > browser:http://localhost/Isee: > > >> > Symfony Project Created > >> > Congratulations! You have successfully created your symfony project. > > >> > Project setup successful > >> > This project uses the symfony libraries. If you see no image in > >> > this page, you may need to configure your web server so that it gains > >> > access to the symfony_data/web/sf/ directory. > >> > This is a temporary page > >> > This page is part of the symfony default module. It will disappear > >> > as soon as you define a homepage route in your routing.yml. > >> > What's next > > >> > * Create your data model > >> > * Customize the layout of the generated templates > >> > * Learn more from the online documentation > > >> > Without images etc. - only text - why ? When I used symfony sandbox > >> > everything was ok, what is more catalog "C:\Program Files\WebServ\httpd > >> > \symfony_project\lib" is EMPTY - why ? > > >> -- > >> Using Opera's revolutionary e-mail client:http://www.opera.com/mail/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: I can't install symfony
But this alias is only for showing default symfony site with css and images ? I didn't use alias in symfony sandbox. So this alias isn't obligatory ? When I change default symfony website everything will be ok without this alias ? On 10 Paź, 21:37, david wrote: > When switching like this - it's a good idea to go back to basics and > Jobeet:http://www.symfony-project.org/jobeet/1_2/Doctrine/en/01#chapter_01_w... > > You need to configure the sf alias > > On Sat, 10 Oct 2009 21:28:48 +0200, mini_alexander > wrote: > > > > > > > On this site:http://www.symfony-project.org/installation > > we can download symfony sandbox and symfony source. > > > Until today I have been downloading and using symfony sandbox and > > everything was ok. Now I would like to use symfony source. I > > downloaded symfony source: symfony-1.2.9.zip, unzipped and copied it > > to C:\Program Files\WebServ\httpd. Next I created in C:\Program Files > > \WebServ\httpd folder 'symfony_project' and wrote in command line: > > > cd "C:\Program Files\WebServ\httpd\symfony_project" > > > php "C:\Program Files\WebServ\httpd\symfony-1.2.9\data\bin\symfony" > > generate:project jobeet > > > php "C:\Program Files\WebServ\httpd\symfony-1.2.9\data\bin\symfony" > > generate:app --escaping-strategy=on --csrf-secret=UniqueSecret > > frontend > > > I copied file "symfony.bat" from "C:\Program Files\WebServ\httpd > > \symfony-1.2.9\data\bin" to "C:\Program Files\WebServ\httpd > > \symfony_project". I have created virtual host. But when I write in > > browser:http://localhost/I see: > > > Symfony Project Created > > Congratulations! You have successfully created your symfony project. > > > Project setup successful > > This project uses the symfony libraries. If you see no image in > > this page, you may need to configure your web server so that it gains > > access to the symfony_data/web/sf/ directory. > > This is a temporary page > > This page is part of the symfony default module. It will disappear > > as soon as you define a homepage route in your routing.yml. > > What's next > > > * Create your data model > > * Customize the layout of the generated templates > > * Learn more from the online documentation > > > Without images etc. - only text - why ? When I used symfony sandbox > > everything was ok, what is more catalog "C:\Program Files\WebServ\httpd > > \symfony_project\lib" is EMPTY - why ? > > -- > Using Opera's revolutionary e-mail client:http://www.opera.com/mail/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] I can't install symfony
On this site: http://www.symfony-project.org/installation we can download symfony sandbox and symfony source. Until today I have been downloading and using symfony sandbox and everything was ok. Now I would like to use symfony source. I downloaded symfony source: symfony-1.2.9.zip, unzipped and copied it to C:\Program Files\WebServ\httpd. Next I created in C:\Program Files \WebServ\httpd folder 'symfony_project' and wrote in command line: cd "C:\Program Files\WebServ\httpd\symfony_project" php "C:\Program Files\WebServ\httpd\symfony-1.2.9\data\bin\symfony" generate:project jobeet php "C:\Program Files\WebServ\httpd\symfony-1.2.9\data\bin\symfony" generate:app --escaping-strategy=on --csrf-secret=UniqueSecret frontend I copied file "symfony.bat" from "C:\Program Files\WebServ\httpd \symfony-1.2.9\data\bin" to "C:\Program Files\WebServ\httpd \symfony_project". I have created virtual host. But when I write in browser: http://localhost/ I see: Symfony Project Created Congratulations! You have successfully created your symfony project. Project setup successful This project uses the symfony libraries. If you see no image in this page, you may need to configure your web server so that it gains access to the symfony_data/web/sf/ directory. This is a temporary page This page is part of the symfony default module. It will disappear as soon as you define a homepage route in your routing.yml. What's next * Create your data model * Customize the layout of the generated templates * Learn more from the online documentation Without images etc. - only text - why ? When I used symfony sandbox everything was ok, what is more catalog "C:\Program Files\WebServ\httpd \symfony_project\lib" is EMPTY - why ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: url's in backend application
thx :) On 20 Wrz, 08:38, Jeremy Thomerson wrote: > Because you're not using url_for. You should write your link like: > > some text > > That will automatically handle the adding of the correct path for you. > You're currently writing a relative link to a child folder named profile > when you are already thought to be in a folder named profile. > > Jeremy Thomerson > > On Fri, Sep 18, 2009 at 12:12 PM, mini_alexander wrote: > > > > > Sid - yes you good understand me. > > url_for("users/index") in forms works. > > But in links I also don't need to add '/backend.php' at the > > beginning ? > > > So why when I have url in browser: > >http://localhost/backend.php/profile/index > > And click on the link: > > I see in url of browser second time word 'profile': > >http://localhost/backend.php/profile/profile/change_avatar > > It should be:http://localhost/backend.php/profile/change_avatar > > > ?? Why ?? > > > On 18 Wrz, 18:49, Sid Ferreira wrote: > > > You mean that you want to know if you need write "backend_dev.php" in > > your > > > links, is it?Well, the answer is NO. Symfony it self does that for you. > > > > On Fri, Sep 18, 2009 at 13:31, mini_alexander > > wrote: > > > > > I don't understand. My nation language isn't English. what did you > > > > got ? > > > > > On 18 Wrz, 17:51, Sid Ferreira wrote: > > > > > Ok, I think I got it. > > > > > See, backend will add the file name for ya > > > > > > On Fri, Sep 18, 2009 at 12:48, mini_alexander > > > > wrote: > > > > > > > Rather not ;] I am new and I simply would like to know it is normal > > > > > > that I must add to each link in backend application at the > > beginning: > > > > > > '/backend.php' ? I think yes because frontend is default > > application, > > > > > > not backend but maybe I am wrong ? > > > > > > > On 18 Wrz, 17:39, Sid Ferreira wrote: > > > > >http://www.symfony-project.org/cookbook/1_2/en/cross-application-links > > > > > > > > Is this what you want? > > > > > > > > On Sep 18, 12:02 pm, mini_alexander wrote: > > > > > > > > > As I understand in backend application in files I must > > everywhere > > > > in > > > > > > > > each link > > > > > > > > write at the beginning /backend.php - for example: > > > > > > > > home > > > > > > > > or > > > > > > > > > > > > > > > > > yes ??? > > > > > > > > > Because generated links by symfony look for example: > > > > > > > > url_for('/users/index') > > > > > > > > > so I must everything change by myself adding /backend.php > > ?? > > > > > > > > yes or not ? xD I would like to know because maybe I am loosing > > > > time > > > > > > > > for that ? or maybe not ? :) > > > > > > -- > > > > > Sidney G B Ferreira > > > > > Desenvolvedor Web > > > > -- > > > Sidney G B Ferreira > > > Desenvolvedor Web --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony has definitely become too complicated framework
I am not yet enought good in Symfony to update plugins :) I think it should be list of about 20 the most important plugins in symfony and they should be updated in each new version of Symfony. On 19 Wrz, 11:45, Alexandru-Emil Lupu wrote: > Well the symfony plugins part is the maintainer / creator job to keep it > updated. But as there is no motivational thing involved (money or need to > use it in sf 1.2 or something else that don't cross my mind atm ), i do not > think the maintainer will do it. Instead, you might create an account on SF > website, and become contributor to desired plugin, and create a sf1.2 > compatible version. This way, you'll know that there is a SF1.2 plugin > available. > Instead of > sfShoppingCartPlugin<http://www.symfony-project.org/plugins/sfShoppingCartPlugin>, > you might wanna check sfShop project (google it). It has a "shoping cart" > plugin and is written in 1.2 (if i recall right). > > Alecs > > On Sat, Sep 19, 2009 at 11:07 AM, mini_alexander wrote: > > > > > > > Symfony has the best documentation which I have ever seen. Jobeet > > tutorial is very long but in this tutorial is almost everything - all > > important things. > > For me the worst thing in Symfony are plugins. Many good plugins are > > old - for example shopping cart: > >http://www.symfony-project.org/plugins/sfShoppingCartPlugin > > This shopping cart is for symfony 1.0 and we now have symfony 1.2 and > > soon 1.3. And there is many that plugins. I would like to see plugins > > in compatybile version with the newest version of symfony. > > > On 19 Wrz, 07:10, Lukas Kahwe Smith wrote: > > > On 19.09.2009, at 06:36, Jake Barnes wrote: > > > > > On Sep 18, 3:36 pm, Lukas Kahwe Smith wrote: > > > >> On 18.09.2009, at 21:27, bghost wrote: > > > > >>> I think that the attempt of putting the entire WEB form within the > > > >>> class > > > >>> only unnecessarily complicate such a simple thing such is form > > > >>> handling. > > > >>> That's just forcing WEB developers to learn how to make simple > > > >>> things > > > >>> on the complicated way. > > > > >> i think this is a valid criticism. there is a clear shift away from > > > >> having just some html/css/js guru do the templates back in symfony > > > >> 1.0 > > > >> towards requiring a symfony expert to also handle the templates, but > > > >> that person lacks the html/css/js guru knowhow. the pay off is > > > >> however > > > >> that a symfony expert can now do a lot more if he just sits down with > > > >> the html/css/js guru to create the required widgets in pair > > > >> programming. the quality of the site should also increase since reuse > > > >> is done more on the widget side of things but more importantly you > > > >> start to bring everything data related together in the models, so you > > > >> have a single definitive source. > > > > >> so what does it all mean? teach your symfony experts some more html/ > > > >> css/js, teach your html/css/js guru some symfony .. or better yet .. > > > >> facilitate paired programming .. and you should be off producing high > > > >> quality more maintainable sites in less time .. but the old workflow > > > >> of clear work separation isnt going to cut it anymore. then again, > > > >> you > > > >> can still keep the spirit of 1.0 in 1.2 i guess .. > > > > > You can still get the 1.0 spirit, though paired programming is not the > > > > way to do it. And yes, for some projects, it is very important that > > > > the designers have access to all of the HTML, including that in the > > > > forms. Some design lead projects suffer badly from the default forms > > > > setup in Symfony 1.2. > > > > err i was saying 1.2 projectscan benefit from paired programming while > > > 1.0 projects allow for a clear separation. though that is not to say > > > that paired programming even has its place there. > > > > > What's needed is a plugin that can auto-generate the CRUD forms in > > > > nearly pure HTML, with PHP commands only handling the values that > > > > appear in the inputs. That way, depending on the project, you could > > > > either work with the default forms generated by Symfony, or switch > > > > over to a system that is much more open for designe
[symfony-users] Re: Symfony has definitely become too complicated framework
Symfony has the best documentation which I have ever seen. Jobeet tutorial is very long but in this tutorial is almost everything - all important things. For me the worst thing in Symfony are plugins. Many good plugins are old - for example shopping cart: http://www.symfony-project.org/plugins/sfShoppingCartPlugin This shopping cart is for symfony 1.0 and we now have symfony 1.2 and soon 1.3. And there is many that plugins. I would like to see plugins in compatybile version with the newest version of symfony. On 19 Wrz, 07:10, Lukas Kahwe Smith wrote: > On 19.09.2009, at 06:36, Jake Barnes wrote: > > > > > > > On Sep 18, 3:36 pm, Lukas Kahwe Smith wrote: > >> On 18.09.2009, at 21:27, bghost wrote: > > >>> I think that the attempt of putting the entire WEB form within the > >>> class > >>> only unnecessarily complicate such a simple thing such is form > >>> handling. > >>> That's just forcing WEB developers to learn how to make simple > >>> things > >>> on the complicated way. > > >> i think this is a valid criticism. there is a clear shift away from > >> having just some html/css/js guru do the templates back in symfony > >> 1.0 > >> towards requiring a symfony expert to also handle the templates, but > >> that person lacks the html/css/js guru knowhow. the pay off is > >> however > >> that a symfony expert can now do a lot more if he just sits down with > >> the html/css/js guru to create the required widgets in pair > >> programming. the quality of the site should also increase since reuse > >> is done more on the widget side of things but more importantly you > >> start to bring everything data related together in the models, so you > >> have a single definitive source. > > >> so what does it all mean? teach your symfony experts some more html/ > >> css/js, teach your html/css/js guru some symfony .. or better yet .. > >> facilitate paired programming .. and you should be off producing high > >> quality more maintainable sites in less time .. but the old workflow > >> of clear work separation isnt going to cut it anymore. then again, > >> you > >> can still keep the spirit of 1.0 in 1.2 i guess .. > > > You can still get the 1.0 spirit, though paired programming is not the > > way to do it. And yes, for some projects, it is very important that > > the designers have access to all of the HTML, including that in the > > forms. Some design lead projects suffer badly from the default forms > > setup in Symfony 1.2. > > err i was saying 1.2 projectscan benefit from paired programming while > 1.0 projects allow for a clear separation. though that is not to say > that paired programming even has its place there. > > > What's needed is a plugin that can auto-generate the CRUD forms in > > nearly pure HTML, with PHP commands only handling the values that > > appear in the inputs. That way, depending on the project, you could > > either work with the default forms generated by Symfony, or switch > > over to a system that is much more open for designers. > > > If I get some time later this year, I hope to work on such a plugin. > > sure that could be a useful addition. maybe eith some magic comments > there could even be the possibility to update or at least alert of > inconsistencies. > > Regards, > Lukas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: url's in backend application
thx for advice :) On 19 Wrz, 08:45, Alexandru-Emil Lupu wrote: > I would recomend you to use link_to( ) way. You may need to change the > Dispatcher name (let's say from backend to admin), then the whole links must > be replaced ... instead, symfony will do it automatically > A. > > > > On Sat, Sep 19, 2009 at 9:39 AM, mini_alexander wrote: > > > And one more thing - thx all for help. :) > > > On 19 Wrz, 08:38, mini_alexander wrote: > > > Sorry for long time with no answer but I had to upload everything and > > > check - so now I know the answer. > > > In backend we should really use link_to(), then Symfony automatic > > > adds /backend.php at the beginning of the link: > > > link_to('Change avatar', 'profile/change_avatar') > > > Or we can create link yourselver then we must add at the beginning '/ > > > backend' by yourself: > > > Change avatar > > > > : > > > > On 18 Wrz, 19:36, Sid Ferreira wrote: > > > > > I think his backend is with 'no_script_name' on > > > > > On Fri, Sep 18, 2009 at 14:30, Eno wrote: > > > > > > On Fri, 18 Sep 2009, mini_alexander wrote: > > > > > > > Sid - yes you good understand me. > > > > > > url_for("users/index") in forms works. > > > > > > But in links I also don't need to add '/backend.php' at the > > > > > > beginning ? > > > > > > > So why when I have url in browser: > > > > >http://localhost/backend.php/profile/index > > > > > > And click on the link: > > > > > > I see in url of browser second time word 'profile': > > > > > >http://localhost/backend.php/profile/profile/change_avatar > > > > > > It should be:http://localhost/backend.php/profile/change_avatar > > > > > > > ?? Why ?? > > > > > > Remember you can't have more than one controller in a directory. > > Usually > > > > > index.php is your default application and your .htaccess rules > > redirect to > > > > > that controller by default. But mod-rewrite knows nothing about your > > > > > routing in your application so it can't selectively route to your > > backend > > > > > controller. > > > > > > You could of course, but your backend controller in its own folder > > with > > > > > its own .htaccess file - that might look better. > > > > > > -- > > > > > -- > > > > Sidney G B Ferreira > > > > Desenvolvedor Web > > -- > As programmers create bigger & better idiot proof programs, so the universe > creates bigger & better idiots! > I am on web: http://www.alecslupu.ro/ > I am on twitter:http://twitter.com/alecslupu > I am on linkedIn:http://www.linkedin.com/in/alecslupu > Tel: (+4)0748.543.798 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: url's in backend application
And one more thing - thx all for help. :) On 19 Wrz, 08:38, mini_alexander wrote: > Sorry for long time with no answer but I had to upload everything and > check - so now I know the answer. > In backend we should really use link_to(), then Symfony automatic > adds /backend.php at the beginning of the link: > link_to('Change avatar', 'profile/change_avatar') > Or we can create link yourselver then we must add at the beginning '/ > backend' by yourself: > Change avatar > > : > > On 18 Wrz, 19:36, Sid Ferreira wrote: > > > I think his backend is with 'no_script_name' on > > > On Fri, Sep 18, 2009 at 14:30, Eno wrote: > > > > On Fri, 18 Sep 2009, mini_alexander wrote: > > > > > Sid - yes you good understand me. > > > > url_for("users/index") in forms works. > > > > But in links I also don't need to add '/backend.php' at the > > > > beginning ? > > > > > So why when I have url in browser: > > >http://localhost/backend.php/profile/index > > > > And click on the link: > > > > I see in url of browser second time word 'profile': > > > >http://localhost/backend.php/profile/profile/change_avatar > > > > It should be:http://localhost/backend.php/profile/change_avatar > > > > > ?? Why ?? > > > > Remember you can't have more than one controller in a directory. Usually > > > index.php is your default application and your .htaccess rules redirect to > > > that controller by default. But mod-rewrite knows nothing about your > > > routing in your application so it can't selectively route to your backend > > > controller. > > > > You could of course, but your backend controller in its own folder with > > > its own .htaccess file - that might look better. > > > > -- > > > -- > > Sidney G B Ferreira > > Desenvolvedor Web --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: url's in backend application
Sorry for long time with no answer but I had to upload everything and check - so now I know the answer. In backend we should really use link_to(), then Symfony automatic adds /backend.php at the beginning of the link: link_to('Change avatar', 'profile/change_avatar') Or we can create link yourselver then we must add at the beginning '/ backend' by yourself: Change avatar : On 18 Wrz, 19:36, Sid Ferreira wrote: > I think his backend is with 'no_script_name' on > > > > On Fri, Sep 18, 2009 at 14:30, Eno wrote: > > > On Fri, 18 Sep 2009, mini_alexander wrote: > > > > Sid - yes you good understand me. > > > url_for("users/index") in forms works. > > > But in links I also don't need to add '/backend.php' at the > > > beginning ? > > > > So why when I have url in browser: > >http://localhost/backend.php/profile/index > > > And click on the link: > > > I see in url of browser second time word 'profile': > > >http://localhost/backend.php/profile/profile/change_avatar > > > It should be:http://localhost/backend.php/profile/change_avatar > > > > ?? Why ?? > > > Remember you can't have more than one controller in a directory. Usually > > index.php is your default application and your .htaccess rules redirect to > > that controller by default. But mod-rewrite knows nothing about your > > routing in your application so it can't selectively route to your backend > > controller. > > > You could of course, but your backend controller in its own folder with > > its own .htaccess file - that might look better. > > > -- > > -- > Sidney G B Ferreira > Desenvolvedor Web --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: url's in backend application
Sid - yes you good understand me. url_for("users/index") in forms works. But in links I also don't need to add '/backend.php' at the beginning ? So why when I have url in browser: http://localhost/backend.php/profile/index And click on the link: I see in url of browser second time word 'profile': http://localhost/backend.php/profile/profile/change_avatar It should be: http://localhost/backend.php/profile/change_avatar ?? Why ?? On 18 Wrz, 18:49, Sid Ferreira wrote: > You mean that you want to know if you need write "backend_dev.php" in your > links, is it?Well, the answer is NO. Symfony it self does that for you. > > > > On Fri, Sep 18, 2009 at 13:31, mini_alexander wrote: > > > I don't understand. My nation language isn't English. what did you > > got ? > > > On 18 Wrz, 17:51, Sid Ferreira wrote: > > > Ok, I think I got it. > > > See, backend will add the file name for ya > > > > On Fri, Sep 18, 2009 at 12:48, mini_alexander > > wrote: > > > > > Rather not ;] I am new and I simply would like to know it is normal > > > > that I must add to each link in backend application at the beginning: > > > > '/backend.php' ? I think yes because frontend is default application, > > > > not backend but maybe I am wrong ? > > > > > On 18 Wrz, 17:39, Sid Ferreira wrote: > > >http://www.symfony-project.org/cookbook/1_2/en/cross-application-links > > > > > > Is this what you want? > > > > > > On Sep 18, 12:02 pm, mini_alexander wrote: > > > > > > > As I understand in backend application in files I must everywhere > > in > > > > > > each link > > > > > > write at the beginning /backend.php - for example: > > > > > > home > > > > > > or > > > > > > > > > > > > > yes ??? > > > > > > > Because generated links by symfony look for example: > > > > > > url_for('/users/index') > > > > > > > so I must everything change by myself adding /backend.php ?? > > > > > > yes or not ? xD I would like to know because maybe I am loosing > > time > > > > > > for that ? or maybe not ? :) > > > > -- > > > Sidney G B Ferreira > > > Desenvolvedor Web > > -- > Sidney G B Ferreira > Desenvolvedor Web --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: url's in backend application
I don't understand. My nation language isn't English. what did you got ? On 18 Wrz, 17:51, Sid Ferreira wrote: > Ok, I think I got it. > See, backend will add the file name for ya > > > > On Fri, Sep 18, 2009 at 12:48, mini_alexander wrote: > > > Rather not ;] I am new and I simply would like to know it is normal > > that I must add to each link in backend application at the beginning: > > '/backend.php' ? I think yes because frontend is default application, > > not backend but maybe I am wrong ? > > > On 18 Wrz, 17:39, Sid Ferreira wrote: > > >http://www.symfony-project.org/cookbook/1_2/en/cross-application-links > > > > Is this what you want? > > > > On Sep 18, 12:02 pm, mini_alexander wrote: > > > > > As I understand in backend application in files I must everywhere in > > > > each link > > > > write at the beginning /backend.php - for example: > > > > home > > > > or > > > > > > > > > yes ??? > > > > > Because generated links by symfony look for example: > > > > url_for('/users/index') > > > > > so I must everything change by myself adding /backend.php ?? > > > > yes or not ? xD I would like to know because maybe I am loosing time > > > > for that ? or maybe not ? :) > > -- > Sidney G B Ferreira > Desenvolvedor Web --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: url's in backend application
Rather not ;] I am new and I simply would like to know it is normal that I must add to each link in backend application at the beginning: '/backend.php' ? I think yes because frontend is default application, not backend but maybe I am wrong ? On 18 Wrz, 17:39, Sid Ferreira wrote: > http://www.symfony-project.org/cookbook/1_2/en/cross-application-links > > Is this what you want? > > On Sep 18, 12:02 pm, mini_alexander wrote: > > > As I understand in backend application in files I must everywhere in > > each link > > write at the beginning /backend.php - for example: > > home > > or > > > > > yes ??? > > > Because generated links by symfony look for example: > > url_for('/users/index') > > > so I must everything change by myself adding /backend.php ?? > > yes or not ? xD I would like to know because maybe I am loosing time > > for that ? or maybe not ? :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony has definitely become too complicated framework
I started from Zend Framework and very fast give up - Zend was too complicated - then I started learn symfony and SF was that what I understand :) Zend is complicated. SF is good :) By the way - could somebody answer for my subject: http://groups.google.com/group/symfony-users/browse_thread/thread/5efdb31cf657bd76 ? xD --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] url's in backend application
As I understand in backend application in files I must everywhere in each link write at the beginning /backend.php - for example: home or yes ??? Because generated links by symfony look for example: url_for('/users/index') so I must everything change by myself adding /backend.php ?? yes or not ? xD I would like to know because maybe I am loosing time for that ? or maybe not ? :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: publication project on the server - where place files ?
ooops - again sry - I again published website and I again forgot about clear cache. xD Now is ok. As I understand in backend files I must everywhere in each link write: /BACKEND.php/controller/action yes ? For example home or ??? Because generated links by symfony look for example: url_for('/users/index') so I must everything change by myself ?? On 18 Wrz, 12:43, mini_alexander wrote: > clear cache worked ;) > > But now my backend application doesn't work (frontend works). For > example:http://.pl/backend.php/start/index > I have an error that this site doesn't exist - but I have this site !! > > On 18 Wrz, 12:30, Alexandru-Emil Lupu wrote: > > > switch to the dev mode, and make sure that you have in your > > (config/ProjectConfiguration.php ) the rights paths to symfony. > > Also, if you are uploading the project on a shared server that have a > > cpanel, then you'll already have a /web symlink somewhere. make sure that > > your symfony web dir is the same with account's web dir > > > On Fri, Sep 18, 2009 at 12:14 PM, mini_alexander wrote: > > > > ok I have done what you said but now I see blank page. > > > > On 17 Wrz, 23:37, Stefan Koopmanschap > > project.com> wrote: > > > > Hi, > > > > > No, the document root of your webserver should point to symfony's > > > > "web" directory. Everything outside of that should not be included in > > > > your document root (otherwise people could for instance access config/ > > > > databases.yml file and see your database credentials). > > > > > Stefan > > > > > On Sep 17, 7:38 pm, mini_alexander wrote: > > > > > > As I understand I must place all Symfony files and folders in folder > > > > > 'public_html' ? Because in Zend Framework in folder 'public_html' on > > > > > the server I must place only content of Zend Framework folder > > > > > 'public' . > > > -- > > As programmers create bigger & better idiot proof programs, so the universe > > creates bigger & better idiots! > > I am on web: http://www.alecslupu.ro/ > > I am on twitter:http://twitter.com/alecslupu > > I am on linkedIn:http://www.linkedin.com/in/alecslupu > > Tel: (+4)0748.543.798 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: publication project on the server - where place files ?
clear cache worked ;) But now my backend application doesn't work (frontend works). For example: http://.pl/backend.php/start/index I have an error that this site doesn't exist - but I have this site !! On 18 Wrz, 12:30, Alexandru-Emil Lupu wrote: > switch to the dev mode, and make sure that you have in your > (config/ProjectConfiguration.php ) the rights paths to symfony. > Also, if you are uploading the project on a shared server that have a > cpanel, then you'll already have a /web symlink somewhere. make sure that > your symfony web dir is the same with account's web dir > > On Fri, Sep 18, 2009 at 12:14 PM, mini_alexander wrote: > > > > > > > ok I have done what you said but now I see blank page. > > > On 17 Wrz, 23:37, Stefan Koopmanschap > project.com> wrote: > > > Hi, > > > > No, the document root of your webserver should point to symfony's > > > "web" directory. Everything outside of that should not be included in > > > your document root (otherwise people could for instance access config/ > > > databases.yml file and see your database credentials). > > > > Stefan > > > > On Sep 17, 7:38 pm, mini_alexander wrote: > > > > > As I understand I must place all Symfony files and folders in folder > > > > 'public_html' ? Because in Zend Framework in folder 'public_html' on > > > > the server I must place only content of Zend Framework folder > > > > 'public' . > > -- > As programmers create bigger & better idiot proof programs, so the universe > creates bigger & better idiots! > I am on web: http://www.alecslupu.ro/ > I am on twitter:http://twitter.com/alecslupu > I am on linkedIn:http://www.linkedin.com/in/alecslupu > Tel: (+4)0748.543.798 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: publication project on the server - where place files ?
ok I have done what you said but now I see blank page. On 17 Wrz, 23:37, Stefan Koopmanschap wrote: > Hi, > > No, the document root of your webserver should point to symfony's > "web" directory. Everything outside of that should not be included in > your document root (otherwise people could for instance access config/ > databases.yml file and see your database credentials). > > Stefan > > On Sep 17, 7:38 pm, mini_alexander wrote: > > > As I understand I must place all Symfony files and folders in folder > > 'public_html' ? Because in Zend Framework in folder 'public_html' on > > the server I must place only content of Zend Framework folder > > 'public' . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] publication project on the server - where place files ?
As I understand I must place all Symfony files and folders in folder 'public_html' ? Because in Zend Framework in folder 'public_html' on the server I must place only content of Zend Framework folder 'public' . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---