who has some clues.
Thomas
--
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
Hi all,
I didn't found in the doctrine documentation how to limit my results when
i'm fetching all my news.
I want to limit my results with only 5 news (like in SQL LIMIT 0,5).
I've done this :
$news = new News();
$news = $this-get('doctrine')
-getEntityManager()
Hi all and thanks for your answers !
I've used Repositories to create my SQL queries, and it's work fine :)
I've done this :
public function findLimitedOrderedByDateDebut($limit = 5, $offset = 0){
return $this-getEntityManager()
-createQuery('SELECT e FROM MyCompanySiteBundle:Thing
I all, i've a problem when rendering a news in a twing template.
My html isn't escaped :
public function showAction($permalink){
$news = $this-get('doctrine')
-getEntityManager()
-getRepository('CompanySiteBundle:News')
-findOneByPermalink($permalink);
if (!$news) {
throw
Hello Christophe,
In my showNews.html.twig i have :
{% block content %}
h2{{ news.titre }}/h2
div id=date_news
iPublished on {{ news.dateCreation.format('d F Y') }}./i
/div
{{ news.contenu }}
{% endblock %}
and in my head i've the meta : meta http-equiv=Content-Type
content=text/html;
I've fixed my problem,
In the Twig documentation (http://www.twig-project.org/doc/templates.html) i've
found this :
{% autoescape false %} Everything will be outputed as is in this block{%
endautoescape %}
So like Chirstophe said, the output escaping is enabled by default. Adding
{%
Hi,
Symfony exceptions should not appear in your production environment,
your users will see the default error page if you haven't set one
yourself ...
So what's the point ?
Le jeudi 20 d�cembre 2007 � 05:03 -0800, slinky66 a �crit :
Hello,
I'm doing a security check of my site and would
Hi,
if you read Symfony's license, you won't find any mention of
'non-commercial websites' ... You can monetize your website built with
symfony ... or I missed something.
http://www.symfony-project.org/content/license
Le mercredi 02 janvier 2008 � 09:22 -0800, mozey a �crit :
Please stay with
Hi,
link_to() parses the second parameter to extract the module ('cms') and the
action to execute ('categ1'). If you need some parameters, you have to add
something like this :
link_to('page13_title', 'cms/categ1?id_categ=3id_page=13')
or use the 'query_string' option
', 'country')
)));
If I execute this, I get the following exception: Unable to merge a
sfValidatorErrorSchema to global errors.
Regards,
Thomas
Von: symfony-users@googlegroups.com im Auftrag von Fabien POTENCIER
Gesendet: Sa 05.01.2008 22:34
An: symfony-users
The sfValidatorZip validates a postcode in dependence to a country selection
field.
So I need the inserted postcode value and the selected country to validate the
code.
I've tried this now with your fix and it works fine.
Thanks for the very fast solution.
Thomas
-Ursprüngliche Nachricht
Hi,
not sure this is really as clean as possible, but this is what I'd
naturally do :
(for example, to show a confirmation message after a user action)
inside the controller:
$this-setFlash('confirm', true);
and inside the view:
?php if ($sf_flash-has('confirm') $sf_flash-get('confirm'))
the sessions
database: propel # Name of the database connection to use
session_cookie_lifetime: 172800 # 48h
Thomas Rabaix
On Thu, Feb 21, 2008 at 3:13 PM, Rob Sworder [EMAIL PROTECTED] wrote:
Jo,
You've still only set the probability to 1% - you could temporarily
change
('session_cookie_lifetime',
$cookieDefaults['lifetime']);
and then sfMySQLSessionStorage::sessionGC, the GC uses the same $lifetime value.
Thomas
On Thu, Feb 21, 2008 at 9:53 PM, Rob Sworder [EMAIL PROTECTED] wrote:
On Feb 21, 2:41 pm, Thomas Rabaix [EMAIL PROTECTED] wrote:
You should read
CO2, let's imagine the situation :
- you store an object in the session
- then you refactore your code by renaming the class
- the next time the user connect to your site, the class does not
exists anymore
- and you get a silent error !
Hope it make sense.
Thomas
On Tue, Mar 4, 2008 at 3:45
Hello,
There is no built-in migration feature in symfony.
Have a look to : http://trac.symfony-project.com/wiki/Migrations
Thomas
On Mon, Mar 10, 2008 at 8:09 AM, James [EMAIL PROTECTED] wrote:
Hey Everyone,
I am trying to figure out if symfony provides a mechanism for updating
Hi,
__toString() means a query is run for every item in the select list. Which
doesn't matter,
but doesn't feel good either ;)
Only if you use a db query inside your __toString method ... which
sounds like a bad idea.
This method is supposed to return a string briefly describing the
/index');
}
- in the login/index view :
?php if ($sf_flash-has('message')) echo $sf_flash-get('message') ?
Don't know if this is the best way to do it, but it should work.
Thomas
--
http://tequila-studio.com/
Le jeudi 03 avril 2008 à 10:16 -0300, Bruno Reis a écrit :
Hi,
when a user does
)
Is up to you to choice the most suitable solution, there are not best
solutions. Each case are differents.
Thomas
On Thu, Apr 3, 2008 at 4:01 PM, Sumedh [EMAIL PROTECTED] wrote:
Duh... ???
On Apr 3, 2:11 pm, Marco Schierhorn [EMAIL PROTECTED] wrote:
Hi,
is there an easy way to drop
You can pass an array of arguments in the third parameters of
include_component. see :
http://www.symfony-project.org/book/1_0/07-Inside-the-View-Layer#Components
On Sat, Apr 5, 2008 at 11:10 AM, kusum [EMAIL PROTECTED] wrote:
hi
i want to pass a object from a template to a component
include_component('activity','grid', array('month' = $month)
but if you component does not do any logic you should prefer the use
of include_partial, which is quicker.
Thomas
On Fri, Apr 4, 2008 at 6:11 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I have a situation that (I think) screams
Does the getFilepath return a string value, or just echo the value ...
that will explain why the filepath is displayed at first
Thomas
On Sun, Apr 6, 2008 at 6:53 AM, Jill Elaine [EMAIL PROTECTED] wrote:
Coolio! Yes! Your suggestion works!
First of all, I realized I didn't need to put
Hello,
It look like your code get X filepath and echo all the different path.
If there is only one filepath, add $c-setLimit(1) to get only one
path.
and just return $resultset-getString(1);
You have to test that the result is not null.
Thomas
On Sun, Apr 6, 2008 at 4:23 PM, Jill Elaine
#WritingSQL
.
Thomas
On Sun, Apr 6, 2008 at 10:33 PM, Jill Elaine [EMAIL PROTECTED] wrote:
I realized I was making my selection criteria much more complicated
than I need. I wrote the function with sql and can see more clearly my
criteria:
public function getFilePath
is present, if not add
?= $form[$form-getCSRFFieldName()]-render() ?
Thomas
On Tue, Apr 8, 2008 at 5:10 PM, Marijn [EMAIL PROTECTED] wrote:
Hi everybody,
I am having trouble finding documentation about csrf support in
symfony 1.1. When I generate crud actions for a Model and try to
populate
in yml # symbol is used to comment text :)
csrf_secret: my super token
Thomas
On Tue, Apr 8, 2008 at 5:44 PM, Marijn [EMAIL PROTECTED] wrote:
Hi Thomas,
Thanks for your quick reply.
in my view there was the following line of code for my csrf_token:
?php echo $form
Hello,
Please keep in mind that the partial should not do any logic, or
creates variables for another partial. As a partial can be used at
different places. Partial should be used only to render elements.
Thomas
On Wed, Apr 9, 2008 at 11:54 AM, Eugene Leonovich [EMAIL PROTECTED] wrote:
You
Hello,
You can look to the code of sfWebDebug and sfWebDebugFilter.
Thomas
On Wed, Apr 9, 2008 at 11:15 PM, hutchic [EMAIL PROTECTED] wrote:
In a production environment I'd like to be able to record profiling
statistics such as execution time, number of queries and time per
query
within the same symfony project. You can do :
$host = $request-getHost();
$uri = url_for('module/action[...]');
$this-redirect(sprintf('%s://%s/%', 'https', $host, $uri)
Thomas
On Wed, Apr 9, 2008 at 11:58 PM, Bruno Reis [EMAIL PROTECTED] wrote:
Hi,
I´m using symfony 1.0.0 When I try
.
The documentation states : The fillin feature works by parsing the
response content in XML just before sending it to the user. If the
response is not a valid XHTML document, fillin might not work. [1]
Thomas
[1] http://www.symfony-project.org/book/1_0/10-Forms#Form%20Validation
On Thu, Apr 10, 2008
setup()
{
sfForm::enableCSRFProtection();
$this-addCSRFProtection('my secret');
}
}
I get a valid csrf token value, and a correct token validation
Thomas
On Thu, Apr 10, 2008 at 4:32 PM, Marijn [EMAIL PROTECTED] wrote:
Hi Fabien,
The output of the version
way to add error.
Hope it can help !
Thomas
On Thu, Apr 10, 2008 at 8:13 PM, Loïc Vernet [EMAIL PROTECTED] wrote:
@Thomas: I have added the secret key in the settings.yml file with no
success.
Your patch didn't work for me.
What is strange, is that I have only the bug if i call
It look like you are using sf1.1 as sfProjectConfiguration class is
only available in this version.
Please keep in mind there is no documentation on this version. and you
should use the version 1.0 to get best support from the community.
Thomas
On Fri, Apr 11, 2008 at 10:55 AM, Ian P
an attributesHolder and an parameterHolder
object. Maybe it will be more suitable to use the attribute holder, as
values from the parameterHolder can be badly interpreted by actions.
Thomas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
The methods are not in the same class, that is why you cannot call
them in your second file.
Now you can have a different solutions : use a external class with
static methods
Thomas
On Sun, Apr 20, 2008 at 6:35 AM, Mohammad Ali Safari
[EMAIL PROTECTED] wrote:
I had a bunch of method in one
Hello,
Have a look to :
- options_for_select from the FormHelper
- objects_for_select from the ObjectHelper
and read http://www.symfony-project.org/book/1_0/10-Forms
Thomas
On Sun, Apr 20, 2008 at 9:13 PM, ArturT [EMAIL PROTECTED] wrote:
I am new to Symfony, but there is something I do
()-getUser()-getUserId()) {
throw new sfException('Permission denied, you are not the owner of
the object');
}
2. high level : controller
Use the same logic but you have to check at every action.
Thomas
On Wed, Apr 23, 2008 at 2:32 PM, Iain Adams [EMAIL PROTECTED] wrote:
Dear All,
I am
, $con);
$con-commit();
} catch(PropelException $e) {
$con-rollback();
throw $e;
}
Thomas
On Wed, Apr 23, 2008 at 2:22 PM, Matías López [EMAIL PROTECTED] wrote:
Hi All,
I'm trying to update a record in a mysql table, but i need to modify
the primary key itself. I think
Is your file a valid picture ?
Thomas
On Wed, Apr 23, 2008 at 10:33 AM, Ian P. Christian [EMAIL PROTECTED] wrote:
CX wrote:
phpinfo data:
gd
GD Supportenabled
Modify the plugin on the lines I showed, remove the @ sign so you can
see the real error.
--
Thomas
It look like you are not using absolute path, so the function cannot
find the file.
Look to me, it just an issue with the path.
Thomas
On Wed, Apr 23, 2008 at 3:54 PM, CX [EMAIL PROTECTED] wrote:
yes i did, here is the result:
Warning: getimagesize(/uploads/photos
CX,
Partial should not have any logic ! you should use a component
Thomas
On Wed, Apr 23, 2008 at 5:52 PM, Ian P. Christian [EMAIL PROTECTED] wrote:
CX wrote:
correct!
THANK YOU Ian, :)
No problem - welcome to the community btw - hopefully the support you've
had
= BasePeer::doUpdate($criteria, $con);
$con-commit();
} catch(PropelException $e) {
$con-rollback();
throw $e;
}
Thomas
On Wed, Apr 23, 2008 at 8:58 PM, Nicolas Perriault [EMAIL PROTECTED] wrote:
On Wed, Apr 23, 2008 at 5:31 AM, Matías López [EMAIL PROTECTED] wrote:
Do you have
. then overwrite the log method to only
log messages which start with your {customEvent}
Thomas
On Mon, Apr 28, 2008 at 12:29 PM, Richtermeister [EMAIL PROTECTED] wrote:
Yes, that would work. My issue with that approach is that info is a
fairly low error level, and symfony generates a lot
Have you change the value of max_forwards in the settings.yml ?
It look like it is setup to 0.
Thomas
On Tue, Apr 29, 2008 at 6:21 AM, Charles Hilditch [EMAIL PROTECTED] wrote:
I may have found a bug (in a recent 1.0.x version), should I post this here?
(maybe the trac...)
When
The Ajax options is only an alternative, you can combine :
- a http meta refresh and/or an ajax
- Email
- Setting up a random yutube video while the user is waiting :)
Depends on how long it take to generate the PDF. If it is only a few
seconds, email is not the best solution...
Thomas
Hello,
You can change the memory limit to your background task as they should
run in cli. With a queue system you don't have the same task running X
times in parrallel, and so you allocate more ressources to one
process.
Thomas
On Wed, Apr 30, 2008 at 2:00 PM, Nicolas Perriault [EMAIL
The point is why they are using a foreach in the escaping === both.
A extract should be better as that use php internal function.
my 2 cents.
Thomas
On Wed, Apr 30, 2008 at 2:25 PM, alessandro cinelli
[EMAIL PROTECTED] wrote:
On Sun, Apr 27, 2008 at 3:34 PM, alessandro cinelli
[EMAIL
to the $posts array inside the view.
If you already use a 'posts' module, you may also use a component to
display the last posts.
++
Thomas
Le jeudi 01 mai 2008 à 16:35 +0800, Gould, Adrian a écrit :
Problem
Taking the my_first symfony tutorial as the basis for this problem...
We have a module
Eclipse has a nice svn plugin Eclipse is also a very good IDE to
handle symfony project
Thomas
On Fri, May 2, 2008 at 1:14 PM, Nicolas Perriault [EMAIL PROTECTED] wrote:
On Fri, May 2, 2008 at 12:42 PM, Jonathan Franks [EMAIL PROTECTED] wrote:
i'm moving over to OS X and I
] wrote:
I use eclipse on the PC but I've heard such good things about TextMate
that I'm playing with that at the moment.
Thomas Rabaix wrote:
Eclipse has a nice svn plugin Eclipse is also a very good IDE to
handle symfony project
Thomas
On Fri, May 2
' so I do see
the fields from event_type in the sql query but I have no way to use
them in generator.yml. Am I missing something? Or am I suppose to use
a partial and code that bit?
Thanks,
M.
--
Thomas Rabaix
Internet Consultant
try to remove your debugger ...
Thomas
On Tue, May 6, 2008 at 6:24 PM, Olivier LOYNET [EMAIL PROTECTED] wrote:
Hi,
Try in your php.ini to increase your memory.
Be careful, there are two php.ini, one for apache, on for cli mode.
This is the cli for your command line.
Olivier
Hello,
I am not sure what you mean by access the model. but an helper can
have model as argument to perform a specific task. You cannot do any
logic in a helper.
Thomas
On Tue, May 6, 2008 at 9:58 PM, Tom Haskins-Vaughan
[EMAIL PROTECTED] wrote:
I'm about to start writing a helper
Hello,
Have you try to use a filter to append new params to the request ?
Thomas
On Tue, May 6, 2008 at 11:18 PM, Dennis Verspuij
[EMAIL PROTECTED] wrote:
The sfViewCacheManager creates cache keys based on parameters that
appear in the request. Is there any way to apply some custom
the code
Thomas
On Wed, May 7, 2008 at 5:24 PM, Dennis Verspuij
[EMAIL PROTECTED] wrote:
Hi Thomas, yes I did try to add the parameters to the sfRequest
instance parameters in a custom filter. But this results in sfRouting
complain that the current route cannot be found when it has
trans-unit id=2
source![CDATA[Tours amp; Activities]]/source
targetTours amp; Activit#xE9;es/target
/trans-unit
Thomas
On Wed, May 7, 2008 at 8:26 PM, melz [EMAIL PROTECTED] wrote:
Ah, nevermind. Figured it out.
trans-unit id=5
sourceProducts
Hello,
what you mean by use ? if you add a __construct method, it will be
call when doing new Model. however the model will be empty, as propel
use hydrate method to populate object value.
Thomas
On Fri, May 9, 2008 at 9:39 AM, Leo Barrientos C.
[EMAIL PROTECTED] wrote:
Hello
Well, i don't know doctrine, but look like you forgot to call the
parent constructor.
parent::__construct() ...
Thomas
On Fri, May 9, 2008 at 2:33 PM, Leo Barrientos C.
[EMAIL PROTECTED] wrote:
If you put in MyClass extends BaseMyClass a construct - and make the
call ($myObject = new MyClass
will be delete) then you have to traverse your files array to delete
thoses files.
Thomas
On Mon, May 12, 2008 at 10:49 AM, nico_bl1nd [EMAIL PROTECTED] wrote:
This is quite automatic.
I call the Article.delete method, then everything is done by magic,
thanks to the schema.yml onDelete:cascade
Yes, its depends ...
$article-delete() will never call $media-delete() at least in innodb
Thomas
On Mon, May 12, 2008 at 1:19 PM, Olivier LOYNET [EMAIL PROTECTED] wrote:
Hi
You have to override your 'delete' method in your lib/model/foo
and it's not depend on your database
Like
?
As of now, the apache logs indicate that apache is looking for a
concrete
resource called question, directly under the web folder.
--
Thomas Dedericks
--
[EMAIL PROTECTED]
GSM: +32 (0) 499 23 60 22
http://tequila-studio.com
--~--~-~--~~~---~--~~
You
You should read this post :
http://www.centresource.com/blog/2006/05/23/php-session-lifetime-an-adventure/
and then modify the foctories.yml
storage:
class: sfSessionStorage
param:
session_name: symfony
session_cookie_path: /mypath
Thomas
On Tue, May 13, 2008 at 1:30 PM
Hello,
All posted data have to be handle by a form. So my guess is that you
have to create a form object with a file field. and so you can have
access to the uploaded file.
Thomas
On Wed, May 14, 2008 at 2:14 AM, david at artefactual
[EMAIL PROTECTED] wrote:
Hi,
I was digging through
use get_class($sf_request) to know the class used in the template. It
should be sfWebRequest, unless you change the factories value for your
env.
Thomas
On Wed, May 14, 2008 at 3:46 PM, Sumedh [EMAIL PROTECTED] wrote:
Thanks Nicolas...
But when I try $sf_request-getUriPrefix
--
Thomas Rabaix
Internet Consultant
--~--~-~--~~~---~--~~
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
give a try
$c-addDescendingOrderByColumn(self::COLUMNS_A .'-'.self::COLUMNS_B);
Thomas
On Fri, May 16, 2008 at 6:12 PM, Tom Haskins-Vaughan
[EMAIL PROTECTED] wrote:
Hi,
I have a league table that I retrieve like so:
static public function getTable()
{
$c = new Criteria();
$c
$this-pathInfoArray;
}
to get the port information. So you have to check which
'sf_path_info_array' is used, and then check if the port value is set.
Thomas
On Mon, May 19, 2008 at 8:55 AM, Sumedh [EMAIL PROTECTED] wrote:
Anyone? :|
On May 17, 4:52 pm, Sumedh [EMAIL PROTECTED] wrote:
Hi
The fillin filter is not reliable at 100% as it uses DOM parser to
transform and populates the value. So if your html is too broken, then
the parser may transform your html into something wrong.
Thomas
On Wed, May 21, 2008 at 1:53 AM, jtodd [EMAIL PROTECTED] wrote:
I would also like
of session_id() is not the best way to do it as sessions can
be handled by others systems
Thomas
On Tue, May 20, 2008 at 11:33 PM, Tom Haskins-Vaughan
[EMAIL PROTECTED] wrote:
If I change the first if statement to the following it works fine:
if (!session_id())
{
return parent::save
Hello,
It look like the factorie settings are ignored. The error refers to
'sfSessionStorage', however the session handler should by
'sfSessionTestStorafe'
Thomas
On Wed, May 21, 2008 at 6:47 PM, Tom Haskins-Vaughan
[EMAIL PROTECTED] wrote:
Thanks, Thomas. I tried that but I got the same
to to a var_dump(SF_ENV) to
look what env is set, and then change the factorie settings for this
env.
I just check into the sfPakePropel and the default env is 'dev'. You
can add a second parameter with the env name to the propel-load-data
command.
Thomas
On Thu, May 22, 2008 at 12:02 AM, Tom
and their are
also related between each others
If in your action you define a $user variable, you have to know the
class name of this object, because you cannot compare two differents
things ...
Thomas
On Thu, May 22, 2008 at 3:17 AM, Daevid Vincent [EMAIL PROTECTED] wrote:
Thanks for the prompt reply
You can use the sfPropelMigrationsLightPlugin
http://trac.symfony-project.com/wiki/sfPropelMigrationsLightPlugin
Thomas
On Thu, May 22, 2008 at 8:59 AM, Daevid Vincent [EMAIL PROTECTED] wrote:
-Original Message-
symfony has nice features to deploy your applications and to create
This is the correct syntax for redirect :
public function redirect($url, $statusCode = 302)
so change your code to $this-redirect('imagem/index) ...
Thomas
On Thu, May 22, 2008 at 11:20 PM, allan [EMAIL PROTECTED] wrote:
Hello everyone
I'm making a project in which I need to save some
You can add a second parameters to the redirect method, which is the
status code.
Thomas
On Fri, May 23, 2008 at 6:02 PM, Cédric Sadai [EMAIL PROTECTED] wrote:
Hi,
One quick question:
Do anyone know what kind of header code do the redirect() method send
to the client browser?
Bonus
the value will be empty if the file size upload_max_filesize
So change the upload_max_filesize value to match your need :
- in php.net
- at runtime ini_set('upload_max_filesize', SIZE_IN_BYTES);
Thomas
On Mon, Jun 2, 2008 at 4:00 PM, Jill Elaine [EMAIL PROTECTED] wrote:
This may help
please read php.ini and not php.net ...
On Mon, Jun 2, 2008 at 4:33 PM, Thomas Rabaix [EMAIL PROTECTED] wrote:
the value will be empty if the file size upload_max_filesize
So change the upload_max_filesize value to match your need :
- in php.net
- at runtime ini_set('upload_max_filesize
-devs/browse_thread/thread/b268c40c574d1402
Thomas
On Tue, Jun 3, 2008 at 12:10 PM, Yohan GIARELLI [EMAIL PROTECTED] wrote:
Hello !
I don't find how to send a mail with sf 1.1...
How can i send mail in 1.1 without the sf1.0 compat plugin ?
Thanks in advance,
Yohan.
--
Thomas
$this-getRequest()-getFileSize(INPUT_NAME);
Thomas
On Tue, Jun 3, 2008 at 10:29 AM, Sumedh [EMAIL PROTECTED] wrote:
Thanks Jill...That was a good resource on the topic...
Thanks Thomas...
But I am not getting getFileSize() even for smaller sized files...the
file gets uploaded correctly
The fatal error come from xdebug which cannot handle more than 100
nested functions. I don't know this plugin but it look like you have a
loop in your code (function call the function caller ...)
my 2 c.
Thomas
On Sat, Jun 14, 2008 at 6:49 PM, Mark D [EMAIL PROTECTED] wrote:
I tried to make
= $firstObject-hydrate($rs);
$secondObject = new ...
$secondObject-hydrate($rs, $pos)
$firstObject-add($secondObject)
}
you may want to handle a pool of objects with an array if the same
$firstObject appears several times.
Thomas
On Mon, Jun 23, 2008 at 12:11 PM, Manoj Ghimire [EMAIL PROTECTED] wrote:
One
Hello,
Have you check that your database connection uses uft8 ?
Thomas
On Mon, Jun 30, 2008 at 10:09 AM, Olivier Revollat [EMAIL PROTECTED] wrote:
My problem: I can't find accentuated static content with with sfLucene !!
My config : I use symfony 1.0.6 with sfLucenePlugin 0.1.6.
frontend
you can copy the sfGuardUser class into your lib/model folder. The
autoloader load model in the lib/model first (at least for sf1.0).
so you can easily redefine methods.
Thomas
On Wed, Aug 20, 2008 at 11:04 AM, Nicolas CHARLOT [EMAIL PROTECTED] wrote:
Hi,
I'm looking for the best practice
Take care if the value come from the user request, you should add
(int)$month to avoid SQL Injection.
Thomas
On Wed, Aug 20, 2008 at 11:34 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
You can use Criteria's custom parameter like so:
$c = new Criteria();
$c-add(RecordPeer::DATE, MONTH
You can put the hostname into a config file or can be an argument when
you call your task.
Thomas
On Tue, Aug 19, 2008 at 8:12 PM, kevinkevin [EMAIL PROTECTED] wrote:
Thanks... I will try the suggestions.
The main problem with setting it manually is that when using source
control
I have a sf1.0 project with a custom sfGuardUser in lib/model and it works fine.
have you try a symfony cc ? you can check the cache file to see how
symfony create the autoload classes array.
Thomas
On Wed, Aug 20, 2008 at 11:29 AM, Nicolas CHARLOT [EMAIL PROTECTED] wrote:
Le 20 août 08 à 11
There is no 'clean' way to do that.
There is a plugin from Francois which allows to do that, but it is a
sf1.0 plugin
http://www.symfony-project.org/plugins/sfPropelAlternativeSchemaPlugin
not sure if sf1.1 has a way to change on the fly the database schema
to add custom field
Thomas
On Wed
luck
Thomas
On Wed, Aug 27, 2008 at 5:21 PM, Pedro Bastos [EMAIL PROTECTED] wrote:
Symfonians,
I'm using Postgresql 8.3 with Symfony 1.0.
I'd like to set username and password on the fly. I mean username and
password will NOT be stored in databases.yml instead the username will
be provided
/snippet/26
[3] http://www.symfony-project.org/forum/index.php/m/20549/
--
Thomas Rabaix
Internet Consultant
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group, send email
Hello,
Keep in mind that you have one action for one template. You should not
used more than one action to render one tempate.
Thomas
On Mon, Sep 8, 2008 at 10:17 AM, Sumedh [EMAIL PROTECTED] wrote:
Yeah, but this doesn't work if there another action getting executed
as I said above
Hello,
You can used your own caching mechanism with a filter.
You may have a look to sfFunctionCache to store and retrieve your
breadcrumb. The only problem is to invalidate the cache breadcrumb
when the view change.
Thomas
On Wed, Sep 10, 2008 at 8:06 AM, Nicolas CHARLOT [EMAIL PROTECTED
Can you please reply to our question ?
Are you behind a proxy or are your connections tunnelings through a
specific port ? like 4550 (public) to 80 (dev server )
Thomas
On Mon, Sep 22, 2008 at 12:01 PM, Sumedh [EMAIL PROTECTED] wrote:
Can someone put some light plase? :)
On Sep 20, 10
a second parameter with
a Query Object and the Doctrine_Record::_get a third Query argument .
--
Thomas Rabaix
Internet Consultant
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group
a relation is made of.
Thomas
On Tue, Sep 23, 2008 at 8:03 AM, Bernhard Schussek [EMAIL PROTECTED] wrote:
Hi Thomas,
Why don't you just query the comments independently of the blog article?
$comments = Doctrine_Query::create()
-from('Comment c')
-where('c.article_id = ?', $yourArticleId
Connection is a reserved class name. you cannot have a class name
called Connection.
Thomas
On Tue, Sep 23, 2008 at 12:56 PM, Vincent Majer
[EMAIL PROTECTED] wrote:
Hi,
Sorry for my english.
I can't understand why i have this error :
Fatal error: Cannot instantiate interface Connection
this.
Well, i lookinf for a solution, that no have do some dump of data or
DDBB.
When you have several MB in your table, can't dump to YML
--
Thomas Rabaix
Internet Consultant
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Evangelist
http://www.jwage.com
--
Thomas Rabaix
Internet Consultant
--~--~-~--~~~---~--~~
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
You might implement this as follow :
1. add new env called 'seo' or 'bot'
2. uses the sfNoStorage in factory.yml
3. make a case based on the IP in the index.php file to load the correct env.
Thomas
On Mon, Sep 29, 2008 at 2:30 PM, Paulo Magalhaes [EMAIL PROTECTED] wrote:
Hi,
I've a site
Hello,
Can you post the HTML output of your form ? and your form definition ?
Thomas
On Mon, Sep 29, 2008 at 5:25 PM, Martin Groh [EMAIL PROTECTED] wrote:
I'm very sorry to annoy you all with this again. But I'm completely
stuck with forms in sf1.1 (meanwhile I upgraded to 1.1.3).
Even
%%field%%help%%hidden_fields%/td\n/tr\n,
$errorRowFormat = trtd colspan=\2\\n%errors%/td/tr\n,
$helpFormat = 'br /%help%',
$decoratorFormat = table\n %content%/table;
}
--
Thomas Rabaix
Internet Consultant
--~--~-~--~~~---~--~~
You received
1 - 100 of 327 matches
Mail list logo