[symfony-users] Help with mixins!! Adding new actions in a module with the event dispatcher (MIXINS)

2009-10-11 Thread jaime

Hi!

I'm trying to add new actions to some modules with mixins and the
event dispatcher.

I find the controller.page_not_found notify, but it didn't work.

Someone knows if there is a way to add new actions with some mixin??
--~--~-~--~~~---~--~~
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: Database Views with Symfony Doctrine

2009-10-11 Thread Dennis

Probably, fo find  out the correct format for some fields, like TIME
and DATE, I'm going to make a one table database, build a project,
insert by hand some values, and then dump and see the format necessary
to build a fixture file. Somewhere in all my free time this next
week :-(

On Oct 10, 10:24 am, Dennis  wrote:
> Data dumps are problematic, at least on Postgres. If you don't have
> your PK fields named 'id' it chokes. I've named mine 'table_name_id'.
> Data dump doesn't work.
>
> On Oct 8, 8:37 am, david  wrote:
>
> > Reverse engineering from an existing DB is just a quick way of  
> > bootstrapping the start of a project.
>
> > Doctrine doesn't handle views very well - although it is aware of them.
>
> > Working around this problem when creating some new Doctrine drivers for  
> > CouchDB & RDF I've used view behaviours and then annotate the schema to  
> > get a clean implementation.
> > The behaviour handles the view creation and the model gets generated  
> > accordingly referencing/overloading the referenced base table and  
> > importing the appropriate keys.
>
> > The yml looks like:
>
> > locationsInEurope:
> >    tableName: locationsInEurope
> >    actAs:
> >      hasViews:
> >        references: Locations
> >    columns:
> >      country_id:
> >        type: integer(4)
> >      region_id:
> >        type: integer(4)
> >      city_id:
> >        type: integer(4)
> >      district_id:
> >        type: integer(4)
>
> > Regarding data dumps - the doctrine:data-dump task is a better way of  
> > handling extracting and reloading the db.
>
> > On Thu, 08 Oct 2009 11:58:51 +0200, ridcully   
> > wrote:
>
> > > Hi John,
>
> > > the Problem is when you doing the views this way is, you don't have a
> > > clean
> > > deployment anymore  then we can't use symfony build-all-reload-test
> > > for the dev. Team.
> > > I must use SQL-Dumps and I think this is not the right way, because
> > > you
> > > can't change the Model quick and easy.
>
> > > There must be a better way to do this, because we need a the mostly
> > > clean Deployment without SQL-Dumps.
>
> > > Many thanks for your answer,
> > > Jörg
>
> > > On Oct 8, 11:47 am, John Masson  wrote:
> > >> Hi,
>
> > >> We were discussing this at work yesterday. One of the guys came up
> > >> with the same solution and it sounds quite reasonable.
>
> > >> Out of interest we reverse engineered a schema.yml from a DB that had
> > >> a view in it just to see what would happen. Symfony includes the view
> > >> in the schema.yml file just like it was a regular table, but there was
> > >> nothing to identify it as a view rather than a table that I could see,
> > >> so presumably if we forward engineered the database from this
> > >> schema.yml it would have created a table not a view (should have done
> > >> that just to confirm I guess)
>
> > >> My recommendation would be to create your DB as you want it, then
> > >> reverse engineer your schema.yml with a ./symfony doctrine:build-
> > >> schema then build-model, forms, filters etc... Just saves you dropping
> > >> the tables and recreating the views which you'd have to do if you work
> > >> in the opposite direction (although it's not such a big deal I guess).
>
> > >> John
>
> > >> On Oct 7, 7:48 pm, ridcully  wrote:
>
> > >> > Hi,
>
> > >> > how can I use Database Views in Symfony with Doctrine? I need them
> > >> > because of performance reasons.
>
> > >> > My Idee was to create dummys in the model and after building the Model
> > >> > to drop the dummy tabels and create SQL Views.
>
> > >> > Is there a better way to do this?
>
> > --
> > Using Opera's revolutionary e-mail client:http://www.opera.com/mail/-Hide 
> > quoted text -
>
> > - Show quoted text -
>
>
--~--~-~--~~~---~--~~
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

2009-10-11 Thread Eno

On Sun, 11 Oct 2009, mini_alexander wrote:

> thx but I have error during symfony freeze - I will create other
> subject.

Please read the Getting Started guide:
http://www.symfony-project.org/getting-started/1_2/en/

Without knowing how to install and/or deploy symfony projects you will 
continue to have these (really trivial) problems.


-- 



--~--~-~--~~~---~--~~
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 ?

2009-10-11 Thread mini_alexander

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] Re: Important bug fix to sfSyncContentPlugin

2009-10-11 Thread Tom Boutell

Correct, the mysqldump command is the key ingredient in the recipe.
I'm not sure whether other databases have compatible commands... we
don't use them, so we're not in a position to do a good job verifying
code for them.

In theory we could use the fixture dump and load tasks, but in
practice those are not meant to be robust enough to handle production
databases. And of course they are much slower.

On Oct 10, 1:26 pm, Dennis  wrote:
> This only works with MySQL?
>
> On Oct 8, 1:42 pm, Jake Barnes  wrote:
>
>
>
> > Thanks, Tom. I'm about to give this plugin a try.
>
> > On Oct 8, 2:00 pm, Tom Boutell  wrote:
>
> > > I have corrected a significant bug in sfSyncContentPlugin. This bug
> > > caused the plugin to assume it should use the default local
> > > environment, not the environment specified on the command line, for
> > > the local end of the connection.
>
> > > If you have separate database settings for different environments
> > > (including the test environment), this could result in syncing the
> > > wrong database. So it is important to upgrade to sfSyncContentPlugin
> > > version 0.9.1 (or 'svn update' if you are using svn externals).
>
> > >Th Version 0.9.1 also reuses the mysql-load and mysql-dump helper Symfony
> > > tasks locally as well as remotely, simplifying the code and removing
> > > opportunities for problems such as the bug described above.
>
> > > sfSyncContentPlugin is a Symfony plugin that allows content (not code)
> > > to be synced between different hosts and environments of a Symfony
> > > project. MySQL database dumps as well as data folders can be
> > > transferred. For more information 
> > > see:http://www.symfony-project.org/plugins/sfSyncContentPlugin
>
> > > --
> > > Tom Boutell
> > > P'unk Avenue
> > > 215 755 1330
> > > punkave.com
> > > window.punkave.com- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
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 ?

2009-10-11 Thread mini_alexander

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

2009-10-11 Thread mini_alexander

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
> >> >> > 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 p

[symfony-users] Re: How can I initiate cookie based session with session id passed in URL in first request ?

2009-10-11 Thread Gábor Fási

What you're talking about is session fixation, and is a serious
vulnerability - you should avoid it.

Details: http://en.wikipedia.org/wiki/Session_fixation

2009/10/5 Łukasz Wojciechowski :
>
> Hi all
>
> Baiscally Im trying to force session handler to use session id passed
> in URL and create session cookie so that in next requests I won't have
> to pass session id again.
>
> I can get access to concrete session data by using known session id
> and if I pass it in URL like that:
> http://my.symfony.app/default/index?symfony=MY_KNOWN_SESSION_ID
>
> But then cookie is not created and next requests without session id in
> URL gest fresh cookie based session.
>
> I managed to get it working with my custom session handler class but I
> had to overwrite whole initialize method only to change one statement
> - this is rather ugly hack than elegant solution that is more
> preferable to me.
>
> Maybe someone could help me out to make this working using more
> elegant solution ?
>
> Thanks in advance
> --
> Best regards
> Lukasz Wojciechowski
>
> New Generation Software
> +48 602 214 629
> http://www.ngsoft.pl
>
> >
>

--~--~-~--~~~---~--~~
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: sfGuard "remember me" does not quite work

2009-10-11 Thread Alexandru-Emil Lupu
use just the cookie ... not the ip itsself ...


On Fri, Oct 9, 2009 at 5:46 PM, Charles Bernard wrote:

>
> Hi there,
>
> I’m concerned about this IP checking thing (ip_address field in
> sf_guard_remember_key table).
>
> It seems like my website remenbers me for a day only since most ISPs
> renew their IPs each day.
> When I get back to my site the day after the cookie value no longer
> matches my IP which has probably changed over night.
>
> Shouldn't be relying on users' ips, should it ?
>
> >
>


-- 
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: I can't install symfony

2009-10-11 Thread Gábor Fási

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
>> >> > 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

2009-10-11 Thread Alexandru-Emil Lupu
No offence, but get back to jobeet tutorial and maybe further... back to php
... you have to understand that your "Symfony-1.2.9" folder is actually the
symfony core folder ...
Also ... if you copy the "symfony-1.2.9" to lib, won't help a little bit ...
You might use simplest method of
"Symfony project:freeze"... that will do all the stuff you need to run your
project ...
Else, you might wanna modify your config/*php to match the right path to
your symfony lib ...

The sf images and so on are located in symfony-1.2.9/bin/web/sf/ ... copy
that folder to your symfony_project/web/ folder...

If you have added an alias into your vhost folder, then make sure that the
paths are enclosed by quotes. also .. your WindBlows OS permit apache to
read that folder. (known issues on Vista ).
Alecs

On Sun, Oct 11, 2009 at 10:47 AM, 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 <
> aoohra...@gmail.com>
> > >> 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

[symfony-users] Re: I can't install symfony

2009-10-11 Thread mini_alexander

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
-~--~~~~--~~--~--~---