[symfony-users] Re: Javascript to Gd library

2008-05-23 Thread Jay Klehr

There's a nice cropping tool built in Prototype out there:

http://www.defusion.org.uk/demos/060519/cropper.php

I've seen similar done in Mootools as well, but not quite as nice.

It's just basic rectangular cropping, not quite sure if that's what 
you're looking for.

Jay

mozey wrote:
> I'm trying to develop a BASIC functionality for clipmann.com so not
> only can you upload images and write on them, but you can also do
> BASIC select+copy+paste, then send it to symfony where GD will do its
> magic!,
>
> I think i need somehow, capture vai JavaScript the vector
> representation of what has been selected (any libraries i can look at
> you know of?). Then pass it to symfony, and work from there!. Yes,
> after two weeks, thats all i have!.
>
> any easier 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: List of Live Symfony Sites?

2008-05-16 Thread Jay Klehr
The "not closing" observation in Firefox is true for Windows XP too.

Jay

James wrote:
> Just an FYI, on a Mac your site breaks in both Firefox and Safari.  In  
> Safari the right drop downs don't work, in firefox they open but don't  
> close when another is chosen.  They're pretty and all, but i take  
> functionality over pretty any day.
>
> The site you are looking for is symfonians
>
> http://symfonians.net/
>
> james
>
>
> On May 16, 2008, at 1:26 AM, Richtermeister wrote:
>
>   
>> Hi all,
>>
>> quick question. I know I've come accross this before, but I can't find
>> it right now..
>> Where is the list of live websites that are built with Symfony?
>> We just released a new site (www.activemotif.com), and I'd like to
>> submit it.
>>
>> Thanks all,
>> have a great night.
>>
>> Daniel
>> 
>
>
> >
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: [symfony-devs] sfDoctrinePlugin SVN organization changes

2008-04-29 Thread Jay Klehr

How are other plugins dealing with Symfony 1.1?  (naming of branches and 
the sort)

Jay

Jonathan Wage wrote:
> Hello all,
>
> I will be doing some work on the sfDoctrinePlugin for a new version. 
> This will require that we make some changes to the way things are 
> organized in svn. I am going to propose a structure for the branches 
> and tags.
>
> Currently we have sfDoctrinePlugin/branches/0.1 and 
> sfDoctrinePlugin/branches/1.0, below is an explanation of what each is 
> currently, and what I want to change it to.
>
> sfDoctrinePlugin/branches/0.1 - The very first version of the 
> sfDoctrinePlugin, which is linked to a super outdated version of 
> Doctrine. This branch likely doesn't even work anymore. I would 
> recommend removing it completely?
>
> sfDoctrinePlugin/branches/1.0 - The current stable sfDoctrinePlugin 
> 1.0 that is compatible with symfony 1.0
>
> sfDoctrinePlugin/trunk - The current stable sfDoctrinePlugin 1.0 that 
> is compatiable with symfony 1.1
>
> I want to propose a new structure.
>
> Rename sfDoctrinePlugin/branches/0.1 to 
> sfDoctrinePlugin/branches/0.1-sf1.0
> Rename sfDoctrinePlugin/branches/1.0 to 
> sfDoctrinePlugin/branches/1.0-sf1.0
> Branch sfDoctrinePlugin/trunk to sfDoctrinePlugin/branches/1.0-sf1.1(I 
> have already done this)
>
> Continue development of new version of sfDoctrinePlugin-1.1 compatible 
> with symfony 1.1 in trunk and when it is done:
>
> Branch sfDoctrinePlugin/trunk to sfDoctrinePlugin/branches/1.1-sf1.1
>
> The naming pattern is "Plugin.Version-sfDependency-Version". Tags 
> would be pretty much the same except with point releases on the 
> version numbers, i.e. sfDoctrinePlugin/tags/1.1.2-sf1.1, 
> sfDoctrinePlugin/tags/1.0.2-sf1.1, etc.
>
> I think having this pattern for all plugins would be a good thing. 
> Thoughts?
>
> Thanks, Jon
>
> -- 
> Jonathan Wage
> http://www.jwage.com
> http://www.centresource.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfDoctrinePlugin on symfony 1.1

2008-04-27 Thread Jay Klehr
Hey Jon,

Since your last update, I'm not seeing queries in the Symfony debug 
toolbar anymore.  This comes and goes it seems with sfDoctrine updates.

Jay

Jonathan Wage wrote:
> Make sure you are running the symfony cli for the project you are in. 
> You may have to do ./symfony to get the 1.1 cli and not symfony.
>
> I just updated the sfDoctrinePlugin trunk to work with symfony 1.1 so 
> it should be all good.
>
> - Jon
>
> On Fri, Apr 25, 2008 at 10:08 AM, Jay Klehr <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> That's the same path I've got my external set to, and I do see all
> of the doctrine tasks.
>
> It's been a while since I've installed Doctrine and sfDoctrine, so
> I'm not sure if there are any special steps, but I don't think
> there are.
>
> I assume you've cleared your cache so that symfony adds the
> Doctrine paths to the autoloader?
>
> Jay
>
>
> Johannes Frandsen wrote:
>> Hey again
>>
>> I tried checking out from this url:
>> http://svn.symfony-project.com/plugins/sfDoctrinePlugin/trunk/
>>
>> which did not bring me any closer.
>>
>> Are you using a different repository?
>>
>> Are there other steps I need to be aware of?
>>
>> Joe
>>
>> On 25 Apr 2008, at 11:41, CaffeineInc wrote:
>>
>>   
>>> Running symfony1.1 with doctrine is a bit of a mission, but it
>>> certainly has it's benefits.  You have to use a special version of
>>> sfdoctrineplugin to work with 1.1, i think we used the trunk version
>>> from symfony plugins sfDoctrinePlugin via svn. Hopefully that works
>>> for ya ;)
>>>
>>> On Apr 25, 9:37 am, Johannes Frandsen <[EMAIL PROTECTED]> 
>>> <mailto:[EMAIL PROTECTED]> wrote:
>>> 
>>>> Hi
>>>>
>>>> I'm new to symfony, so this might be a trivial question, but I hope
>>>> someone can sheet some light on it anyway, as I'm still a bit
>>>> unfamiliar with the framework.
>>>>
>>>> After skimming must of the manual, reading about other developers
>>>> experience and generally trying to get a sense of direction for the
>>>> project I have installed and toyed around with symfony 1.1. I expect
>>>> that by the time I have gotten the hang of the framework, symfony 1.1
>>>> will have become stable so I might as well start with this version.
>>>>
>>>> And now to my imitate problem:
>>>>
>>>> I want to use doctrine instead of propel, partly because the blogs  
>>>> and
>>>> news site I read a mostly in agreement, that doctrine is the way of
>>>> the future, but mostly because symfony (as far as I can tell) plans  
>>>> to
>>>> switch to doctrine in the future anyway.
>>>>
>>>> I followed this guide when I tried to install the sfDoctrinePlugin:
>>>>
>>>> http://trac.symfony-project.com/wiki/sfDoctrinePlugin
>>>>
>>>> but when I type 'symfony' in my shell I don't get the advertised
>>>> result; that is: no doctrine task.
>>>>
>>>> I tried checking out the trunk of the  sfDoctrinePlugin, but still no
>>>> dice.
>>>>
>>>> I'm running on a gentoo installation, and have installed symfony
>>>> (1.1.0-BETA3) through PEAR.
>>>>
>>>> Any pointers or comments would be greatly appreciated.
>>>>
>>>> Regards
>>>>
>>>> Joe
>>>>
>>>>   
>>   
>
>
>
>
>
>
> -- 
> Jonathan Wage
> http://www.jwage.com
> http://www.centresource.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfDoctrinePlugin on symfony 1.1

2008-04-25 Thread Jay Klehr
That's the same path I've got my external set to, and I do see all of 
the doctrine tasks.

It's been a while since I've installed Doctrine and sfDoctrine, so I'm 
not sure if there are any special steps, but I don't think there are.

I assume you've cleared your cache so that symfony adds the Doctrine 
paths to the autoloader?

Jay

Johannes Frandsen wrote:
> Hey again
>
> I tried checking out from this url:
> http://svn.symfony-project.com/plugins/sfDoctrinePlugin/trunk/
>
> which did not bring me any closer.
>
> Are you using a different repository?
>
> Are there other steps I need to be aware of?
>
> Joe
>
> On 25 Apr 2008, at 11:41, CaffeineInc wrote:
>
>   
>> Running symfony1.1 with doctrine is a bit of a mission, but it
>> certainly has it's benefits.  You have to use a special version of
>> sfdoctrineplugin to work with 1.1, i think we used the trunk version
>> from symfony plugins sfDoctrinePlugin via svn. Hopefully that works
>> for ya ;)
>>
>> On Apr 25, 9:37 am, Johannes Frandsen <[EMAIL PROTECTED]> wrote:
>> 
>>> Hi
>>>
>>> I'm new to symfony, so this might be a trivial question, but I hope
>>> someone can sheet some light on it anyway, as I'm still a bit
>>> unfamiliar with the framework.
>>>
>>> After skimming must of the manual, reading about other developers
>>> experience and generally trying to get a sense of direction for the
>>> project I have installed and toyed around with symfony 1.1. I expect
>>> that by the time I have gotten the hang of the framework, symfony 1.1
>>> will have become stable so I might as well start with this version.
>>>
>>> And now to my imitate problem:
>>>
>>> I want to use doctrine instead of propel, partly because the blogs  
>>> and
>>> news site I read a mostly in agreement, that doctrine is the way of
>>> the future, but mostly because symfony (as far as I can tell) plans  
>>> to
>>> switch to doctrine in the future anyway.
>>>
>>> I followed this guide when I tried to install the sfDoctrinePlugin:
>>>
>>> http://trac.symfony-project.com/wiki/sfDoctrinePlugin
>>>
>>> but when I type 'symfony' in my shell I don't get the advertised
>>> result; that is: no doctrine task.
>>>
>>> I tried checking out the trunk of the  sfDoctrinePlugin, but still no
>>> dice.
>>>
>>> I'm running on a gentoo installation, and have installed symfony
>>> (1.1.0-BETA3) through PEAR.
>>>
>>> Any pointers or comments would be greatly appreciated.
>>>
>>> Regards
>>>
>>> Joe
>>>
>>>   
>
>
> >
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: anybody using PHP 5.2.5?

2008-03-03 Thread Jay Klehr

I have PHP 5.2.5 running on a local dev box running CentOS 4 (RHEL4), no 
Plesk, and no Propel, but eveything is running fine.  Probably not much 
help for you, but thought I'd chime in anyhow.

Jay

Lee Bolding wrote:
> One of my clients has RHEL4 up2date running - it's just installed PHP 5.2.5,
> and now all the Symfony applications are broken with the Creole/creole.php
> not found error.
>
> Not sure if this is due to PHP 5.2.5 in general, or 5.2.5 in conjunction
> with Plesk... Previously it was 5.2.3, which worked fine.
>
> I've got 5.2.5 running locally on WAMP (and it's OK), but haven't got 5.2.5
> running on any *nix machines... can anybody confirm Symfony is working with
> 5.2.5 on *nix? (or that it's broken on 5.2.5 when Plesk is installed?)
>
> Ta
>
>
>
>
> >
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: vim and eclipse

2008-02-16 Thread Jay Klehr

There's a plugin for eclipse that gives you some VIM keyboard bindings.

http://www.satokar.com/viplugin/

I've never used it, as I'm not a big VIM user, plus it doesn't appear to 
be free.  Might be worth a try though.  :)

Jay


Thierry wrote:
> Anybody knows if there are decent key bindings out there (vim style)
> for eclipse?
> >
>
>   

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How popular is Symfony ?

2008-02-12 Thread Jay Klehr
Spam of course.  Wants the attention, tracbacks, comments, etc...

It's a mostly useless "article", so it's not going to spread by itself.

Jay

Eno wrote:
> On Tue, 12 Feb 2008, tom wrote:
>
>   
>> I found a link on the subject :
>>
>> http://www.therightsoft.com/softwaretechnologies/webframeworks
>>
>> ...but I'm am looking for further resources. Thanks in advance for
>> your posts !
>> 
>
> Is there a reason why you posted this to like every web framework list?
>
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Need your help for take off from google list

2008-01-31 Thread Jay Klehr
I use webmaster tools with two different sites of mine.  They're both 
crawled with equal frequency, one has a robots file, the other doesn't.  
I've never received any sort of notice from Google about the missing file.

The OP's request was to remove the symfony google group's post about 
her/his site from google, which s/he can't do with a robots.txt file 
because groups.google.com isn't her/his site to place the file on 
(obviously ;) ).

http://www.google.com/search?q=amrit+cwt

S/He wants the result for "amrit-cwt.com" to appear at the top of the 
list when searching for "amrit cwt".  That's something that a robots.txt 
file will never help with.  :-)   S/He's actually done her/himself a 
disservice by mentioning those keywords AGAIN in this list, as now 
there's even more relevance in groups.google.com for those keywords.

Jay

Bernhard Schussek wrote:
> Hello Jay.
>
> Actually, Google Webmaster Tools are pretty unhappy about sites
> without (even empty) robots.txt files. I don't know whether this
> affects the ranking in the search engine, but definitely it affects
> the frequency of Google crawling your webpage. I have noticed the
> frequency to go dramatically down on one of my sites where the robots
> txt has not been available for a little over a week, and google
> presented me with a lot of messages that it stopped crawling due to a
> missing robots.txt.
>
> I was not talking about how to increase a websites rank btw, only how
> to exclude pages from being displayed in the search results. Just to
> clarify.
>
> Regards
> Bernhard
>
> On Jan 31, 2008 5:00 PM, Jay Klehr <[EMAIL PROTECTED]> wrote:
>   
>>  Search engines use robots.txt to decide if they're *allowed* to index all
>> of your site, it won't improve your ranking if you have one.  I don't know
>> where this "if you have a robots.txt file, even with nothing in it, you'll
>> get ranked better" idea came from (you're not the first person I've seen say
>> something like this), but it's false.  Don't waste your time with a
>> robots.txt file unless there are particular areas of your site that you
>> DON'T want search engines to index.
>>
>>  Spend more of your time building a site-map, making your html search engine
>> friendly, and most importantly, make the site "useful".  If your site has
>> value to its users, google's ranking will reflect that.
>>
>>  Jay
>>
>>
>>
>>  Bernhard Schussek wrote:
>>  You can write the url of the page to the robots.txt in your /web/
>> directory, which is scanned by search engines. Search the web for
>> robots.txt for more information about it.
>>
>> Additionally, you might like to get comfortable with the Google
>> Webmaster Tools. They allow viewing the crawler status, indexed and
>> erroneous pages etc. Just sign up for a Google account and unlock the
>> website for this account. See the Google Webmaster Tools documentation
>> for more information.
>>
>> Regards
>> Bernhard
>>
>> On Jan 31, 2008 6:55 AM, Birchandra Sanasam <[EMAIL PROTECTED]> wrote:
>>
>>
>>  Dear All,
>>
>> I developed and announced my second project on this group. So I am facing a
>> big problem for google search engine.
>> When I search for "amrit cwt" on google I got "My Second Symfony Project -
>> symfony users" at first rank
>>  but I want to get site home page first. What can I do for it?
>>
>> My client asked for take off that list i.e. "My Second Symfony Project -
>> symfony users" from google.
>> But I don't know How could I take off it? Please help me!
>>
>>
>> Thanks!
>>
>> I am looking forward your help!
>>
>> --
>> Birchandra Sanasam
>> Web Developer & Analyst
>> # +91 9810 191478
>>  >
>>
>>
>>
>>
>>
>>
>>
>>  >
>>
>> 
>
> >
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Need your help for take off from google list

2008-01-31 Thread Jay Klehr
Search engines use robots.txt to decide if they're *allowed* to index 
all of your site, it won't improve your ranking if you have one.  I 
don't know where this "if you have a robots.txt file, even with nothing 
in it, you'll get ranked better" idea came from (you're not the first 
person I've seen say something like this), but it's false.  Don't waste 
your time with a robots.txt file unless there are particular areas of 
your site that you DON'T want search engines to index.

Spend more of your time building a site-map, making your html search 
engine friendly, and most importantly, make the site "useful".  If your 
site has value to its users, google's ranking will reflect that.

Jay

Bernhard Schussek wrote:
> You can write the url of the page to the robots.txt in your /web/
> directory, which is scanned by search engines. Search the web for
> robots.txt for more information about it.
>
> Additionally, you might like to get comfortable with the Google
> Webmaster Tools. They allow viewing the crawler status, indexed and
> erroneous pages etc. Just sign up for a Google account and unlock the
> website for this account. See the Google Webmaster Tools documentation
> for more information.
>
> Regards
> Bernhard
>
> On Jan 31, 2008 6:55 AM, Birchandra Sanasam <[EMAIL PROTECTED]> wrote:
>   
>> Dear All,
>>
>> I developed and announced my second project on this group.  So I am facing a
>> big problem for google search engine.
>> When I search for "amrit cwt" on google I got "My Second Symfony Project -
>> symfony users" at first rank
>>  but I want to get site home page first. What can I do for it?
>>
>> My client asked for take off that list i.e. "My Second Symfony Project -
>> symfony users" from google.
>> But I don't know How could I take off it? Please help me!
>>
>>
>> Thanks!
>>
>> I am looking forward your help!
>>
>> --
>> Birchandra Sanasam
>> Web Developer & Analyst
>> # +91 9810 191478
>>  >
>>
>> 
>
> >
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: editing over FTP

2008-01-20 Thread Jay Klehr
Just because someone wants to edit files remotely doesn't mean they're 
editing files on a production machine.

Many companies have remote development machines for their developers to use.

Also, many developers use Windows to develop, but the code sits on a 
Linux machine.  In my case I develop in Windows, but have a Virtualized 
Linux machine that I access "remotely" that I use as my dev box (this 
has a ton of advantages, especially since you can copy the machine, take 
snapshots, easily backup.  It's also great to have a dev machine that's 
a replica of the production system (at least in software config)).

That said, Zend Studio's FTP functionality is very nice unless you need 
to use SSH keys to login to the remote system, then you'll need another 
solution.  Eclipse with RSE (remote system explorer) works as well, but 
you'll lose some of the benefits of the project system.  Zend has a beta 
of their new Studio product that is based on Eclipse (called Neon) that 
seems to be addressing some of the Eclipse + RSE issues, but I don't 
think they're quite there yet.

I've used Webdrive and equivalents as well, but I had synching issues 
with them and Zend Studio (I'd have to save the file twice to see the 
changes appear on the server).

Jay

naholyr wrote:
> I **NEVER** edit files directly over FTP, because this means i would
> be editing files directly on a production server.
> When I make a little change, this is not rare that i forget a semi-
> colon, or a paren, and this can be very ugly on the site :)
>
> Stopping working this way could be the best thing to do : download,
> edit, check, upload, or the "check" step will be on prod. server, and
> that sucks.
>
> On 20 jan, 00:53, Thierry <[EMAIL PROTECTED]> wrote:
>   
>> Hey,
>>
>> Im just wondering, editing over FTP is always a bit of a hassle for
>> me.
>> What editor do you use to easily edit files on a remote server.
>> Currently i use Zend Studio, I prefer Eclipse but can't get the remote
>> plugins to work properly.
>>
>> Cheers,
>> Thierry
>> 
> >
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: autoloader infinite loop?

2008-01-17 Thread Jay Klehr
After some more digging, I've discovered that the segfault in production 
is most likely not Symfony's fault, but an outdated Doctrine model issue 
(which I'm still working through).  However, the infinite looping of the 
autoload config is still an issue in my development environment.  What 
seems to be happening is that the cache file for autoloading 
(config_autoload.yml.php) is being written, and then deleted by a call 
to autoLoadAgain() (which in turn calls reloadClasses with the force 
value to true, which unlinks the cache file).  This seems to be an 
endless cycle until the max execution time is reached.

I've temporarily solved my problem by commenting out the unlink line in 
the reloadClasses() method, which effectively makes my dev environment 
act like production (with regards to caching).  I'll dig around some 
more once I figure out my Doctrine segfault issue. :)

Jay

Jay Klehr wrote:
> Somewhat recently (in the past couple of months, I can't pinpoint it 
> exactly) there was an update to the symfony 1.1 branch (trunk) that 
> causes my application to timeout (max execution time exceeded).  The 
> timeout happens in the development environment, in the production 
> environment I get an Apache segfault.
>
> It seems to be only happening on pages with a Component, but I'm not 
> 100% sure if that's the only cause.  I've outputted some of the data 
> that the autoloader is working on, and it seems to be parsing the same 
> directories multiple times.
>
> Here's the exact error if that helps:
>
> *Fatal error*: Maximum execution time of 30 seconds exceeded in 
> */home/jay/web/lib/symfony/config/sfAutoloadConfigHandler.class.php* 
> on line *102
>
> *Increasing the timeout limit only causes symfony to take longer to 
> error out.  The exact line that it dies on varies, but it's almost 
> always in the same function.
>
> I've cleared the cache, and deleted the autoload cache file that shows 
> up in /tmp
>
> Anyone experience the same issue and have a quick fix that I'm 
> overlooking?  Is it possible that I have an old config setting 
> somewhere that the 1.1 upgrade process didn't take care of for me?
>
> Jay
> >


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] autoloader infinite loop?

2008-01-13 Thread Jay Klehr
Somewhat recently (in the past couple of months, I can't pinpoint it 
exactly) there was an update to the symfony 1.1 branch (trunk) that 
causes my application to timeout (max execution time exceeded).  The 
timeout happens in the development environment, in the production 
environment I get an Apache segfault.

It seems to be only happening on pages with a Component, but I'm not 
100% sure if that's the only cause.  I've outputted some of the data 
that the autoloader is working on, and it seems to be parsing the same 
directories multiple times.

Here's the exact error if that helps:

*Fatal error*: Maximum execution time of 30 seconds exceeded in 
*/home/jay/web/lib/symfony/config/sfAutoloadConfigHandler.class.php* on 
line *102

*Increasing the timeout limit only causes symfony to take longer to 
error out.  The exact line that it dies on varies, but it's almost 
always in the same function.

I've cleared the cache, and deleted the autoload cache file that shows 
up in /tmp

Anyone experience the same issue and have a quick fix that I'm 
overlooking?  Is it possible that I have an old config setting somewhere 
that the 1.1 upgrade process didn't take care of for me?

Jay

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: symfony is noncommercial ?! what if my sites make money ?

2008-01-02 Thread Jay Klehr

Symfony's license (MIT if I recall) should allow you to do whatever you 
like with it, even redistribution in binary form.  However, some of the 
plugins available for symfony use the GPL which is much more restrictive 
(there have been other threads in this list discussing this).

Perhaps you read that symfony itself is "non-commercial" somewhere?  I 
suppose in some sense that's true, since it is a community driven 
open-source project... (though, funded by a commercial entity)   I 
wouldn't use those words to describe it though, could create confusion, 
as this email chain shows. :)

Jay

mozey wrote:
> Please stay with me, my business skills are WEAK SAUCE.
>
> "A non-commercial enterprise is work that values other considerations
> above and beyond that of making a profit." (wikipedia's def on
> noncommercial)
>
> So what does that mean for me as a website developer?, i have been
> taking attempts at websites of unique ideas that i hope one of them
> makes it big!. Does that mean, that i cannot use symfony if i hope to
> monetize on any of my sites one of these days?. Or does it mean that i
> simply cannot resell a product which is a derivative of symfony!? Can
> we have any clarification to this?
> >
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Propel difference

2007-11-09 Thread Jay Klehr

I've heard that Premium Soft's Navicat MySQL has a good utility for 
syncing the structure of two databases.  Unfortunately I haven't used it 
myself yet.  An ex-co-worker of mine swore by it.

http://www.navicat.com/

Jay


Thierry wrote:
> I think there are many programs out there to sync the structure of two
> databases, but I simply don't know what to look for.
> Any help would be appreciated.
>
>
> >
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Client Side Caching

2007-11-08 Thread Jay Klehr

Regarding E-Tags, Yahoo! recommends to turn them off unless you truly 
know how to configure your webserver(s) to use them properly:

http://developer.yahoo.com/performance/rules.html#etags

Jay


Kay wrote:
> Who recommended not setting e-tags

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfDoctrine ORDER BY RAND

2007-11-07 Thread Jay Klehr

The lack of spaces IS a problem if that's what your code looks like.

You'll have to be more specific about the error that you're seeing.

Jay

Jonas Schnelli wrote:
> yes... but thats not the problem (copied it from doctine pdf
> manual...) ...
>
> but do you habe something to say about the RAND ordering?
>
> On 7 Nov., 11:58, "Ian P. Christian" <[EMAIL PROTECTED]> wrote:
>   
>> Jonas Schnelli wrote:
>> 
>>> Hi All
>>>   
>>> I've followed the explanation of the doctrine manual:
>>> $q=new Doctrine_Query();
>>> $posts=$q->select('p.*,RANDOM()rand')
>>>   
>> ^ you know you're missing a space there?> ->from('Postp')
>>
>> and there
>>
>> --
>>
>> Ian P. Christian ~ pookey.co.uk
>> 
>
>
> >
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: php 5.1 compatibility

2007-10-26 Thread Jay Klehr
PHP isn't complaining that the method doesn't exist, but rather that 
"$this->getTrainings()" is not an object.

Jay

Michael Smith wrote:
> That's interesting, that fixed my problems in 5.1.6. __toString() is
> just a normal public method that you should be able to call like any
> other.
>
> Michael
>
> On Oct 26, 10:03 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>   
>> On 10/26/07, Michael Smith <[EMAIL PROTECTED]> wrote:
>>
>> I've had similar problems with concatenation. Try return $this-
>> >getTrainings()->__toString() . ' ('.$this->getDate('m/d/Y').')';
>>
>> Michael
>>
>> I tried that before, but get:
>>
>> Fatal error: Call to a member function __toString() on a non-object
>> in ...lib/model/TrainingDays.php on line 14
>> 
>
>
> >
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfGuard trailing slash problem

2007-10-19 Thread Jay Klehr

Shouldn't you either use absolute URLs for your assets, or use an 
initial trailing slash?

Symfony's URL structure makes use of "pretty urls" for parameters, so 
it's not uncommon to see "site.com/users/list/page/2"

Trailing slash or not your CSS and Images won't load if you're not 
accessing them like "/css/main.css" with paths like the above.

I'd suggest making your CSS and other assets work with or without the 
trailing slash, as I think you'll always see that issue come up with 
Symfony.

Jay

Jonathan Franks wrote:
> sfGuard is working perfectly for me except for one problem. After log 
> in, it adds a trailing slash to the url...
>
> www.mysite.com/backend.php
>
> becomes
>
> www.mysite.com/backend.php/
>
> This stops the css from loading (and probably any other assets)
>
> Am I doing something wrong? // Regards Jonathan
>
> >
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: jQuery/prototype collision?

2007-09-24 Thread Jay Klehr

The jQuery site has some information about using jQuery with Prototype:

http://docs.jquery.com/Using_jQuery_with_Other_Libraries

Jay

Ant Cunningham wrote:
> Is this an issue when using $() with sfUJSPlugin? I know that $() is also
> used by prototype so should I be using the longhand? I assume shortand is
> somehow handled since its not mentioned in the wiki afaik but id rather not
> have to do a lot of find/replace later on if I can avoid it up front.
>
> Although I doubt this would happen anyhow as I don't expect to be using
> prototype (if at all) where im using jQuery but better safe than sorry.
>
> -ant
>
>
>
> >
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] New sfCommand CLI System: Can plugins have their own tasks?

2007-08-04 Thread Jay Klehr

After upgrading my symfony installation past the revision that includes 
the new sfCommand CLI system, I realized I no longer can run the 
sfDoctrine tasks.  So I spent a wee bit of time converting the 
sfDoctrine tasks I do use so that they can be used within the new CLI 
system.  However, I have to store these newly created tasks in 
project_dir/lib/symfony/lib/task  for the command line script to see 
them.  I tried putting them in 
project_dir/plugins/sfDoctrinePlugin/data/tasks AND 
project_dir/plugins/sfDoctrinePlugin/lib/task but neither were recognized.

Is this support missing right now?  Or did I just try putting them in 
the wrong place?

Jay

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfCommandLogger error?

2007-08-04 Thread Jay Klehr

Fabien,

Thanks, that seems to have solved my issue.  I wasn't aware that Symfony 
stored files in the /tmp directory.

Jay

Fabien POTENCIER wrote:
> I think it's an autoloading problem. Remove all the sf_* files you have 
> in your temp directory (/tmp on *nix).
>
> Fabien
>
> Jay Klehr wrote:
>   
>> I recently updated symfony to the most recent trunk (as of this 
>> writing), which includes the new Symfony CLI stuff (and no more pake).  
>> However, when I run symfony from the command line (like to clear the 
>> cache), I get a PHP fatal error:
>>
>> PHP Fatal error:  Class 'sfCommandLogger' not found in 
>> /path/to/symfony/lib/command/sfSymfonyCommandApplication.class.php on 
>> line 89
>>
>> The sfCommandLogger file (and the class of the same name) exist in the 
>> symfony/lib/command directory, but for some reason it appears that it's 
>> not being auto-loaded.
>>
>> Any ideas why this is happening?  Noone else seeing the same issue?
>>
>> I suspect that perhaps it's a path issue, but I don't see any mention of 
>> changing the path to support the new CLI structure.  Did I miss a step 
>> somewhere for updating the trunk?  (I've always been using the trunk, 
>> and before this particular changeset (4743), I've never had issues).
>>
>> Jay
>>
>> 
>> 
>
> >
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] sfCommandLogger error?

2007-08-03 Thread Jay Klehr

I recently updated symfony to the most recent trunk (as of this 
writing), which includes the new Symfony CLI stuff (and no more pake).  
However, when I run symfony from the command line (like to clear the 
cache), I get a PHP fatal error:

PHP Fatal error:  Class 'sfCommandLogger' not found in 
/path/to/symfony/lib/command/sfSymfonyCommandApplication.class.php on 
line 89

The sfCommandLogger file (and the class of the same name) exist in the 
symfony/lib/command directory, but for some reason it appears that it's 
not being auto-loaded.

Any ideas why this is happening?  Noone else seeing the same issue?

I suspect that perhaps it's a path issue, but I don't see any mention of 
changing the path to support the new CLI structure.  Did I miss a step 
somewhere for updating the trunk?  (I've always been using the trunk, 
and before this particular changeset (4743), I've never had issues).

Jay

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfDoctrinePlugin - simple cross join???

2007-07-30 Thread Jay Klehr

FYI,  you can subscribe to Doctrine's mailing list by sending an email to:

[EMAIL PROTECTED]

And the best place to get a quick response is probably in Doctrine's IRC 
channel.

#doctrine on irc.freenode.net

Jay


Charles Hilditch wrote:
> I couldn't find an active phpdoctrine mailing list to ask this question...


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: [Out Of Office] Re: [symfony-users] Re: I18N and sfI18nExtractPlugin

2007-07-07 Thread Jay Klehr

Nicolas Perriault wrote:
> [EMAIL PROTECTED] a écrit :
>
>   
>> Ik ben met vakantie t/m 17 juli.
>> Voor dringende vragen neemt u best rechtstreeks contact op met de firma op 
>> [EMAIL PROTECTED]
>> 
>
> Can't we put a filter on [out of office] string in subjects for this group ?
>
> ++
>
>   
I'm willing to bet that your email client can.

Jay

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Doctrine bug

2007-06-08 Thread Jay Klehr

And it's in the sfDoctrine trunk now (external revision updated).  Looks 
good to me so far.  Though, I still have issues with the array('foreign' 
=> 'id') in my generated model classes with relations.

Jay

[EMAIL PROTECTED] wrote:
> http://www.phpdoctrine.net/trac/changeset/1599 has fixed this issue, I
> think
>
>
> >
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: FYI: Symfony Benchmark

2007-06-07 Thread Jay Klehr

He uses an opcode cache (eAccelerator) in a follow-up test (but only 
tests CakePHP, CodeIngniter and Zend).

http://www.alrond.com/en/2007/feb/04/in-addition-to-the-test-of-mvc-frameworks/

He's also using FastCGI, which (based on data I've found) is a bit 
slower than mod_php. 

There are other benchmarks out there (I think I've seen a 
Rails/Django/Symfony one), and all seem to agree that Django is the 
fastest.  Of course, that's moot to me, since it takes me much longer to 
develop in Django since I'm not fluent in Python (though I do dabble 
with Django occasionally, which is helping my understanding of Python). ;-)

I'd like to see a Doctrine vs. Propel benchmark in Symfony once Doctrine 
reaches a stable release.

Jay


Dan Grossman wrote:
> Wonder what the results would've been if he was using an opcode cache 
> and ran sfOptimizerPlugin over the project beforehand. I'm seeing 
> virtually 100% cache hits with APC and Symfony:
>
> http://www.w3counter.com/apc.php
>
> Piers Warmers wrote:
>   
>> Thanks for the link Grimoire. Nicely presented research.
>>
>> I'd love to some of the code used in these tests. I know from my  
>> experiences with frameworks, stylistic coding changes can have a huge  
>> bearing on speed.
>>
>> For me, I found my original Symfony Apps were much slower than my  
>> latest. I think that is due to:
>>
>>  -   My better usage of the cache
>>
>>  -   More streamlined / lean model usage - I try and minimize access 
>> to  
>> joined table. Especially in listing pages.
>>
>>  -   I watch the number of DB queries like a hawk. I try and keep it 
>> as  
>> low as possible. Anything above 2-3 for a popular script, and I get  
>> worried.  But the again, I also wrap aluminum foil around my head  
>> so  : )
>>
>>  -   I've mostly stopped using the Admin generator. I find it way, 
>> way  
>> too verbose for my liking.
>>
>> So what have others found? how do you optimize you Symfony Apps?
>>
>> - Piers
>>
>>
>>
>>   
>> 
>>> http://www.alrond.com/en/2007/jan/25/performance-test-of-6-leading- 
>>> frameworks/
>>>
>>> Bad marketing for our lovely framework.
>>>
>>> -- 
>>> Grimoire Guru
>>> SourceMage GNU/Linux
>>>
>>> 
>>>   
>>   
>> 
>
>
> >
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: FYI: Symfony Benchmark

2007-06-07 Thread Jay Klehr

He links to the source code he used:

http://static.alrond.com/source_sym.txt

Jay

Piers Warmers wrote:
> I'd love to some of the code used in these tests. I know from my  
> experiences with frameworks, stylistic coding changes can have a huge  
> bearing on speed.
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Doctrine bug

2007-06-06 Thread Jay Klehr

In Doctrine/Query.php change this line:

$q  = 'SELECT COUNT(DISTINCT ' . 
$this->getTableAlias($table->getTableName())

to:

$q  = 'SELECT COUNT(DISTINCT ' . $this->getTableAlias($componentAlias, 
$table->getTableName())

Which will fix your short alias exception, however, you may start to get 
"can't find relation 'id'" errors.  To fix those I had to remove this 
from my Generated model files (if you have any relationships setup in 
your YML file, the models may have this added to their "hasMany" and 
"hasOne" entries in the setup):

array('foreign' => 'id')

My app works again with these changes.  However, if I try to use the 
"counterpart" YML option for my Many to Many relationships, some odd 
things happen which I haven't figured out yet.  Without counterpart, 
everything is fine.

Jay

[EMAIL PROTECTED] wrote:
> Hi list,
>
> I have a problem with SfDoctrine plugin rev > 4129 : there seems to be
> a bug in the hydrating process where the "short alias" for a table
> could not be found.
> Here is the error triggered when displaying a pager in an auto
> generated backend :
>
> [Doctrine_Hydrate_Exception]
> Couldn't get short alias for members
> stack trace
>
> * at ()
>   in SF_ROOT_DIR/plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/
> Hydrate.php line 320 ...
>
> * at Doctrine_Hydrate->getTableAlias('members')
>   in SF_ROOT_DIR/plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/
> Query.php line 1132 ...
>
> * at Doctrine_Query->count()
>   in SF_ROOT_DIR/plugins/sfDoctrinePlugin/lib/
> sfDoctrinePager.class.php line 56 ...
>
> * at sfDoctrinePager->init()
>   in SF_ROOT_DIR/cache/backend/dev/modules/autoMember/actions/
> actions.class.php line 44
>
>
> The problem lies in Doctrine/Query.php line 1132 :
> $q  = 'SELECT COUNT(DISTINCT ' . $this->getTableAlias($table-
>   
>> getTableName())
>> 
> But the getTableAlias method asks for 2 arguments, and throws an error
> if the second one is null 
>
> Thank's for helping me solving this doctrine bug.
>
> F.
>
>
> >
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Using Propel and Doctrine in the same project

2007-05-24 Thread Jay Klehr

Erm, that should've been "+1 for the *former*", not the latter.  ;-)

Jay
>
> At this point I'd just like to know the direction of symfony. Is there
> a plan to support multiple ORM's in the future or will we continue
> down divided roads?
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Using Propel and Doctrine in the same project

2007-05-24 Thread Jay Klehr

+1 for the latter, it bothers me that there are two plugins for a lot of 
the more popular plugins because someone decided they need to port it to 
Doctrine.  Talk about violating the DRY principle.  ;-)

Hopefully the Symfony core changes to be "ORM agnostic" as you've said, 
as it seems to be the best solution.

Symfony is the only framework (of the ones I follow) that seems to have 
this issue (of more than one ORM being used by its followers), but that 
may be due to choosing a third party ORM instead of writing their own (I 
don't disagree with this approach).

I'm excited to see what happens though (I'm a sfDoctrine user myself).

Jay

Jon Todd wrote:
> At this point I'd just like to know the direction of symfony. Is there
> a plan to support multiple ORM's in the future or will we continue
> down divided roads?
>
>
>
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: dynamically generating stylesheet

2007-05-24 Thread Jay Klehr

I'd recommend you think twice about having PHP serve your CSS files, 
it's unnecessary overhead, and won't scale very well.  I'd suggest 
looking into a generator solution, where you trigger the css file to be 
created, so that your webserver can still serve a static CSS file.  Even 
a caching solution requires PHP to sit on top of the CSS request to 
determine if it should serve the cached version or generate a new copy.  
PHP will always be slower than serving a static file, and PHP will 
always put more load on your machine than serving a static file.

I don't know your situation, so perhaps there is a good use case for 
what you're proposing, just be aware of the implications of having all 
of the Symfony code loaded for at least two requests per pageview (and 
be sure you set it up so the browser can still cache the CSS, otherwise 
it'll happen with every pageview.)

Jay

Roel Vanhout wrote:
> Hi,
>
> I'd like to generate my stylesheets dynamically (so that I can use 
> variables for colors and use the link_to() helper for image tags in 
> @url's) but I didn't find anything specific about it in the manual. All 
> that is really needed is to run the stylesheet template through the 
> template processor once, but that doesn't seem to be possible. So my 
> fallback idea was to delete the /css directory from my web root, make a 
> module called 'css' and have actions in there for every stylesheet I 
> need (at the moment only one, 'style.css'). I think I would have to 
> include my stylesheet with a link to /css/style and not /css/style.css, 
> but I could not find a way to suppress the '.css' that is added 
> automagically by symfony.
>
> Now my actual questions:
> 1) Is this (i.e., treating stylesheets like all other pages, with an 
> action and a template) the way to have dynamic stylesheets?
> 2) How do I stop symfony from adding .css to my stylesheet, or will I 
> have to use mod_rewrite to re-route /css/style.css to /css/style?
>
> Thanks.
>
>
> cheers,
>
> roel
>
> >
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: rich text editor with php syntax highlighting

2007-05-10 Thread Jay Klehr

Eno wrote:
> On May 9, 7:13 pm, "Brian Hoke" <[EMAIL PROTECTED]> wrote:
>
>   
>> Anyone know of a Dreamweaver extension that offers symfony keyword coloring
>> and/or syntax suggestions?
>> 
>
> Not sure what you mean - Symfony code is PHP, so any plugin that can
> syntax highlight PHP would work surely?
>
> Doesn't DW MX have syntax highlighting for PHP code?
>
>   
I believe he's hoping that there's a plugin that allows you to 
auto-complete commonly used Symfony method names and the like.  Similar 
to how Zend added Zend Framework auto-completion to Zend Studio.

Though, yes, Dreamweaver MX does have PHP code syntax highlighting, but 
it does offer a fairly flexible plugin architecture for adding new 
syntax/highlighting as well.

Jay

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---