Hello.
I have one table Question and one table Reponse(=answer) with relation
1-N.
In the admin generator i make embed form on the page Question like
this :
class QuestionForm extends BaseQuestionForm
{
public function configure()
{
$reponse = new Reponse();
Hello, i need to create a behavior ActAs for Doctrine.
First i saw that there is 2 importants things :
-/lib/template
-/lib/listener
I have created my listener with a method preSave() and preDelete()
But i don't understand the goal/usage of template. :S
To see an example
class
Hello i need to integrate a forum like PHPBB or FLUXBB to my symfony
1.2 website Doctrine.
But i need to know the best way (and easy if possible) to integrate
it.
I readed this topic
http://forum.symfony-project.org/index.php/t/7156/
Someone could advice myself? I prefer punBB cause it is more
Of course! I should have thought about this test!
Thanks a lot Stig, it fixes my problem :)
Gregoire.
On Aug 13, 8:31 am, Stig Manning s...@sdm.co.nz wrote:
I have revisited this problem and the solution is very simple. Basically
the problem is that you are processing the form submission as a
Hello i have rent an OVH RPS1
Its features :
Processeur
Intel Atom mono
1.60 GHz
L2: 512Ko, FSB: 533MHz
Architecture32 - 64 bits
Mémoire vive512 Mo DDR2
Espace disque SAN 10 Go 20 Go
Extensible à 1 To (1000 Go)
par tranche de 10 Go
2€ HT /mois (2.39€ TTC)
5€ HT /mois (5.98€ TTC)
website i can see that wait of answer is just
around 150...
So i dont know why my apps is so slow ... :s
Someone could help me?
Thank you
On 24 sep, 23:32, greg saturn1...@hotmail.com wrote:
Hello i have rent an OVH RPS1
Its features :
Processeur
Intel Atom mono
1.60 GHz
L2: 512Ko, FSB
Hello i need to do
?php echo $sf_data-get('post', ESC_XSSSAFE) ?
(i have download the plugin xssSafe etc...)
But my problem is that :
post is a key and it works only if the key is created in the action
like
$this-post = $val;
But me i need to create my variable in the template.
I'm the creator of the plugin
What do you need exactly ?
On 10 juin, 17:03, DC ciprian.dob...@gmail.com wrote:
Does anyone know how I can trigger the Category::save() event every
time I create a new category?
That is, assumming I`m using Category as the nested model.
--
If you want to
I just see your post,
I'm the creator of the plugin do you still have problem using it or is
it OK
On 30 avr, 22:13, el-sid sydneyari...@gmail.com wrote:
hi, i found this plugin to manage nested set tree but i am having
problems getting it to work, i followed the instructions but nothing
Blueprint
there is a plugin
http://www.symfony-project.org/plugins/sfBlueprintPlugin
On 12 juil, 15:22, Nei Rauni Santos nra...@gmail.com wrote:
Hi,
I'd like to know if you use any kind of frameworks CSS in your sf projects.
I'm working in a group with 4 programmers and 2 designers and I'm
aggregation inheritance, the concrete inheritance doesn't seem
to be helpful in that case).
Thank you in advance for your help,
and happy new year !
Greg.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message
I was hoping to try out Symfony again after testing a beta of v1 and
settling on ZF four years ago.
I have been searching but cannot find and answer to this. Using
Symfony_Standard_Vendors_2.0.0BETA1.tgz and the Quickstart tutorial I
get the following when I click either Configure your Symfony
I should also mention that I tried pulling Symfony from git with no
change. I am running PHP 5.3.5 with a ZendServer CE install.
On May 11, 9:42 pm, Greg drak...@gmail.com wrote:
I was hoping to try out Symfony again after testing a beta of v1 and
settling on ZF four years ago.
I have been
Standard download from http://symfony.com/download and when that
install did not work replaced the libraries by pulling from
https://github.com/symfony/symfony.git
On May 12, 10:22 am, Christophe COEVOET s...@notk.org wrote:
Le 12/05/2011 15:03, Greg a crit : I should also mention that I tried
or the conductor of the symfony doesn't like
the woodwind section. Thank you for trying to help.
On May 13, 9:21 am, Christophe COEVOET s...@notk.org wrote:
Le 13/05/2011 15:02, Greg a crit : Standard download
fromhttp://symfony.com/downloadand when that
install did not work replaced the libraries
I'm waining for it too :)
On Jun 11, 2:00 pm, Fabien Potencier fabien.potenc...@symfony-
project.com wrote:
I'm working on updating the documentation to include an exmaple of a
fileuploadwith and without Doctrine.
It should be available on Monday.
Fabien
--
Fabien Potencier
Sensio CEO -
Is it working on BETA 3 ? Because, i use an embedded form, i bind the
request etc... and the IsValid return always FALSE.
On 14 juin, 07:55, Fabien Potencier fabien.potenc...@symfony-
project.com wrote:
On 6/11/11 12:24 PM, Ruben de Vries wrote:
Are there any bundles on github that
is it working on BETA 3 ? In my case, $form-IsValid() is always false. I
use an embedded form.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony users
I was able to figure out my first question.
$this-getRequest()-getHttpHeader('SERVER_SOFTWARE', '')
I'm still looking for a way to get the mysql version though.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hello everyone,
I have escaping_strategy set to both.
In one of my templates I use the object helpers to display the form
such as
?php echo object_textarea_tag($content, 'getBody', 'rich=fck
size=78x25') ?
I was wondering how I could get the raw data from getBody instead of
the escaped data.
Thanks that works but how would I use that in an object_textarea_tag
helper?
--~--~-~--~~~---~--~~
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
Hello, I'm new to propel and I have a question regarding the criteria.
If I want to retrieve all rows in a table you can do something like
this
$this-contents = ContentPeer::doSelect(new Criteria());
I was wondering how to write a criteria rule to only select certain
fields from the table, (for
How do you loop through a result set in like a template?
--~--~-~--~~~---~--~~
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
Joby,
While your solution certainly does work, Ch18 of the symfony
documentation has a section called 'Avoid Using Temporary Arrays'. Is
this section not related to my case because we are using a result set
instead of the usual hydration?
--~--~-~--~~~---~--~~
Thanks I'm trying to find documentation on propel for the methods you
can use on result sets.
getInt, getString, getTimestamp etc
Know where I can find this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Thank you both!, very much appreciated. I was not aware you could use
the native functions with the $rs.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group, send email to
I was just wondering how other symfony users go about creating custom
models (without using the generators). For example for a file manager
you could use a model to retrieve the files in a directory as an
array, (to my understanding anyway).
Thanks
Thanks a lot, Looking at the generated module gave me plenty of ideas/
tips.
--~--~-~--~~~---~--~~
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
Is it possible to use the raw data with an object textarea tag? At the
moment I'm using a normal textarea tag with the $object-getRawValue()-
getBody();
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users
Hey, I've been doing some searching about changing the behavior of the
sfguard plugin. I want to be able to store the sessions in a database.
Has anyone come across any discussion on this matter?
--~--~-~--~~~---~--~~
You received this message because you are
I was just wondering if symfony had a built-in method for testing if a
template variable exists. Of course you could use isset but I am just
trying to keep consistent. This is not an urgent matter but I am
curious. Most parameter holders have a has() method but I could not
find a solution to
I'm a little confused on the tasks of these three things mainly
because of the login validator in askeet.
In my understanding, the validator should validate only and then the
action should be responsible for calling the model which is turn does
the necessary processing.
In Askeet, the login
I have a question regarding the propel peer classes.
Say you have a peer method getBlah() which returns an array of some
values. This array could be used multiple times throughout the
execution. The getBlah() method queries the database and creates
result sets etc before returning the array.
I am still looking for a solution to this, array data is automatically
escaped, I want to know how to get the unescaped version in the
template.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
If you had to clear multiple array caches when a peer method is
called, where would be the best place to store a clear method? In the
peer class or somewhere else?
For example similar code such as this is repeated a few times
$cache = new sfArrayCache(sfConfig::get('sf_cache_dir'));
After doing some more reading I found you can wipe the entire name
space with the clean method, however this still leaves the problem of
repeating
$cache = new sfArrayCache(sfConfig::get('sf_cache_dir'));
$cache-clean('namespace');
throughout my peer class.
When you use the propel admin generator, it creates these three
actions create, save and edit. Create and save forward to edit. This
all works fine but my question is If I want to set some action
specific variables how do I do this? since after forwarding they are
lost.
For example if I want to
fillin:
enabled: true
param:
check_types: [text]
Should the text type cover the textarea tag? (FCK rich text editor)
because I can't get it to work. Is there another type for this? FIllin
works just fine with simple text inputs etc.
Any help appreciated thanks
Does Propel support subqueries or do you need to do a raw query?
--~--~-~--~~~---~--~~
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
Does propel support distinct queries or do I have to go to creole like
askeet? If I do have to go to creole how can perform the normal
hydration and return objects instead of looping through a result set
and returning an array? The example I saw did a raw query with
distinct and then looped
I have now :p thanks for that .
--~--~-~--~~~---~--~~
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
Was setLayout removed from sfComponent? In this changelog it says it
was added in one of the early 1.0 betas.
http://trac.symfony-project.com/trac/browser/trunk/CHANGELOG
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
I don't want the unescaped values of the entire array. I know I can do
foreach ($sf_data-getRaw($array) as $val):
But I only want to access a few of these values unescaped, the rest
should remain escaped.
Say my array has 10 escaped values in it; I want to access one of them
un-escaped in a
Thank you Nicolas, that helps.
--~--~-~--~~~---~--~~
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
I see your point Kiril and in the situation you describe I would do
the same thing.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group, send email to
Is there a way to check if a component slot exists in your main
layout? (similar to has_slot for normal slots). My component_slot is a
contextual navigation enclosed in
div id=sidebar/div
but I don't want this to be outputted unless the component_slot is
active for the current action. You can
Is it better to use mysqli then mysql with propel 1.2?
I know it's removed in 1.3 because of PDO.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group, send email to
Hello,
I have been using symfony for awhile now but I have only just started
using some of the fantastic plugins available. I was wondering how to
customize them..i.e module name, templates etc
Thanks
--~--~-~--~~~---~--~~
You received this message because you
Would it be ok to just copy the plugin files out and make your own
action?
If I want the sfMediaLibrary to be called filemanager, I could use
something simple like
filemanager:
url: /filemanager/*
param: { module: sfMediaLibrary, action: index }
But it will still be accessible via
Hello,
This is the scenario. I have a form with various select boxes. Using
ajax forms you can dynamically add new elements to the select boxes.
However enclosing a pair of form tags inside another form is causing
problems. For example select boxes have a link that says add new which
pops down
It is possible to have a global app.yml that applies to all
applications?
--~--~-~--~~~---~--~~
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
I have a backend and a frontend application. The backend writes the
cache and the frontend uses it. (The cache is sfArrayCachePlugin).
However symfony stores a separate cache for each application.
Could I write the array caches to a common directory like
%sf_base_cache_dir%/../common?
How do you get all of tinymce's options to display using the textarea
tag helper?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group, send email to
Is it possible to set a session in symfony without any namespaces?
Another application I am using with symfony requires a session value
to see if the user is logged in (which needs to bet set in symfony) I
do not want to hard code it in..
Array
(
[symfony/user/sfUser/attributes] = Array
I'm using the object_admin_double_list in a page outside the
generator. Everything is working fine except for fillin. i.e if you
submit the form and an error occurs the values you added are lost. If
there are no errors the values are saved and retrieved from the
database with no issues. I have
How about if you overwrite the getScopeId method?
public function getScopeId()
{
if ($this-scope_id !== null)
{
return $this-scope_id;
}
if ($this-isRoot())
{
$this-scope_id = $this-getId();
}
return $this-scope_id();
}
By the time insertAsLastChildOf (or the other public api methods) is
called the scope would be automatically assigned to the primary key
for root nodes. The root node would also not have to be saved twice as
the scope id is only set for root nodes that have children.
What is the best way to store dynamic configuration in a symfony
application (i.e user-editable config in a backend application)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this
Should I create a repository is say in c:\svn\symfony and add that
path to my zend framework project?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group, send email to
Is it possible to just do something like
sfConfig::set('var', 'value');
and then save it somehow? I just want to be able to write to the
app.yml
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users
Symfony uses session_name(). The name of the session is in your
applications' factories.yml. It defaults to 'symfony'.
That may be causing the problem.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users
Say I have two sample tables, product and related product. Related
product has two primary key/foreign key fields that reference the
product table. However the model generated by propel is completely
different from what I was expecting. I searched the group and found
topics like
Can you store basic HTML in a yaml config setting? Is there an escape
method for this when writing config dynamically?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group,
I just want to dynamically write yaml config. I have been able to do
this using Amit's method. I just want to know if there is a built in
method that allows you to escape a few basic HTML tags in a yaml
config setting.
--~--~-~--~~~---~--~~
You received this
Is the Doctrine Plugin stable? Does it support the admin generator and
command line tools?
Is propel 1.3 due out anytime soon?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to
Thanks for your reply.
I would prefer to go to propel 1.3 because that is what I am used too.
So the admin generator is all fine with it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post
I have got propel 1.3 working, the generator still works just fine.
Thanks for your excellent plugin.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group, send email to
Does the admin generator have a view action or do I need to make it
myself? I want to be able to display non-editable transaction history.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post
' at the CLI the command fails
with this message:
'Unknown method CmsMenu::setChildren'
Oddly enough if I add a populated children key under Item_1 it works
but I don't want children under every root item.
Any help is much appreciated,
Greg
--~--~-~--~~~---~--~~
You
nestedSet, not NestedSet, and everything will be fine
Thanks for the reply. Are you certain of this? All example schemas
I've seen clearly capitalize behaviours and as I mentioned, the
fixture loads but only if I include children under every root node in
a multi-root configuration.
I think this may be a bug. Can you create a ticket in
trac.doctrine-project.org ?
Thanks, Jon
Done.
http://trac.doctrine-project.org/ticket/1919
Cheers,
GM
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
=symfony_istb_doctrine'
username:
password:
attributes:
use_dql_callbacks: true
use_native_enum: true
HTH,
GM
--
Greg Maruszeczka
Office: 250.412.9651 || Mobile: 250.886.4577
Skype: websage.ca || GTalk IM: gmarus
http://websage.ca
GnuPG-ID: 0x4309323E
:
IfModule mod_rewrite.c
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ../../css/$1 [QSA,L]
/IfModule
That way it will first pick up admin-specific styles/scripts/images
before the 'shared' assets under /web.
GM
--
Greg
for any hint.
Greg
--~--~-~--~~~---~--~~
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-users
sfGuardPlugin ... that is not yet for symfony 1.3
Does anybody know when these core plugins are available for new symfony?
Regards,
Greg
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post
I want to be able to create routes that map to modules/actions/
parameters dynamically and store them in a database. This is for a
CMS.
What is the best way to do this?
- Subclass Routing
- Load using event listeners ([url]http://dfwtek.com/blog/129-dynamic-
routes-in-symfony12.html[/url])
-
documentation.
Greg
2009/11/3 adfadf...@gmail.com
I want that image can has maximum size 150x150 px so I make:
$thumbnail = new sfThumbnail(150, 150);
and everything is ok when image is bigger than 150x150.
But when image has size for example 20x20 px, it is converted
Has anyone been using sfDoctrineGuardPlugin from the trunk with
symfony 1.3/1.4?
I can install it, add users by the command line and login but when I
try to add users/permissions/groups etc from the admin pages I get
this message:
Fatal error: Call to a member function setLabel() on a non-object
.
Did you tuned anything ?
2009/11/18 Greg Freeman g...@imagize.com.au
Has anyone been using sfDoctrineGuardPlugin from the trunk with
symfony 1.3/1.4?
I can install it, add users by the command line and login but when I
try to add users/permissions/groups etc from the admin pages I get
Are you using the package version with 1.3/1.4? The package version is
only for sf 1.2.
--
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
Hello,
could you provide full generator.yml and schema.yml?
Thanks,
Greg
dagger napsal(a):
Ok it started working some how
I made 2 changes
1) i renamed the table role_permission to role_permission_ref
and
2) I changed the generator.yml file to
edit:
fields
input would be greatly appreciated.
Greg
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
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
.
There's no documentation on the OutputEscaper (that I could find) so all I can
say is that it works for me. Good luck!
Greg Thornton
On Sep 6, 2010, at 10:31 PM, Stephane wrote:
I'm getting that too and cannot find a work-around. I'm guessing this
is PR3 current state because I _just_ got my src
haven't yet explored.
Luckily Jonathan Wage works on Symfony2 *and* Doctrine2 (IIRC) so
maybe he can shed some light on this. I think the fix shown above is
what Doctrine2 should be doing regardless - maybe we can get this
thrown into Doctrine2 before the final 2.0 release.
Greg
--
If you
Tim,
You did. For some reason I was not receiving mail from the list. It was very
odd.
Thanks,
-Greg
On May 3, 2011, at 7:44 AM, Tim Nagel wrote:
I believe I spoke to you in the IRC channel, but the simplest method
of achieving what you want is to define a method on your domain
object
It would be impossible without rewriting it. Symfony2 relies on the wonderful
technology in PHP 5.3+; including namespaces, end Lamba functions.
http://php.net/releases/5_3_0.php
5.3.2 included a TON of security/bug fixes over 5.3.0, and frankly versions
before 5.3.2 had issues compiling on
86 matches
Mail list logo