[symfony-users] Forums are down

2009-11-25 Thread Davinder
Hi,

I'm not sure if anyone is aware but the symfony forums are not
working.

If you go to

http://forum.symfony-project.org/

You get:

The forum is under maintenance. Sorry for the inconvenience.

It's been like this since at least yesterday. I quickly looked through
user posts to see if anyone else mentioned it but there doesn't seem
to be anything.

--

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: symfony build scripts

2009-09-28 Thread Davinder

Hi everyone,

I'll take a look at the suggestions given. Thanks for the great
information!

Davinder

On Sep 28, 2:52 pm, Richtermeister  wrote:
> Hey Davinder,
>
> I've been using the sfCombinePlugin for that, works very well.
> My only issue is that it doesn't yet take the media parameter into
> consideration, so by default it would lump a print stylesheet together
> with screen ones.. Easy enough to manually add though.
>
> Daniel
>
> On Sep 28, 12:12 pm, Davinder  wrote:
>
>
>
> > Hi,
>
> > I've done a bit of searching on the mailing lists, wiki, forums etc,
> > to see if anyone has written some build scripts that help to
> > facilitate in the qa/production deployments.
>
> > I'm looking for something that will be able to compress the css and js
> > (with yui compressor), add a build number to an url, add the url to
> > the view.yml file, put the right controllers into a package, compress
> > and deploy to a server. I know of a proprietary system that does this
> > at my old work place but I'm looking for something open source that
> > does something similar.
>
> > If anyone knows of anything please let me know.
>
> > Thanks!
>
> > Davinder
--~--~-~--~~~---~--~~
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 build scripts

2009-09-28 Thread Davinder

Hi,

I've done a bit of searching on the mailing lists, wiki, forums etc,
to see if anyone has written some build scripts that help to
facilitate in the qa/production deployments.

I'm looking for something that will be able to compress the css and js
(with yui compressor), add a build number to an url, add the url to
the view.yml file, put the right controllers into a package, compress
and deploy to a server. I know of a proprietary system that does this
at my old work place but I'm looking for something open source that
does something similar.

If anyone knows of anything please let me know.

Thanks!

Davinder
--~--~-~--~~~---~--~~
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: Is symfony-1.0 compatible with php-5.3 ?

2009-08-25 Thread Davinder Mahal

Just last night I checked out an older project using symfony 1.0.20  
and it appears to be working with php 5.3 after I made one change.

I was having an error regarding zend.ze1_compatibility_mode when the  
project ran. Turns out this was removed in php5.3 and thus the check  
for it needs to be removed from the php.yml file located in symfony/ 
data/config/php.yml

The trac ticket: http://trac.symfony-project.org/ticket/6863

After doing that the project loaded (well the page first page did), so  
it should work but there may be other quirks along the way. QA is  
always going to be important.

Hope that helps.

Davinder

On Aug 25, 2009, at 8:32 AM, rinku wrote:

>
> Hi,
>
> Is symfony-1.0 compatible with php-5.3 ??? Has anybody tried it ??
>
>
> Thanks.
>
> >


--~--~-~--~~~---~--~~
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 based shopping carts - hate to reinvent the wheel

2009-08-24 Thread Davinder Mahal
Yah, i know it's easy but why reinvent the wheel each time.

Thanks for the info!

Davinder


On Aug 20, 2009, at 11:03 AM, Marius Rugan wrote:

> http://code.google.com/p/sfshop/
> saw last commit from owner in march.
>
> On Wed, Aug 19, 2009 at 10:58 PM, Davinder Mahal  
>  wrote:
>
> Hello everyone,
>
> It's been a while since I've posted.
>
> I wanted to find out if there are any particular resources on symfony
> shopping carts. I'd hate to reinvent the wheel so I thought I'd ask
> first.
>
> I've found the cookbook and the sfShoppingCartPlugin but seems a
> little old (and perhaps weak).
>
> I was wondering if there are any other open source solutions to
> symfony based carts.
>
> I've search numerous resources and haven't really found anything so I
> assume there isn't.
>
> Anyway urls or info would be great.
>
> Cheers,
>
> Davinder
>
>
>
>
> >


--~--~-~--~~~---~--~~
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 based shopping carts - hate to reinvent the wheel

2009-08-20 Thread Davinder Mahal

Hello everyone,

It's been a while since I've posted.

I wanted to find out if there are any particular resources on symfony  
shopping carts. I'd hate to reinvent the wheel so I thought I'd ask  
first.

I've found the cookbook and the sfShoppingCartPlugin but seems a  
little old (and perhaps weak).

I was wondering if there are any other open source solutions to  
symfony based carts.

I've search numerous resources and haven't really found anything so I  
assume there isn't.

Anyway urls or info would be great.

Cheers,

Davinder

--~--~-~--~~~---~--~~
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: Advise me a cms and ecommerce system/platform to use beyond symfony...

2008-04-15 Thread Davinder Mahal

Have you looked at SteerCMS which is a symfony driven cms solution?

http://www.steercms-project.org/



On Apr 15, 2008, at 2:34 PM, Eno wrote:

>
> On Apr 14, 9:33 pm, "Jonathan Wage" <[EMAIL PROTECTED]> wrote:
>
>> One day with symfony maybe :) But until then I would vote for  
>> Drupal in the
>> php world.
>
>
> Or Joomla + VirtueMart plugin...
>
>
>
>
> >


--~--~-~--~~~---~--~~
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: Square Facebook type thumbnail

2008-01-23 Thread Davinder Mahal
Dave,

I'd like to see yui support. I heard it rocks. ;-)


On Jan 23, 2008, at 4:02 PM, Dave Dash wrote:

> :) it's a bit dated, let me know how it works.  I'll probably redo  
> it in a plugin and support either jquery or yui.
>
> On Dec 10, 2007 11:04 AM, Tom Haskins-Vaughan <  
> [EMAIL PROTECTED]> wrote:
>
> kdizza, you've hit the nail on the head! Thanks.
>
> kdizza wrote:
> > http://spindrop.us/2006/09/16/cropping-images-using-dhtml- 
> prototype-and-symfony/
> >
> > On Dec 9, 11:22 pm, Tom Haskins-Vaughan <[EMAIL PROTECTED]>
> > wrote:
> >> Has anybody by any chance created a module that creates a square
> >> thumbnail (like on Facebook) from an uploaded image that they are
> >> willing to share?
> > >
> >
>
>
> gtalk: dave.dash
> >


--~--~-~--~~~---~--~~
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] official routing method for 'default' module ?

2007-07-16 Thread Davinder Mahal

Hi everyone,

Quick question:
What is the correct way to disable the default module for routing?

I basically do not want any user to type in the module with an action  
and view a page.
default/unavailable
default/Login
default/Secure
default/Disabled
etc.

These templates should not be displayed unless the application has  
internally called them. I've read this section in the book, and I  
don't see the specific information.

I currently create a routing method as such:

default_module:
   url:  /default/*
   param: { module: default, action: 404error }

It works, but is this the correct way to do so?

Thank you very much for your help.

Davinder

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

2007-07-09 Thread Davinder Mahal
Hi,

Have you added both lines in the _edit_header.php template?




My line in the generator is

body: { params: size=80x40 rich=true  
tinymce_options='file_browser_callback:"sfMediaLibrary.fileBrowserCallBa 
ck"' }


The code on the wiki escape the have \' but mine worked without.

I had the same problem just yesterday and fixed it by adding those  
two lines of code and the above generator code.

Hope it helps.



On Jul 9, 2007, at 1:28 PM, Ant Cunningham wrote:

>
> Have the steps/configuration for this plugin changed and not been  
> updated in
> the wiki. Ive followed those steps as well as trying different syntax
> techniques in my generator.yml to get it to work with tinymce and  
> none are
> working. I keep getting the error beleo. It seems like  
> sfMEdiaLibrary isnt
> initialized... actually that the script hasn't been loaded. But  
> just for
> good measure I included in the view.yml for my app to see if it made a
> difference. It made none. Ive also tried adding the init call to  
> the helper
> in my theme's editSuccess and _edit_header templates...
>
> JS Console Message:
>
> tinyMCEPopup.windowOpener.sfMediaLibrary has no properties
> openBrowser("src", "image",
> "advimage_image_browser_callback")tiny_mce_popup.js (line 272)
> openBrower("srcbrowser", "src", "image",
> "advimage_image_browser_callback")form_utils.js (line 74)
> [Break on this error] if (eval('typeof(tinyMCEPopup.windowOpener.'  
> + cb +
> ')') == "undefined")
>
>
>
> >

Davinder
--~--~-~--~~~---~--~~
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: Apache 301 redirects to work along aside symfony project

2007-07-09 Thread Davinder Mahal

On Jul 9, 2007, at 8:48 AM, Davinder Mahal wrote:

> I've tried adding a script for article.php in the web directory, with
> a switch statement to catch the id an redirect 301 from there, but I
> can't pass the variable through, I think the symfony rewriting is
> causing the issue.

I've got the article.php switch working. I made a silly late night  
programming error that I noticed when I was just looking at it.

I've solved the problem using this method, but now the question is,  
is this the correct method to use? Or is there a way to do it .htaccess?

Thanks!

Davinder
--~--~-~--~~~---~--~~
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] Apache 301 redirects to work along aside symfony project

2007-07-09 Thread Davinder Mahal

Good morning,

I'm ready to deploy a symfony app to replace a current web site but  
I'm having issues with the apache redirect 301 to work nicely with  
the site.

The current web site has roughly 20 articles dynamically generated in  
the form of:

mysite.com/article.php?articleID=3

I want to map each one to a new url at the same domain that has this  
type of routing:

mysite.com/articles/mycategory/2007/04/12/the-name-of-the-article

I've tried to do redirects from the .htaccess like this:

Redirect permanent /article.php?articleID=3 http://www.mysite.com/ 
articles/mycategory/2007/04/12/the-name-of-the-article

But it will only redirect to

http://www.mysite.com/articles?articleID=3

I've tried adding a script for article.php in the web directory, with  
a switch statement to catch the id an redirect 301 from there, but I  
can't pass the variable through, I think the symfony rewriting is  
causing the issue.

I was even thinking of creating a separate app called article, the  
controller would be article..php and attempt to have redirecting  
within the app. However, the most efficient for redirecting would be  
through apache.

I really need to get the redirect to work correctly for SEO.

Other basic redirects on the site work. It's only the ones with the  
dynamic variables that are causing issues. I've searched for answers  
but just can not find a solution.

Has anyone had these issues before? And if so, how did you solve the  
problem?

Please help soon! I'd like to get this project deployed.

Thank you.

Davinder



--~--~-~--~~~---~--~~
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: sfMediaLibrary plugin errors

2007-06-27 Thread Davinder Mahal
Hi,

I checked out the latest svn version and it now works.

Thank you François.

Best regards.

On Jun 26, 2007, at 11:23 PM, Francois Zaninotto wrote:

>
> That sounds like ticket #1842, fixed yesterday. You should try to  
> use the
> SVN version of the plugin.
>
> François
>
> -Message d'origine-
> De : symfony-users@googlegroups.com [mailto:symfony- 
> [EMAIL PROTECTED]
> De la part de Davinder Mahal
> Envoyé : mardi 26 juin 2007 23:00
> À : symfony-users@googlegroups.com
> Objet : [symfony-users] sfMediaLibrary plugin errors
>
> Hi,
>
> I had this problem several weeks back but had no response. I've now  
> come
> back to the problem and still can't figure it out.
>
> Situation:
>
> I have a symfony project ( from v1.0 but upgraded to 1.0.5)  and I  
> installed
> the sfMediaLibraryPlugin. However, when I go to the page, the page  
> loads but
> is covered with i18N errors. I am not using i18N and it's off. I'm  
> attaching
> a screenshot.
>
> I installed it in the sandbox provided with the sfSimpleBlog (1.1  
> dev). I
> had the same error.  I also installed it ini a blank project i have  
> in my
> svn respiratory that was created from symfony 1.0.3, same problem.
>
> I then initiated a brand new project under symfony 1.0.5 and  
> immediately
> installed the sfMediaLibraryPlugin. When I went to the module, it  
> worked.
>
> I want the plugin to work in my current project, but I don't know  
> what could
> possibly be causing this problem. Does anyone, please, have any ideas?
>
> I tried replacing the settings.yml file from the new working  
> project to my
> current project, but it did not fix the problem.
>
> I really don't know where else to look.
>
> Please help.
>
> Thank you so much.
>
>
>
>
>
> >

Davinder S. Mahal
Principal / Lead Developer
DSM Cyber Media
http://www.dsmcybermedia.com
{---}
internet & media development
Union City, CA
+011 510-489-4827
[EMAIL PROTECTED]



--~--~-~--~~~---~--~~
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: sfMediaLibrary plugin errors

2007-06-26 Thread Davinder Mahal
A quick update. I've realized, this only happens in the dev  
environment. Including the new initiated project. The Dev env. fails.

Is this a bug then?



On Jun 26, 2007, at 1:59 PM, Davinder Mahal wrote:

> Hi,
>
> I had this problem several weeks back but had no response. I've now
> come back to the problem and still can't figure it out.
>
> Situation:
>
> I have a symfony project ( from v1.0 but upgraded to 1.0.5)  and I
> installed the sfMediaLibraryPlugin. However, when I go to the page,
> the page loads but is covered with i18N errors. I am not using i18N
> and it's off. I'm attaching a screenshot.
>
> I installed it in the sandbox provided with the sfSimpleBlog (1.1
> dev). I had the same error.  I also installed it ini a blank project
> i have in my svn respiratory that was created from symfony 1.0.3,
> same problem.
>
> I then initiated a brand new project under symfony 1.0.5 and
> immediately installed the sfMediaLibraryPlugin. When I went to the
> module, it worked.
>
> I want the plugin to work in my current project, but I don't know
> what could possibly be causing this problem. Does anyone, please,
> have any ideas?
>
> I tried replacing the settings.yml file from the new working project
> to my current project, but it did not fix the problem.
>
> I really don't know where else to look.
>
> Please help.
>
> Thank you so much.
>
>
> >
> 

Davinder S. Mahal
Principal / Lead Developer
DSM Cyber Media
http://www.dsmcybermedia.com
{---}
internet & media development
Union City, CA
+011 510-489-4827
[EMAIL PROTECTED]



--~--~-~--~~~---~--~~
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: admin generator in a plugin

2007-06-26 Thread Davinder Mahal
Hi,

Thanks for the response. It wasn't the enabling of the module I had a  
problem with. It's fixed now. I was able to do it several days ago  
and can't remember now 'exactly' what i did. It was mainly a naming  
issue between classes and modules.

Davinder

On Jun 25, 2007, at 4:32 AM, Luciano A. Andrade wrote:

> Not shure if this is your case, but i think you missing the
> enable_module (o similar) in your aplication, you shuld follow the
> sfGuard plugin wich is the example you probably need.



--~--~-~--~~~---~--~~
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] admin generator in a plugin

2007-06-22 Thread Davinder Mahal
Hi,

I'm writing my first plugin. I've created the frontend module, and  
now I'm attempting to work on the backend module. I've created it  
before in another project using the admin generator. I want to  
essentially use the same thing, but I can't figure out how to. I saw  
an email yesterday and it mentioned to possibly create it in the  
application and then move it to the plugin. I've done that but it  
doesn't work for me.

I've created a module in

myPlugin/modules/myAdminModule

The error I get is:

Fatal error: Class 'automyAdminModuleActions' not found in ' ... '/ 
actions/actions.class.php'

Basically, what's the best way to create an admin module in a plugin  
using the admin generators? Is this the correct location for it?

I've also tried to disect other plugins, but I'm still confused a  
little.

Please help.

Thank you very much.

Davinder S. Mahal



--~--~-~--~~~---~--~~
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: Problem with pear with symfony plugin-install

2007-06-04 Thread Davinder Mahal
Hi,

You have to set the path to your PEAR.php within your php.ini file of  
your php install.

Hope that helps.


On Jun 4, 2007, at 3:43 PM, Arnaud wrote:

>
> Hello,
>
> I've got an error when i want to install a plug-in :
> this problem with pear is only when i make this command.
>
> $ symfony plugin-install http://plugins.symfony-project.com/ 
> sfPrototypeWindowPlugin
>
> Warning: require_once(PEAR.php): failed to open stream: No such file
> or directory in /Applications/xampp/xamppfiles/lib/php/pear/data/
> symfony/tasks/sfPakePlugins.php on line 147
>
> Fatal error: require_once(): Failed opening required
> 'PEAR.php' (include_path='/Users/arnaudtanguy/Sites/sfprojects/allyno/
> lib:/Users/arnaudtanguy/Sites/sfprojects/allyno/apps//lib::/
> Applications/xampp/xamppfiles/lib/php/pear/symfony/vendor:.:/
> Applications/xampp/xamppfiles/lib/php') in /Applications/xampp/
> xamppfiles/lib/php/pear/data/symfony/tasks/sfPakePlugins.php on line
> 147
>
> How can i solve that ?
>
> Thx.
>
> My symfony version : symfony version 1.0.3
> I'm on a Mac OSX 10.4.9
>
>
> >

Davinder S. Mahal
Principal / Lead Developer
DSM Cyber Media
http://www.dsmcybermedia.com
{---}
internet & media development
Union City, CA
+011 510-489-4827
[EMAIL PROTECTED]



--~--~-~--~~~---~--~~
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] sfMediaLibraryPlugin i18N

2007-06-04 Thread Davinder Mahal
Hi,

I've installed sfMediaLibraryPlugin via Pear into a project - my  
first use of sfMediaLibraryPlugin. I followed the directions to  
enable it, and went to backend_dev.php/sfMediaLibrary and the page  
displays the Media Library. However, I also get a mass of errors  
related to i18N, even though I'm not using it and therefore have not  
enabled it. I haven't used i18N before either, so I'm not too  
familiar with it within symfony. (at least not yet)

These are the errors I'm getting, if you can help and let me know  
what could be causing this and how to fix it.
Again, I'm not using nor do I want to use i18N.

Thank you,
Davinder

Warning: Invalid argument supplied for foreach() in /opt/local/lib/ 
php/pear/symfony/helper/I18NHelper.php on line 36

Warning: strtr() [function.strtr]: The second argument is not an  
array. in /opt/local/lib/php/pear/symfony/helper/I18NHelper.php on  
line 44


Warning: Invalid argument supplied for foreach() in /opt/local/lib/ 
php/pear/symfony/helper/I18NHelper.php on line 36

Warning: strtr() [function.strtr]: The second argument is not an  
array. in /opt/local/lib/php/pear/symfony/helper/I18NHelper.php on  
line 44

Warning: Invalid argument supplied for foreach() in /opt/local/lib/ 
php/pear/symfony/helper/I18NHelper.php on line 36

Warning: strtr() [function.strtr]: The second argument is not an  
array. in /opt/local/lib/php/pear/symfony/helper/I18NHelper.php on  
line 44

Warning: Invalid argument supplied for foreach() in /opt/local/lib/ 
php/pear/symfony/helper/I18NHelper.php on line 36

Warning: strtr() [function.strtr]: The second argument is not an  
array. in /opt/local/lib/php/pear/symfony/helper/I18NHelper.php on  
line 44


Warning: Invalid argument supplied for foreach() in /opt/local/lib/ 
php/pear/symfony/helper/I18NHelper.php on line 36

Warning: strtr() [function.strtr]: The second argument is not an  
array. in /opt/local/lib/php/pear/symfony/helper/I18NHelper.php on  
line 44

Warning: Invalid argument supplied for foreach() in /opt/local/lib/ 
php/pear/symfony/helper/I18NHelper.php on line 36

Warning: strtr() [function.strtr]: The second argument is not an  
array. in /opt/local/lib/php/pear/symfony/helper/I18NHelper.php on  
line 44



Davinder S. Mahal


--~--~-~--~~~---~--~~
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: Routing by slug.. getSlug missing?

2007-05-23 Thread Davinder Mahal
Hi,

Thank you very much for the response. I've created a slug and indexed  
it. Everything is working now.

Cheers,

Davinder

On May 23, 2007, at 12:55 PM, Fabian Lange wrote:

> Hello,
>
> you are right. The book doesn't say something about this. You could  
> assume that this works out of the box, but you have to do what you  
> did. The proposed way is to add a db column called slug, get the  
> getter and setter generated and set it to some url friendly value.
>
> Here a snipped of my app, tailored fore some known german titles:
>
>
>
> $v=utf8_decode($this->getTitle());
>
> $skipChars = array("&", "/", "-");
>
> $v = str_replace($skipChars, "", $v);
>
> $v = str_replace(array("Ö","ö","Ä","ä","Ü","ü","ß"),
>
> array("Oe","oe","Ae","ae","Ue","ue","ss"),$v);
>
> $v = preg_replace("/\s+/i","_",$v);
>
> return $v;
>
>
>
> .: Fabian
>
> From:  
> [EMAIL PROTECTED] 
> oups.com  
> [mailto:grbounce-3gx0ZwUAAACbeXgKRGBnB9JmBRJWwY06=fabian.lange=web.de@ 
> googlegroups.com] On Behalf Of Davinder Mahal
> Sent: Mittwoch, 23. Mai 2007 20:51
> To: symfony-users@googlegroups.com
> Cc: Davinder Mahal
> Subject: [symfony-users] Routing by slug.. getSlug missing?
>
>
>
> Hi,
>
>
>
> I'm following the book's method of routing by the slug. I've added  
> the routing method, changed the links and created the action. But  
> the page doesn't want to work. Instead I always get
>
>
>
> Warning: call_user_func_array() [function.call-user-func-array]:  
> First argument is expected to be a valid callback, 'News::getSlug'  
> was given in /opt/local/lib/php/pear/symfony/view/escaper/ 
> sfOutputEscaperObjectDecorator.class.php on line 64
>
>
>
> I've looked in the model and I can not find a getSlug() function  
> anywhere. I created a basic getSlug function in the News.php class  
> which returns a string, once I did this, the page loaded without  
> the error and link with the returned string.
>
>
>
> Isn't symfony supposed to create the getSlug function itself? I've  
> issued a propel-build-all, and a clear cache but nothing.
>
>
>
> Am I missing something? Or is symfony? I'm using symfony 1.0.2.
>
>
>
> I've searched the wiki, forums and lists, but i can't seem to find  
> anything relevant.
>
>
>
> Any help will be great.
>
>
>
> Thank you.
>
>
>
> Davinder
>
>
>
>
>
> The following is my code;
>
>
>
> news_by_slug:
>
>   url:  /news/:slug
>
>   param: { module: news, action: permalink }
>
>
>
> I've changed the links
>
>
>
> getTitle(), '@news_by_slug?slug='. $news- 
> >getSlug(), array('class' => 'newslink') ) ?>
>
>
>
> And i've created the action
>
>
>
>   public function excutePermalink()
>
>   {
>
>   $news = NewsPeer::retrieveBySlug($this->getRequestParameter 
> ('slug'));
>
>   $this->forward404Unless($news);
>
>   $this->news = $news;
>
>   }
>
>
>
>
> >
>

Davinder S. Mahal
Principal / Lead Developer
DSM Cyber Media
http://www.dsmcybermedia.com
{---}
internet & media development
Union City, CA
+011 510-489-4827
[EMAIL PROTECTED]



--~--~-~--~~~---~--~~
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: Routing by slug.. getSlug missing?

2007-05-23 Thread Davinder Mahal
Hello.

I think I got it. I wasn't thinking clearly. I have to create all the  
functions myself and Slug would get getTitleSlug() where I would have  
to add and replace '_' in the url, correct?

Doing so, and adding my own functions I was able to get it to work.

It'll be great just to get confirmation on that, just in case I am in  
fact missing something.

Thanks,

Davinder

On May 23, 2007, at 11:50 AM, Davinder Mahal wrote:

> Hi,
>
> I'm following the book's method of routing by the slug. I've added  
> the routing method, changed the links and created the action. But  
> the page doesn't want to work. Instead I always get
>
> Warning: call_user_func_array() [function.call-user-func-array]:  
> First argument is expected to be a valid callback, 'News::getSlug'  
> was given in /opt/local/lib/php/pear/symfony/view/escaper/ 
> sfOutputEscaperObjectDecorator.class.php on line 64
>
> I've looked in the model and I can not find a getSlug() function  
> anywhere. I created a basic getSlug function in the News.php class  
> which returns a string, once I did this, the page loaded without  
> the error and link with the returned string.
>
> Isn't symfony supposed to create the getSlug function itself? I've  
> issued a propel-build-all, and a clear cache but nothing.
>
> Am I missing something? Or is symfony? I'm using symfony 1.0.2.
>
> I've searched the wiki, forums and lists, but i can't seem to find  
> anything relevant.
>
> Any help will be great.
>
> Thank you.
>
> Davinder
>
>
> The following is my code;
>
> news_by_slug:
>   url:  /news/:slug
>   param: { module: news, action: permalink }
>
> I've changed the links
>
> getTitle(), '@news_by_slug?slug='. $news- 
> >getSlug(), array('class' => 'newslink') ) ?>
>
> And i've created the action
>
>   public function excutePermalink()
>   {
>   $news = NewsPeer::retrieveBySlug($this->getRequestParameter 
> ('slug'));
>   $this->forward404Unless($news);
>   $this->news = $news;
>   }
>
> >

Davinder S. Mahal
Principal / Lead Developer
DSM Cyber Media
http://www.dsmcybermedia.com
{---}
internet & media development
Union City, CA
+011 510-489-4827
[EMAIL PROTECTED]



--~--~-~--~~~---~--~~
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] Routing by slug.. getSlug missing?

2007-05-23 Thread Davinder Mahal
Hi,

I'm following the book's method of routing by the slug. I've added  
the routing method, changed the links and created the action. But the  
page doesn't want to work. Instead I always get

Warning: call_user_func_array() [function.call-user-func-array]:  
First argument is expected to be a valid callback, 'News::getSlug'  
was given in /opt/local/lib/php/pear/symfony/view/escaper/ 
sfOutputEscaperObjectDecorator.class.php on line 64

I've looked in the model and I can not find a getSlug() function  
anywhere. I created a basic getSlug function in the News.php class  
which returns a string, once I did this, the page loaded without the  
error and link with the returned string.

Isn't symfony supposed to create the getSlug function itself? I've  
issued a propel-build-all, and a clear cache but nothing.

Am I missing something? Or is symfony? I'm using symfony 1.0.2.

I've searched the wiki, forums and lists, but i can't seem to find  
anything relevant.

Any help will be great.

Thank you.

Davinder


The following is my code;

news_by_slug:
   url:  /news/:slug
   param: { module: news, action: permalink }

I've changed the links

getTitle(), '@news_by_slug?slug='. $news- 
 >getSlug(), array('class' => 'newslink') ) ?>

And i've created the action

   public function excutePermalink()
   {
$news = NewsPeer::retrieveBySlug($this->getRequestParameter 
('slug'));
$this->forward404Unless($news);
$this->news = $news;
   }
--~--~-~--~~~---~--~~
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: installing symfony on MacBook Pro

2007-05-21 Thread Davinder Mahal
Try this...

http://trac.symfony-project.com/trac/wiki/SymfonyMacOsXIntel



On May 21, 2007, at 7:16 AM, Olivier Mansour wrote:

>
> Le 19 mai 07 à 21:26, Karl Timmermann a écrit :
>
>>
>>
>> On May 19, 2007, at 11:04 AM, Brian Hoke wrote:
>>
>>> I just got a MacBook Pro after years of developing on a PC - what's
>>> my best
>>> bet for getting PHP5/MySQL5/symfony installed? Is there a bundle
>>> similar to
>>> xampp from which I can start? TIA,
>>
>>
>> Don't listen to anyone else (no offense to everyone that answered).
>> The best way is to use MacPorts to install it. Up to date compared to
>> the other methods, and has many more features enabled.
>
> Hey, do you have any hints or url to install PHP5/MySQL ... with  
> macports ?
>
>>
>>
>
>
>
> -- 
> Olivier MANSOUR   http://www.clever-age.com
> Clever Age Lyon - conseil en architecture technique
> GSM: +33 6 11 03 23 77  Tél: +33 4 78 89 46 45
>
> Clever Age vous invite à ses petits déjeuners du Jeudi
> http://www.clever-age.com/actualites/petits-dejeuners/
>
> Clever Age recrute sur Paris, Lyon et Bordeaux
> http://www.clever-age.com/societe/nous-rejoindre/
>
>
>
> >

Davinder S. Mahal
Principal / Lead Developer
DSM Cyber Media
http://www.dsmcybermedia.com
{---}
internet & media development
Union City, CA
+011 510-489-4827
[EMAIL PROTECTED]



--~--~-~--~~~---~--~~
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: IE Conditionals & transparent pngs within symfony

2007-04-28 Thread Davinder Mahal

Thanks for your help.

I've been playing with things and it's coming along well.

Thanks again!

On Apr 27, 2007, at 12:52 PM, Lukas Kahwe Smith wrote:

>
> Davinder Mahal wrote:
>
>> I'm thinking of rearranging some of the design to create jpgs instead
>> of transparent pngs (although this would seriously change the look),
>> however, i still would have other css content that needs to be
>> adjusted for IE6. So i need some type of conditionals in there. But
>> with symfony, what's the best way?
>
> I wrote my own image helper for handling transparent png's .. or for
> something similar. In my case I needed to generate png's from text in
> the i18n database, but I think you can figure out how the relevant  
> parts
> work from the code below:
>
> function trans_image_tag($source, $args = array(), $options = array())
> {
>if (preg_match('/msie.[4|5|6]/i', $_SERVER['HTTP_USER_AGENT'])) {
>  if (empty($options['style'])) {
>$options['style'] = '';
>  } else {
>$options['style'].= '; ';
>  }
>  $options['style'].= "filter:
> progid:DXImageTransform.Microsoft.AlphaImageLoader 
> (src='".trans_image_path($source,
> $args, $options)."', sizingMethod='image')";
>  $options['alt'] = __($source);
>  return image_tag('blank.gif', $options);
>}
>
>$args['edit'] = true;
>$args['image'] = 'tag';
>$args['options'] = $options;
>return __($source, $args);
> }
>
> As for images in your style sheets. I try to avoid this as much as
> possible. Generally I do not want to reference files inside my css  
> or js
> files.
>
> As for MSIE6 hacks you just dump those into a file with MSIE  
> conditional
> comments around:
> 
>
> regards,
> Lukas
> 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] IE Conditionals & transparent pngs within symfony

2007-04-27 Thread Davinder Mahal

Hi,

I've got a symfony app that uses transparent pngs which do not  
display correctly within IE6. I also have some other css issues with  
IE6, all of which are IE 6 bugs.

I need help fixing this.

I've done this before but not within a symfony app. There are  
limitations in symfony for css conditional statements. I've seen a  
patch for it ( http://trac.symfony-project.com/trac/ticket/1677 )-  
but not sure how to use the patch. I've also seen some other scripts  
which adds processing time to the page. I've searched, trac tickets,  
the groups, wiki etc.

What is the best practice to correct this?

Some of my images are within the style sheets, and some others are  
displayed using the image_tag helper.

I'm thinking of rearranging some of the design to create jpgs instead  
of transparent pngs (although this would seriously change the look),  
however, i still would have other css content that needs to be  
adjusted for IE6. So i need some type of conditionals in there. But  
with symfony, what's the best way?

Thanks in advance.

Davinder

--~--~-~--~~~---~--~~
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: sync production: web to html mapping

2007-04-13 Thread Davinder Mahal
Hi,

Thanks for the reply.

I had originally done those directions with a slight modification and  
that mod didn't work. I didn't put everything in it's own symfony  
directory. And then whenever I issued the ln -s command, it threw the  
link in the wrong location, placing a link to web in the html directory.

I placed everything in it's own symfony directory, deleted the html  
directory, and then issued the ln command. Then it worked.

As for the other problem, I have that issue also and will be looking  
more into it. It's got to do with the alias in the virtual host. (At  
least that's how it's done on my local machine).  Will let you know  
if I get it to work.

Thanks,

Davinder.

On Apr 13, 2007, at 12:13 PM, Ant Cunningham wrote:

>
> Well you can sutomize the structure of your applications if you  
> want. Theres
> a secition in the Symfony Book on it.
>
> But what I do is just deploy the application to ~/sitedomain.com/ 
> projectname
> then I make a sim link in ~/sitedomain.com like so:
>
> ln -s projectname html
>
> review the end of the symfony installation howto in the mediatemple  
> kb for
> more info.
>
> As an aside ive been having a trouble with getting the $sf_data_dir/ 
> web/sf
> to recognize on the the server. Still havent solved it yet...

Davinder S. Mahal
Principal / Lead Developer
DSM Cyber Media
http://www.dsmcybermedia.com
{---}
internet & media development
Union City, CA
+011 510-489-4827
[EMAIL PROTECTED]



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [EMAIL PROTECTED]
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] sync production: web to html mapping

2007-04-13 Thread Davinder Mahal

Hello,

I'm attempting to use sync production to put my first symfony project  
on my server at Media Temple.  Everything works well except for one  
thing. Media Temple uses 'html' as their public directory whereas  
symfony is 'web'. When I sync production, it always deletes the  
'html' dir and adds the 'web' dir, rendering the web site useless  
until i manually change it.

Ideally, I'd like to configure 'sync production' to map the 'web' to  
'html', but I have no idea how to do so.

I know I can change the configuration in symfony to use 'html'  
instead of 'web', but I don't really want to do this as i'd like to  
leave symfony in it's original configuration layout.

Can anyone help?

Thanks.

Davinder

p.s. I'd like to thank the developers of Symfony for a brilliant  
Framework.  :-)




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [EMAIL PROTECTED]
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
-~--~~~~--~~--~--~---