Anyone?
Does anyone here use this practice of warming up cache by crawling the
pages after a build?
On Feb 17, 2:21 pm, Sumedh wrote:
> Hi Friends,
>
> I am using Symfony 1.0.
>
> I am trying to write a batch script that tries to populate the symfony
> cache by crawling (wget in spider mode) so
you can do it very easy:
$this->redirect("http://www.example.com";);
just use "Absolute URL".
On Feb 17, 12:56 am, "bpfar...@gmail.com" wrote:
> I'm probably just missing something, but is there an easy way to
> formulate a POST request to a non-symfony script through Symfony?
>
> I'm POSTing
Oh no... I got that. I need to prefix the name of setting with 'app_'.
Ok now it works fine.
Sorry for bothering. :)
Thanks and Regards
Vikram
On Feb 18, 2:24 pm, SeeVik wrote:
> Hello Gareth,
>
> I tried to fetch the a settings made in app.yml from inside the model,
> but it fetches nothing.
Hello Gareth,
I tried to fetch the a settings made in app.yml from inside the model,
but it fetches nothing. However it is displaying the value correctly
when used in a template.
Contents of app.yml
--
#default:
all:
some_literal: hello
Contents of
On Tue, 17 Feb 2009, samokhinva...@gmail.com wrote:
> I use symfony action caching, and I wonder if it is possible to force
> symfony to implement the action inspite if it is in cache? I need that
> because my page's appearance depends on what user watches this page -
> the author or anybody else
Well, the include paths did not help much. It only worked fine when I
had some files opened in the editor, otherwise it would not find them.
Which files you would ask. I think the error I was getting was about
not finding some class, so I searched for the file with the class and
I opened it in the
Hi,
I am creating a form corresponding to the following type of model:
provider:
id: ~
ref_level:
id: ~
description: { type: varchar(20) }
provider_notify_level:
id:
provider_id:
ref_level_id:
So in my page, I'm choosing the levels for which the provider will be
notified. I've
Interesting. How did you set up your include paths?
I just created a PHP project which has my symfony project in it, and I
added my symfony PEAR install root, and the symfony data/web
directories as my two include paths?
Cheers,
Steve
On Feb 17, 9:43 pm, Pablo Godel wrote:
> I've some crazy p
I've some crazy problems as well, most of them seem to be related
include paths and things of that sort. I even found that if I have a
file from the symfony core open in the editor, the debug session works
fine, if I close it, I get some crazy errors, very weird.
Pablo
On Tue, Feb 17, 2009 at 9:
I've been getting some inconsistent results with the Zend Debugger
running on Eclipse PDT.
I've created a debug configuration for one of my actions based on the
URL. eg: http://localhost/frontend_dev.php/register. The local
location i've set is: myproject/web/frontend_dev.php.
When I launch th
On Tue, Feb 17, 2009 at 5:01 PM, Lee Bolding wrote:
> Personally, I don't think 1.2 is ready yet - it seems to me that it
> was rushed to be released so that the Jobeet tutorial could begin on
> December 1st. Hopefully more pragmatism will be evident in the future.
why do you say that 1.2 is no
Thanks, I think my question may not have been clear. I do have a
field called state_prov_id in the form. But I've added two additional
fields: state, and province, which are purely for the view and only
represent a filtered subset of the state+province data, which I've
filtered using the Criteri
The form fields need to be named after their respective db fields.
The select tag/widget should be named ref_state_prov_id instead of
province as you have named it (judging by your code).
Java Guy wrote:
> Hi, I'm doing my first PHP/symfony project and I've spent quite a bit
> of time reading al
Hi,
This mailing list is for communication in english, I think that the
guys of symfony.es run a spanish mailing list.
Hola
Esta lista es para comunicarse en inglés, creo que la gente de
symfony.es corre un lista de correo en español.
Saludos,
Alvaro
On Feb 18, 2009, at 9:22 AM, EynaRix
Saludos a todos estoy empezando a conocer Symfony y me tope con el
siguiente error al ejecutar:
E:\xampp\htdocs\Jobeet>symfony propel:build-sql
>> schemaconverting "E:/xampp/htdocs/Jobeet/config/schema.yml" to XML
>> schemaputting E:/xampp/htdocs/Jobeet/config/generated-schema.xml
>>
I'd definitely go with embedding forms. From the top of my head, when
you build a composite form, it goes like this :
- choose a form in which you'll embed other forms (meaning choose a
model to base your form upon)
- from this form's configure method, embed related objects like
this :
$relatedO
Hi,
I've been trying to find a good example for what I'm trying to do:
I have two types of users: consumers and provider.
The main user profile information is in the consumer table.
Certain specialized users have information in a provider table.
Both consumer and provider have a foreign referenc
Hi, I'm doing my first PHP/symfony project and I've spent quite a bit
of time reading all of the documentation. I have just created a user
registration page, and in it I am encountering an issue regarding how
to deal with form fields that originate from the database, but which
are not saved to th
Ok.never mind. I got the answer to that. Rummaging through the
documentation I found out this
> If you ever need to use a helper outside a template, you can still
> load a helper group from anywhere by calling
> sfProjectConfiguration::getActive()->loadHelpers($helpers),
> where $help
Just one more question this was keeping in mind that I want to use
functions in my template. That's where helpers come in. What if I want
to use some functions in controller? inside my actions? inside
actions.class.php or components.class.php ? What happens then?
Thanks and Regards
Vikram
On
Thanks a lot Gareth and small.. Your suggestions will surely help a
lot.
Thank you.
Vikram
On Feb 17, 7:58 pm, small wrote:
> If you are after a complete guide on app.yml check
> outhttp://symfonynerds.com/blog/?p=183
>
> On Feb 17, 7:46 pm, Gareth McCumskey wrote:
>
> > Oops to add on:
>
> >
Hi everybody, I have the following question.
I use symfony action caching, and I wonder if it is possible to force
symfony to implement the action inspite if it is in cache? I need that
because my page's appearance depends on what user watches this page -
the author or anybody else. So if the aut
On Tue, 17 Feb 2009, Lee Bolding wrote:
> Personally, I don't think 1.2 is ready yet - it seems to me that it
> was rushed to be released so that the Jobeet tutorial could begin on
> December 1st. Hopefully more pragmatism will be evident in the future.
I skipped 1.1 and waited for 1.2 (main
Yeah, I'd agree with that totally.
I had a discussion a while back with a few developers after Rasmus
gave his London frameworks talk. If you compare the call stack for
Symfony and CI, Symfony is horrendous. CI is much better, but this was
for a simple hello world application, so the differ
I have to disagree with Alexandru-Emil Lupu about adding certain
plugins to the core. If anything, you want to be going the other way -
removing stuff from the core and moving it out to a plugin. If you add
stuff to core, then eventually folks will feel the need to fork
Symfony, for the same reas
Hi,
I have some trouble to autoload a class I wrote.
The class is in the file myPropelBaseTask.class.php located in lib/
task folder. Actually that class extends sfPropelBaseTask and is an
abstract class.
I'm trying to extend that class to write the end user tasks.
The problem is that the file m
On 17 Feb 2009, at 16:27, Robin Berjon wrote:
> On Feb 17, 2009, at 16:45 , Lee Bolding wrote:
>> Why did you upgrade?
>>
>> If there weren't any features of the new version you desperately
>> needed, *why* upgrade? it's an unnecessary project risk (as you've
>> discovered). Upgrading 'for the s
Thank you alex! But unfortunately I'm afraid I don't understand what
you mean. Besides I suppose you're really giving me an alternative
solution, whereas I actually want to understand what is going on. I
suspect I have made some mistake, but it's also possible that there's
an error in the tutorial
home/domains/myproject/public_html/uploads/scans has 777
home/domains/myproject/public_html/uploads has 777
:(
2009/2/17 Alexandru-Emil Lupu
>
> hi!
> i might believe that is a permission issue...
> run a symfony fix-perms ... task or chmod 777 -R uploads
>
> Alecs
>
>
> On Tue, Feb 17, 2009 at
hi!
i might believe that is a permission issue...
run a symfony fix-perms ... task or chmod 777 -R uploads
Alecs
On Tue, Feb 17, 2009 at 9:08 PM, Tomasz Ignatiuk
wrote:
>
> Hi
>
> I have this situation on my server
>
> A have symfony project instaled in: home/domain/mydomain/myproject
> And web
hi!
i will tell you just one thing.
php symfony propel:generate-moduleGenerates a Propel module
(propel-generate-crud, propel:generate-crud)
usually "propel:generate-crud" creates a generator file and an action. click
on the link and after that browse
"SF_ROOT/cache/frontend/dev/modules/a
Hi
I have this situation on my server
A have symfony project instaled in: home/domain/mydomain/myproject
And web directory in: home/domain/mydomain/public_html
In ProjectConfiguration.class.php I set everything like this:
public function setup()
{
$this->enableAllPluginsExcept(array('sf
Thanks for your help David.
However, it seems to be different for doctrine. I tried it and it doesn't
work.
The help for *propel:insert-sql* says:
The task connects to the database and executes all SQL statements found in
[config/sql/*schema.sql|COMMENT] files.
But the help for *doctrine:insert-s
That is nice, thank you :)
On 16 Lut, 23:09, Maerlyn wrote:
> PHPs built-in function_exists() may be faster, although not that
> elegant.
>
> On Feb 16, 7:40 pm, Tomasz Ignatiuk wrote:
>
> > Hi guys.
>
> > I am working on a local Wamp server (WIndows) so I use com_create_guid
> > () to generate
How do the ajax call?
--~--~-~--~~~---~--~~
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-
Hello, I'm obviously a symfony beginner (php is new to me too as I'm
coming from a java background); I'm following the tutorial at
http://www.symfony-project.org/tutorial/1_2/my-first-project
I'm in the section titled "Add a record relative to another table"
I got two problems actually; the firs
I'm embedding the sfGuardUserProfile form in the sfGuardUser form but
whenever I submit I get validation errors. Here's the exact error:
---
500 | Internal Server Error | Doctrine_Validator_Exception
Validation failed in class sfGuardUserProfile
8 fields had validation errors:
* 1 validator fai
On Tue, 17 Feb 2009, juro wrote:
> is there a way to pull EXIF data from an image when uploading a file?
Have you looked at the Exif functions in PHP?
http://us.php.net/exif
--
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
Hi,
is there a way to pull EXIF data from an image when uploading a file?
juro
--~--~-~--~~~---~--~~
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.co
On Feb 17, 2009, at 16:45 , Lee Bolding wrote:
> Why did you upgrade?
>
> If there weren't any features of the new version you desperately
> needed, *why* upgrade? it's an unnecessary project risk (as you've
> discovered). Upgrading 'for the sake of it' is pure dumb.
People (rightfully) expec
Hello,
in a generator yml, you can define some section's title, with model
variables, such as :
edit:
title: "Edit object - %%name%%"
Then, %%name%% is replaced by the real name of the object.
How to 18n that ?
If i set a new 18n trans-unit like that :
E
We wanted to use the new forms structure ;)
On 2/17/09, Lee Bolding wrote:
>
>
> Why did you upgrade?
>
> If there weren't any features of the new version you desperately needed,
> *why* upgrade? it's an unnecessary project risk (as you've discovered).
> Upgrading 'for the sake of it' is pure dum
Why did you upgrade?
If there weren't any features of the new version you desperately needed, *why*
upgrade? it's an unnecessary project risk (as you've discovered). Upgrading
'for the sake of it' is pure dumb.
- Original Message -
From: "Gareth McCumskey"
To: symfony-users@googlegrou
I thought I would add my thoughts as I only picked up symfony about 8 months
ago for one project at the company I am working at and we now aim to use it
for all of our web application development work, as well as a few of my own
personal projects.
Getting used to the MVC design pattern was a littl
+1 for comments
wissl wrote:
> +1 for comments in symfony plugin module. It would help immense. The
> forum and ticket system is not the right place to discuss best
> practices and improvement ideas.
>
> As rating is quite difficult for something that is (hopefully) in a
> dynamic improvement I
On Tue, 17 Feb 2009, SeeVik wrote:
> Ok Alexander.
>
> I will try those things. Thanks a lot for your help.
http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_sub_helpers
--
--~--~-~--~~~---~--~~
You received this message because yo
On 10 Feb, 16:57, Garakkio wrote:
> I don't know exactly when, but in last days symfony started to
> segfault for each build-model I do.
> No matter how complex or simple is schema.yml (I even tried with a
> single dummy table with only a primary key).
> I also tried on different machines (my loc
Use the DbFinderPlugin - my FAVOURITE plugin.
Francois converted quite a few of his plugins to use DbFinder - for instance,
sfSimpleBlog is a great example.
I'd like to see a lot more plugins migrated to use DbFinder instead of either
Propel or Doctrine.
- Original Message -
From: "R
On Feb 16, 2009, at 22:25 , Tom Boutell wrote:
> I don't think Symfony 1.2 is all that boggling to learn - especially
> if you follow the Jobeet tutorial.
I think that depends on where you're coming from. Having used other
advanced MVC/PAC frameworks I found symfony fairly simple to pick up.
+1 for comments in symfony plugin module. It would help immense. The
forum and ticket system is not the right place to discuss best
practices and improvement ideas.
As rating is quite difficult for something that is (hopefully) in a
dynamic improvement I am not sure that a plugin rating would rea
If you are after a complete guide on app.yml check out
http://symfonynerds.com/blog/?p=183
On Feb 17, 7:46 pm, Gareth McCumskey wrote:
> Oops to add on:
>
> Feel free to add your own constants to app.yml. For example:
>
> all:
> student_primary_key:
> value: some_value_here
>
> can be acce
Your /sf alias hasn't been set up correctly.
The AJAX helpers automatically add a javascript include from /sf/js/prototype.js
If you haven't configured the alias correctly, then the Prototype JS won't get
loaded.
- Original Message -
From: "Sumedh"
To: "symfony users"
Sent: Tuesday,
Hi all,
I was wondering if someone could tell me if the plugin *sfCombineFilterPlugin
would work for symfony 1.1 as I see that there are releases for 1.0 and 1.2
but not one specifically for 1.1.
Regards
Gareth McCumskey
*
--~--~-~--~~~---~--~~
You received this
The view.yml file has following line -
javascripts:[]
but no specific mention of the prototype JS...
The template doesn't have anything special...i used an AJAX call in
it, and it spit out the error about that function not being present...
On Feb 12, 5:09 pm, Martino Piccinato wrote:
Damien Lepage schrieb:
> I would like to know if there is an easy way to automatically create
> views each time I rebuild my database.
> In other words, is there a place where I can put a custom script which
> will create my views and will be triggered when my database is built (by
> doctrine:b
Hi Friends,
I am using Symfony 1.0.
I am trying to write a batch script that tries to populate the symfony
cache by crawling (wget in spider mode) some pages of the site.
Now, I want to crawl only the pages that are not in cache, for better
efficiency.
So, I want to use $cacheManager->has($int
Dincho Todorov schrieb:
> Or you can directly load the helper anywhere:
> sfLoader::loadHelpers(array('I18N'));
>
> and then use the __() function/helper
I missed that one, thanks!
David
--~--~-~--~~~---~--~~
You received this message because you are subscribed
It's in the cookbook: http://www.symfony-project.org/cookbook/1_2/en/email
RalphMartin a écrit :
> I looked through the API docs to see if symfony had created a class to
> handle email, but I missed it if there is. If so could someone
> provide a link?
>
> Thanks,
> RM
> >
>
>
>
--~--~--
Oops to add on:
Feel free to add your own constants to app.yml. For example:
all:
student_primary_key:
value: some_value_here
can be access with:
sfConfig::get('app_student_primary_key_value');
Hope that helps
Gareth
On 2/17/09, SeeVik wrote:
>
>
> Hello all,
>
> In the Jobeet project
If you are using those functions within a view they really should be helpers
and should be located inside of /app/frontend/lib/helper directory and
should also be named with Helper.php at the end so myFunctionsHelper.php is
what they should be called. Then in the view you want to use them in you ca
You can use that exact same code in the model:
sfConfig::get( 'app_max_jobs_per_page' )
Hope that helps
Gareth
On 2/17/09, SeeVik wrote:
>
>
> Hello all,
>
> In the Jobeet project tutorial in the Symfony documentation, I
> frequently saw the use of sfConfig::get( 'app_max_jobs_per_page' ) or
>
Hello all,
In the Jobeet project tutorial in the Symfony documentation, I
frequently saw the use of sfConfig::get( 'app_max_jobs_per_page' ) or
some settings like these. But everytime these were used in the view
layer. I was wondering if they can be used in the model layer as
well.
Like in one o
Ok Alexander.
I will try those things. Thanks a lot for your help.
Vikram
On Feb 17, 4:46 pm, Alexandru-Emil Lupu wrote:
> you might have 2 options:
> insert all those stuff in some classes as static methods
> either you make a Helper usually "[any of your]lib/helper/yourHelper.php"
> an load
63 matches
Mail list logo