Ok Alexander.
I will try those things. Thanks a lot for your help.
Vikram
On Feb 17, 4:46 pm, Alexandru-Emil Lupu gang.al...@gmail.com wrote:
you might have 2 options:
insert all those stuff in some classes as static methods
either you make a Helper usually [any of
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
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 vikramvmalhotra1...@gmail.com wrote:
Hello all,
In the Jobeet project tutorial in the Symfony documentation, I
frequently saw the use of sfConfig::get(
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
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 vikramvmalhotra1...@gmail.com wrote:
Hello
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
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 to
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
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
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
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
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 sumedh.inam...@gmail.com
To: symfony
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 gmccums...@gmail.com 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
+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
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.
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:
On 10 Feb, 16:57, Garakkio garak...@gmail.com 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
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 you
+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 am
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
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 gmccums...@gmail.com
To:
We wanted to use the new forms structure ;)
On 2/17/09, Lee Bolding l...@leesbian.net 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'
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) expect
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.com
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
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
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 first
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
That is nice, thank you :)
On 16 Lut, 23:09, Maerlyn maerl...@gmail.com wrote:
PHPs built-in function_exists() may be faster, although not that
elegant.
On Feb 16, 7:40 pm, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote:
Hi guys.
I am working on a local Wamp server (WIndows) so I use
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
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()
{
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
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
tomek.ignat...@gmail.comwrote:
Hi
I have this situation on my server
A have symfony project instaled in:
home/domains/myproject/public_html/uploads/scans has 777
home/domains/myproject/public_html/uploads has 777
:(
2009/2/17 Alexandru-Emil Lupu gang.al...@gmail.com
hi!
i might believe that is a permission issue...
run a symfony fix-perms ... task or chmod 777 -R uploads
Alecs
On Tue, Feb
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
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 sake of it'
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
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
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 (mainly
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
Thanks a lot Gareth and small.. Your suggestions will surely help a
lot.
Thank you.
Vikram
On Feb 17, 7:58 pm, small sherifgmans...@gmail.com 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
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
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 $helpers
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
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
Saludos a todos estoy empezando a conocer Symfony y me tope con el
siguiente error al ejecutar:
E:\xampp\htdocs\Jobeetsymfony propel:build-sql
schemaconverting E:/xampp/htdocs/Jobeet/config/schema.yml to XML
schemaputting E:/xampp/htdocs/Jobeet/config/generated-schema.xml
propel
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
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 all
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
On Tue, Feb 17, 2009 at 5:01 PM, Lee Bolding l...@leesbian.net 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
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
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
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 pgo...@gmail.com wrote:
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.
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
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.
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
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 vikramvmalhotra1...@gmail.com wrote:
Hello Gareth,
I tried to fetch the a settings made in app.yml from inside the model,
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 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
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 sumedh.inam...@gmail.com 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
60 matches
Mail list logo