This discussion is similar to this one :
http://groups.google.com/group/symfony-users/browse_thread/thread/a001363810c7a5d5/efd5f207f46253ad?hl=en&lnk=gst&q=email+route#efd5f207f46253ad
Please continue the discussion in the foreign, to find a solution faster.
Thanks,
Alexandre
2009/10/20 Sid Ba
Check if your symfony is up to date. Some improvements were made in routing
system.
Read carefully the reference guide about routing :
http://www.symfony-project.org/reference/1_2/en/05-Factories#chapter_05_routing
Identify what could be done to optimize the loading/caching of your routes.
(I don
Hi,
In my pretty easy CMS application i have written a own configuration
handler, which is called very early during a request.
This request fetches all cms pages from the database and adds all
according routes to the routing.
In this way you could use the link_to and url_for helpers as you are
"How about rewriting the link_to() and url_for() helpers to extract the ID,"
Bad ideea, 2 reasons.
1) you have to remove the url helper from your symfony lib. (if you have
frozen the project ignor this step and check the 2nd step)
2) you would still have problems with this issue. I remember you th
The problem might be in autogenerated "id" field on "Category" - if
Doctrine generates its type different from "idCategory" field that
you've set explicitly. (integer might be mapped to TINYINT, SMALLINT,
MEDIUMINT, ... )
Try to set both explicitly the same type ( for instance integer(4) )
On Oct
On Mon, 19 Oct 2009, Jacob Coby wrote:
> It is a bad design, no doubt about it. I had no part of the design or
> implementation, nor do I know the history of why it was been
> implemented this way. I've only been tasked with deploying it and
> making sure it can stand up to the projected
http://bluehorn.co.nz/2008/12/04/how-to-handle-dot-in-symfony-url/
On Tue, Oct 20, 2009 at 1:47 PM, Steve Sanyal wrote:
>
> Just a clarification. This is a routing issue. It does not seem like
> symfony can parse the URL properly because it includes an email
> address as one of the parameters.
Just a clarification. This is a routing issue. It does not seem like
symfony can parse the URL properly because it includes an email
address as one of the parameters.
Regards,
Steve
On Oct 19, 8:30 pm, Steve Sanyal wrote:
> Hi,
>
> In my registration module, I have a URL which has the usernam
Hi,
In my registration module, I have a URL which has the username
embedded in it. However, if the username itself is an email address
it does not seem that this approach works:
https://myapp/frontend_dev.php/registration/test%40example.com/xsdfsdfadsf098098098/confirm-registration.html
I get
On Oct 19, 2009, at 6:19 PM, Eno wrote:
>
> On Mon, 19 Oct 2009, Jacob Coby wrote:
>
>> I've been working on a symfony 1.2 app that includes a CMS.
>> Unfortunately, the CMS system generates approximately 3000 routes
>> programmatically across 4 different module/actions. Unfortunately
>> there
And what about logs ?
Do they talk of your route ?
Does it works with an URL with some text instead of mail ?
/unsubscribe/email/test for example.
Alexandre
2009/10/19 Eno
>
> On Mon, 19 Oct 2009, Alexandre SALOME wrote:
>
> > Does it enter the action ?
>
> Doesn't get that far, because the
On Mon, 19 Oct 2009, Jacob Coby wrote:
> I've been working on a symfony 1.2 app that includes a CMS.
> Unfortunately, the CMS system generates approximately 3000 routes
> programmatically across 4 different module/actions. Unfortunately
> there is no sort of pattern to the routes and the
symfony provides 2 special routes :
- signin
- secure
You can define them in "settings.yml" of your apps/.../config folder. They
will escape from the security filter, and you should consider them apart
from your website map.
These routes defines :
- *signin* : You have to connect to continue
It is the Doctrine version.
On 19 oct, 18:37, Andrei Dziahel wrote:
> Hi.
>
> Well, IP check *should* work. It looks like a bug. Which version? For Propel
> or Doctrine?
>
> 2009/10/19 HiDDeN
>
>
>
>
>
>
>
> > I have tested this:
>
> > - I logged in marking the "remember me" option.
> > - I clo
I18n fields are not in the form, the in the i18nform.
Example :
CmsPageForm has embed CmsPageI18nForm
So go to your CmsPageI18nForm and unset "title" or "content" field.
Alexandre
2009/10/19 HAUSa
>
> In my form class, I can unset several fields.
> But how can I unset an i18n field?
> >
>
It's possible.
Create your form formatted. OK, it's done
Now, register it in your widgetSchema with addFormFormatter (or something
like this) and enable it with setFormFormatter (or something like this).
2009/10/19 HAUSa
>
> It is possible to make an own formatter for my forms. See the exampl
Symfony 1.3 offers new tasks for removing old classes :
http://www.symfony-project.org/tutorial/1_3/en/whats-new#chapter_64a8dd2fac010cece60fe956d341725f_sub_new_tasks
Sure, you have to master your model, and know that when you're removing a
class from your schema, you have to remove the generate
Have you tried to cache only partials/fragments ?
If the cache.yml doesn't fill your needs, you can create more specific
caching in your partials with cache() and cache_save() methods.
Example :
http://www.php.net/md5>($user->getEmail()), 86400)): ?>
// Your amazingly huge iteration proce
A question: could you show us how your system generates routes?
As Alexandre asked, who generates those routes? And How?
If you dynamically create a a route instance for every record of your
database, is stongly recommend that slug thing.
If you have problems, check the jobeet tutorial for further
Hello,
So I want to show/hide the form fields dynamically in the controller
dependent to the action
You are right :
your form will contains every fields : widgets and validators. Your
validator schema is simple and have strict rules for login and password.
Others are facultative.
So, set yo
On Mon, 19 Oct 2009, Alexandre SALOME wrote:
> Does it enter the action ?
Doesn't get that far, because the module and action name don't appear to
get matched at all.
> What does log files tell ? Which route did it matches ?
>
>
> What kind of error do you have in development environment ? St
Thanks!
On Tue, Oct 20, 2009 at 12:45 AM, Alexandre SALOME <
alexandre.sal...@gmail.com> wrote:
> Look at this :
> http://groups.google.com/group/symfony-users/browse_thread/thread/b8991d26a8bfc82f?pli=1
>
>
> 2009/10/19 Alexandru-Emil Lupu
>
>> hi!
>> thanks, but this is exactly what i do not w
Look at this :
http://groups.google.com/group/symfony-users/browse_thread/thread/b8991d26a8bfc82f?pli=1
2009/10/19 Alexandru-Emil Lupu
> hi!
> thanks, but this is exactly what i do not want to do (to pass to each
> url_for / link_to a sf_format parameter ).
>
> "automatically append to the gener
hi!
thanks, but this is exactly what i do not want to do (to pass to each
url_for / link_to a sf_format parameter ).
"automatically append to the generated urls a custom sf_format
extension, *without
**passing it as argument *to the url functions (url_for, link_to etc)"
Alecs
On Tue, Oct 20, 200
HI!
You might wanna use slugs. That (i think it) would help you out.
Instead of having routes like "@subpage?id=56" that would be translated to
"/another_page", you would have just:
"@subpage?slug=another_page", "@subpage?slug=a_page",
"@subpage?slug=a_second_page"
and your "subpage" route would be
Does it enter the action ?
try adding some debug code (echo "ok";exit;) at the beginning of
executeIndex method. Does it works ?
What does log files tell ? Which route did it matches ?
What kind of error do you have in development environment ? Stack trace ?
Good luck,
Alexandre
2009/10/19 Al
Hello,
You should reduce the number of URL, 3500 routes is not a normal
behavior... maybe you didn't made the proper way.
You "generate" routes ???
What are them ?
2009/10/19 Jacob Coby
>
> Hi all,
>
> I've been working on a symfony 1.2 app that includes a CMS.
> Unfortunately, the CMS s
Try this :
url_for('@homepage?sf_format=html')
Alexandre
2009/10/19 Alexandru-Emil Lupu
> Hi there!
> It is any chance to automatically append to the generated urls a custom
> sf_format extension, without passing it as argument to the url functions
> (url_for, link_to etc)
>
> i mean i have th
Other solution : create a form and embed them in it :
class myForm extends sfForm
{
public function configure()
{
$this->embedForm(...);
$this->embedForm(...);
}
}
Alexandre
2009/10/19 Alan Bem
> Create 2 form-processing actions - one for each form - in your module and
> set its
Check your settings.yml in config folder of your application. There is an
escaping strategy that can be enabled by default.
Make some debug to see if your variable during the process are as expected.
Alexandre
2009/10/19 gunnarlium
>
> Hi!
>
> I have a problem with variables being double esca
Hi all,
I've been working on a symfony 1.2 app that includes a CMS.
Unfortunately, the CMS system generates approximately 3000 routes
programmatically across 4 different module/actions. Unfortunately
there is no sort of pattern to the routes and the cms uses the routing
system to gener
Hi!
I have a problem with variables being double escaped when passed to a
partial. I'm experiencing this issue for example with the & character.
In the source code it ends up as &. This problem goes away if
I hack EscapingHelper.php to add a fourth variable false to the
htmlspecialchars.
Why
Create 2 form-processing actions - one for each form - in your module and
set its URLs for both forms - in their action attribute - respectively.
Alan
On Mon, Oct 19, 2009 at 8:13 PM, Eno wrote:
>
> On Mon, 19 Oct 2009, HAUSa wrote:
>
> >
> > Because I want the users to be able to use both form
On Mon, 19 Oct 2009, HAUSa wrote:
>
> Because I want the users to be able to use both forms in the same
> windows / screen.
>
Is possible to have more than one form in a page that psot to different
URLs.
--
--~--~-~--~~~---~--~~
You received this message
Hi there!
It is any chance to automatically append to the generated urls a custom
sf_format extension, without passing it as argument to the url functions
(url_for, link_to etc)
i mean i have this route:
Homepage:
url: /index.:sf_format
params: .
requirements:
sf_format: (?:html)
w
try to md5 the email address. i guess it would be better .. and also would
fix your problem ...
i do not know why would you met that problem ..
On Mon, Oct 19, 2009 at 8:50 PM, Eno wrote:
>
>
> In one of our apps, we have a routing rule with an email address in it:
>
> unsubscribeform:
> url:
In one of our apps, we have a routing rule with an email address in it:
unsubscribeform:
url: /unsubscribe/email/:email
param: { module: subscribe, action: index }
So URLs will be like:
http://www.domain.com/unsubscribe/email/e...@example.com
This route worked fine in symfony 1.0, but in
$sf_request
http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_sub_template_shortcuts
Daniel
On Oct 19, 9:07 am, Simone Fumagalli
wrote:
> Hello.
>
> Ho do I access sfWebRequest in my view file ?
>
> I want to write something like
>
> Your referral is : getReferer())
Hi.
Well, IP check *should* work. It looks like a bug. Which version? For Propel
or Doctrine?
2009/10/19 HiDDeN
>
> I have tested this:
>
> - I logged in marking the "remember me" option.
> - I closed the browser
> - I changed the IP field in the sf_guard_remember_key table
> corresponding to m
Hello.
Ho do I access sfWebRequest in my view file ?
I want to write something like
Your referral is : getReferer()) ?>
thanks
--
Simone
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To p
On 19 Ott, 17:43, Thomas Rabaix wrote:
> If you are working on a local file system you can use sfFilesystem otherwise
> the cleverPlugin might be a better solution.
Thanks Thomas, I was looking exactly for sfFilesystem!
Daniel
--~--~-~--~~~---~--~~
You received t
If you are working on a local file system you can use sfFilesystem otherwise
the cleverPlugin might be a better solution.
On Mon, Oct 19, 2009 at 5:35 PM, Daniel Londero wrote:
>
> Hi! I'm going to write some tasks for an app and I need to work with
> files on the file system (move, rename, delet
Hi! I'm going to write some tasks for an app and I need to work with
files on the file system (move, rename, delete...). Is there something
as an abstraction layer fot this provided by symfony? Or I need to use
exec calls or a plugin like cleverFilesystemPlugin?
Thanks
Daniel
--~--~-~--~-
When I'm working on a project, I usually make modifications directly
to the database, and then I run the "doctrine:build-schema" and
"doctrine:build-model" tasks.
Doing this with the sfDoctrineGuardPlugin installed, the "sf_guard"
tables will be replicated from plugin/sfDoctrineGuardPlugin/config
I have tested this:
- I logged in marking the "remember me" option.
- I closed the browser
- I changed the IP field in the sf_guard_remember_key table
corresponding to my user
- I reopened the browser with the same url as before, and the session
continued
So, I can't yet understand why is it sav
I make that and then everything is ok but I thought that there is more
comfortable way - maybe some command which I could write in console xD
On 19 Paź, 16:19, Gareth McCumskey wrote:
> So go to your models folder and delete them. If you don't nothing bad
> happens, those files just wont get use
And the reason why symfony doesn't is you may have code you put into the
model files that you still need to move over to the new model files and so
its safer for symfony not to delete them.
On Mon, Oct 19, 2009 at 3:57 PM, mini_alexander wrote:
>
> Yes but Symfony doesn't delete old models.
>
>
So go to your models folder and delete them. If you don't nothing bad
happens, those files just wont get used is all.
On Mon, Oct 19, 2009 at 3:57 PM, mini_alexander wrote:
>
> Yes but Symfony doesn't delete old models.
>
> On 19 Paź, 15:12, Gareth McCumskey wrote:
> > Did you remember to clear
On Oct 19, 1:52 pm, Eno wrote:
> On Mon, 19 Oct 2009, Mark Smith wrote:
> > > Why would a user be logged in more than once at the same time?
>
> > It's pretty common for users to have multiple tabs or windows open.
>
> Sure, but not with different user IDs...
>
Never said thats what I'm trying
Yes but Symfony doesn't delete old models.
On 19 Paź, 15:12, Gareth McCumskey wrote:
> Did you remember to clear cache after altering your schema.yml?
>
> On Mon, Oct 19, 2009 at 10:32 AM, mini_alexander wrote:
>
>
>
> > In old schema.yml I had some table, then I deleted this table from
> > sche
Alan Bem escribió:
> Are you on Windows?
>
> On Windows its better to use ODBC due some obsolete DLLs.
>
[...]
OK Alan, could you show me an example of database.yml and propel.ini for
connect symfony with an Sybase ASE ODBC please??
Thanks...
When I say that I'm over a NT plataform, I mean
Add a hidden field in each with a different default value and then check
that value after submission in your action
On Mon, Oct 19, 2009 at 3:13 PM, HAUSa <
jeroen_heeft_behoefte_aan_r...@hotmail.com> wrote:
>
> Because I want the users to be able to use both forms in the same
> windows / screen.
Because I want the users to be able to use both forms in the same
windows / screen.
On 19 okt, 15:08, Mr_chon wrote:
> Hi.
>
> Why don't you simply use two different actions (one per form...) ?
>
> On Oct 19, 3:00 pm, HAUSa
> wrote:
>
> > In one of my actions I use two forms.
> > When I submit
Did you remember to clear cache after altering your schema.yml?
On Mon, Oct 19, 2009 at 10:32 AM, mini_alexander wrote:
>
> In old schema.yml I had some table, then I deleted this table from
> schema.yml but this table is still creating when I write in console:
> php symfony doctrine:build-all-re
Hi.
Why don't you simply use two different actions (one per form...) ?
On Oct 19, 3:00 pm, HAUSa
wrote:
> In one of my actions I use two forms.
> When I submit one of them, how can I check in my action which of those
> is submitted?
--~--~-~--~~~---~--~~
You rece
In one of my actions I use two forms.
When I submit one of them, how can I check in my action which of those
is submitted?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group,
On Mon, 19 Oct 2009, Mark Smith wrote:
> > Why would a user be logged in more than once at the same time?
>
> It's pretty common for users to have multiple tabs or windows open.
Sure, but not with different user IDs...
--
--~--~-~--~~~---~--~~
You received
On Mon, 19 Oct 2009, HiDDeN wrote:
> I have a simple question: why is the "remember me" feature storing the
> user IP in the database?
>
> If I logout, change my IP, and login again, it is yet working well,
> so... why is it storing the IP?? I can't understand it.
Maybe so noone can hijack the
Hi,
Why, the signin page of sfGuardAuth module return a 401 status code
and not 200 (on load -> /signin) ?
For me, if the page is OK, the status returned is 200.
Thank you.
Bertrand
--~--~-~--~~~---~--~~
You received this message because you are subscribed t
Hi.
Check the debugbar's config>settings section and you'll notice that
there isn't a "app_email_subject_sign_up" parameter. You'll also
notice there's "app_email_subject", which is an array. This behavior
is described in the symfony book.
$subject = sfConfig::get('app_email_subject');
// $subje
My app.yml:
all:
email:
sender:
name: Snuber
email_address: i...@snuber.net
subject:
sign_up: Welkom bij Snuber
When I use sfConfig::get('app_email_subject_sign_up') in my action, it
just returns nothing. The e-mail sent doesn't have a subject. How is
that po
You should add the propel unique validator to your form, since the
unique violation error while saving is too late - you need to get the
error while validating the form itself, not the propel object behind
the form.
You get the invalid error you specified when the data submitted by the
user is not
I have a simple question: why is the "remember me" feature storing the
user IP in the database?
If I logout, change my IP, and login again, it is yet working well,
so... why is it storing the IP?? I can't understand it.
Any idea?
--~--~-~--~~~---~--~~
You received
In my form class, I can unset several fields.
But how can I unset an i18n field?
--~--~-~--~~~---~--~~
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.c
Hello,
we are developing a news website which mostly consists of constantly
changing, but fully cacheable content, the only dynamic parts are ads
which have to be selected randomly and user panel.
We couldn't cache the pages with layout and had to include these
components in the layout. The layou
It is possible to make an own formatter for my forms. See the example:
class kmFormFormatter extends sfWidgetFormSchemaFormatterTable{
protected $rowFormat = '%label%%field%
%hidden_fields%%error%%help%';
protected $errorListFormatInARow = '%errors%';
protecte
Imagine this scenario (I think that's pretty common, so I don't
understand why I can't find any solution):
1. For the subscription process I only have 2 mandatory fields
"username" and "email". The password is created automatically.
2. Later, when the user is subscribed, he/she has the possibili
When I have some i18n fields in my form, it is displayed like this:
price:
rank:
en:
-- title:
-- description:
nl:
-- title:
-- description:
But, is it also possible to display it like this:
title:
-- en:
-- nl:
price:
rank:
description:
-- en:
-- nl:
--~--~-~--~~-
In old schema.yml I had some table, then I deleted this table from
schema.yml but this table is still creating when I write in console:
php symfony doctrine:build-all-reload
I must delete from /lib/filter, /lib/form and /lib/model all files
which have got in name, name this table and then after:
On Oct 19, 3:47 am, Eno wrote:
> On Fri, 16 Oct 2009, Mark Smith wrote:
> > However it all breaks the moment a user has more than one page open:
> > If while that second screen is open a new customer is selected in
> > another window the action will pick up the new id from session but
> > when
Actually, I'm not using sfValidatorPropelUnique. My "login" field is
checked by a sfStringValidator, but the "unique" constraint is checked
by Propel anyway, and the "unique" error message is displayed. (unique
constraint has been set in schema.yml).
I would like to be able to write sthg like :
On Oct 18, 10:02 am, ColinFine wrote:
> I want to start a new symfony (1.2) project, building on an existing
> Postgresql database.
> Then I ran
> symfony doctrine:build-schema --env=initial_setup
>
> It is clearly connecting OK, but gives nothing but an error message:
>
> "unknown database att
Even if I create field 'data_photo' nullable, after insert row - this
row has got null value in field 'data_photo' in database.
Doctrine_Expression('NOW()') doesn't work :(
On 19 Paź, 00:42, Eno wrote:
> On Sun, 18 Oct 2009, mini_alexander wrote:
> > I make something like that:
>
> > $record = n
73 matches
Mail list logo