Reynier Pérez Mira wrote:
> Reynier Pérez Mira wrote:
>> Hi every:
>> I'm newbie using Doctrine and also DQL I only know basic SQL and a bit
>> of Propel. I need to create a complex query with REST operation and also
>> with some Joins. I read the Doctrine documentation but I can't build the
>>
Reynier Pérez Mira wrote:
> Hi every:
> I'm newbie using Doctrine and also DQL I only know basic SQL and a bit
> of Propel. I need to create a complex query with REST operation and also
> with some Joins. I read the Doctrine documentation but I can't build the
> query as the doc suggest. I do t
Hi every:
I'm newbie using Doctrine and also DQL I only know basic SQL and a bit
of Propel. I need to create a complex query with REST operation and also
with some Joins. I read the Doctrine documentation but I can't build the
query as the doc suggest. I do this:
$last1day = date('Y-m-d H:i:s'
Hi Eno,
Symfony would differentiate those routes because they have a unique
URL without wildcards.
The literal route definition would be
url: /category1
param: { module: categories, action: show, id: 1 }
The issue with having category in the url is that this is not some
ecommerce website with
I was wrong, the tutorial for 1.2 is catching up and fast becoming the
more visited one :)
On Wed, Jun 17, 2009 at 11:38 AM, Sid Bachtiar wrote:
> Interesting little stat to add
>
> I written two articles about implementing login using email for 1.0
> and 1.2 (all using sfGuardPlugin and Propel)
On Fri, 19 Jun 2009, Richtermeister wrote:
> The first
> version is not interesting from an "aesthetics" standpoint - I don't
> want those urls to start with /categories.
So how would symfony differentiate the URLs with non-category URLs?
I think /category/:name is actually clearer to the user
On Jun 19, 3:56 pm, Eno wrote:
> How does one programmatically switch off output escaping for an
> action?
For future Google searches, the answer is to use:
sfConfig::set('sf_escaping_strategy', 'off');
in your action.
--
--~--~-~--~~~---~--~~
You received t
Hi Guys,
Thank you for the feedback, I appreciate it. I'm am indeed familiar
with both solutions, however, I was looking to avoid doing things that
way, for the obvious reasons that you have pointed out. The first
version is not interesting from an "aesthetics" standpoint - I don't
want those url
Hi,
This is an excerpt from my schema.yml:
InternationalPresence:
actAs: { Timestampable: ~ }
columns:
competitor_id: { type: integer, primary: true }
iso_country_code: { type: string(2), primary: true }
presence_type_id: { type: integer, primary: true }
notes:
How does one programmatically switch off output escaping for an
action?
--
--~--~-~--~~~---~--~~
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
Hi Daniel,
What Jacob said is true - you should use variables instead of adding
each route manually. However, you're not limited to using the /
categories/:name format; you can simply add a rule like /:name and
have the url layout you want. You just need to worry about 2 things:
1. this rule wil
I think you're approaching routing the wrong way. You should need to
only register one route:
/categories/:name
and then in your categories controller attempt to find the category by
name or forward404() if the category is not found.
On Jun 19, 2009, at 2:00 PM, Richtermeister wrote:
>
>
Hi all,
there's one thing I'm always struggling with, and that is registering
new routes dynamically in sf 1.0.
For example, my current site has product categories, and I would like
to add a new route for each category so that I get urls like
/category1
/category2
etc.
I know I can just do
/cat
On Jun 18, 12:34 am, dziobacz wrote:
> ok - I know :D I have found somewhere that I must use global - see
> below !!
Of course, this is documented.
http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_sub_partials
--
--~--~-~--~~~---~--~--
On Fri, Jun 19, 2009 at 3:56 PM, gimler wrote:
> i have a wysiwyg field with 3 allowed html elements so i want to check
> if the given input has only this 3 elements and none not allowed
> element
You should give a look at http://htmlpurifier.org/, and maybe the
sfXssSafePlugin plugin for that s
it works. thanks for your fast help ;)
On 19 Jun., 17:10, Andrei Dziahel wrote:
> hi.
>
> Can
> $var->getRawValue()->get(6)->description
> do the job?
>
> 2009/6/19 gimler
>
>
>
>
>
> > can i get a raw value in a partial with $sf_data?
>
> > sample code:
>
> > var is a doctrine collection
>
> >
hi.
Can
$var->getRawValue()->get(6)->description
do the job?
2009/6/19 gimler
>
> can i get a raw value in a partial with $sf_data?
>
> sample code:
>
> var is a doctrine collection
>
> this will work in the template but not in the partial?
> getRaw('var')->get(6)->description; ?>
>
> template
can i get a raw value in a partial with $sf_data?
sample code:
var is a doctrine collection
this will work in the template but not in the partial?
getRaw('var')->get(6)->description; ?>
template i get:
partial i get:
--~--~-~--~~~---~--~~
You received thi
i have a wysiwyg field with 3 allowed html elements so i want to check
if the given input has only this 3 elements and none not allowed
element
so bold italic underline ist allowed but when the given input has a
script or other tag it must failed.
Gimler
On 19 Jun., 15:24, Jonathan Wage wrote:
What would it do? Validate the html?
- Jon
On Fri, Jun 19, 2009 at 8:20 AM, gimler wrote:
>
> has anybody a form validator for a wysiwyg widget for example tinymce
> widget???
> >
>
--
Jonathan H. Wage (+1 415 992 5468)
Open Source Software Developer & Evangelist
sensiolabs.com | jwage.com |
has anybody a form validator for a wysiwyg widget for example tinymce
widget???
--~--~-~--~~~---~--~~
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
For one you actually do need whitespace between certain elements. For
another, why would you need to remove all whitespace for a PHP script? It
doesn't make unreadable and all it does is make any attempt at maintenance
impossible. Being server side, having whitespace and PHP script file sizes
do no
Hello,
I have my php files structured with spaces and tabs, but I would like
to not show that space to the user.
Is there any way to delete all whitespace automatically?
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
Partial is not always your good friend. It is very heavy to call partial, so
if you want to do something recursive, use a helper function.
On Fri, Jun 19, 2009 at 1:20 PM, Sid Bachtiar wrote:
>
> Hi,
>
> I'm thinking of calling partial recursively, anyone knows any
> limitation to this?
>
> --
>
Hi,
I'm thinking of calling partial recursively, anyone knows any
limitation to this?
--
Blue Horn Ltd - System Development
http://bluehorn.co.nz
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" gro
With sfFormDoctrine defaults values are always set from the related object :
So in the configure you can update the related object only if the object is
new. OR you can overwrite the updateDefaultsFromObject method.
On Fri, Jun 19, 2009 at 12:12 AM, LevelX wrote:
>
> Have you tried to set the de
Hi,
This sounds very interesting. I think if it can tie in Amazon
Payments along with other providers it would make Symfony a more
attractive framework. The lack of a payments module I find is a
detriment to quickly deploying pay-for apps.
On that note, I think it is worthwhile to include both
27 matches
Mail list logo