I'm going to assume you are building your javascript in the controller
and putting it into a variable to be outputted in the view. If this is
not the case, disregard my answer below.
I'm new to symfony, so I apologize if there is a better way, but from
what I can determine, you basically have t
Sorry, this is not symfony's problem.
On Nov 17, 10:23 am, "darkpilg...@126.com"
wrote:
> When I write javascript code like: var str = ' option>'; in template, I find that is gone.
> Actually it's < that is stripped on rendering. I don't know which
> piece of symfony code does this and whether
i have got a strange issue in my symfony project
when the user navigate through the site, sometimes symfony forwards the user
to login page.
although the user is already logged in.
and when user refreshes the screen after reaching on login screen
it automatically goes into the site.
the occurrenc
Hey Stefan,
The initial form knows whether it's new or an update, because you give
it a concrete object into the constructor, and most likely you have
retrieved this object by its primary key before, so it's fully
populated.
If sending the pk via hidden input rubs anybody wrong, you don't have
t
Use something along the line of the following in the top of your
schema.yml;
options:
collate: utf8_unicode_ci
charset: utf8
On Mon, 2009-11-16 at 15:34 -0800, MaEcTPo wrote:
> Hi,
> I am new on doctrine, and I have a problem.
>
> When I run task
> $: symfony doctrine:build-all
> I receive
Hi,
I am new on doctrine, and I have a problem.
When I run task
$: symfony doctrine:build-all
I receive in MySQL database tables with latin1 charset. Ok, I go to
the phpmyadmin, and change default charset for the database to
utf8_general_ci. But after runnig the task I have tables with latin1
ag
Thanx a lot! Works like a charm.
Don
--~--~-~--~~~---~--~~
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 ema
you can setDefault
$form->setDefault('dateRange', 'value');
On Thu, Nov 12, 2009 at 1:14 PM, Don_Busi wrote:
>
> Hi everybody,
>
> I have an entity that (among other properties) has a "startDate" and
> an "endDate" property. Now I created a form widget that graphically
> shows the date range s
I found what was the problem.
php.ini
upload_max_filesize was at 20m but i never saw post_max_size. it was
at 8m.
On 16 nov, 16:22, Simon wrote:
> I have a form where I can download a file to the server.
> When I create a new entry or when I change data
> in comics with the form everything
This is a php script. If you want to sell it, you might wanna considering
purchasing a Zend Compiler or whatever the name of that tool is.
You cannot be sure that the Client won't patch it or even sell it further
... but... you might wanna consider 2 things:
provide Sf Hosting for you products:
r
Hey all,
Curious how 1.0 builds yml schema files... I tried running '$symfony
propel-build-schema' and it builds schema.xml by default. The 1.0 Definitive
Guide manual says by default it will generate the yml file (and specifying
'$symfony propel-build-schema xml' builds an xml file) but this seems
Hi!!
I have to embedded Forms into a main Form, and i have to do this process:
1. Save the embedded Form number1
2. Save the main Form (the main Form have some Foreing Key from Embedded
Form number1)
3. Save embedded Form number2 (this embedded Form have some Foreign Key
from Main Form)
How
Davide Borsatto wrote:
> It's just my opinion but...
> Using the templating component in sf 1.X is not a great idea. It
> offers a few advantages, but as far as I've seen it's quite hard to
> implement (it replaces a whole layer of the MVC architecture, it IS a
> big deal) without strange hacks an
I have a form where I can download a file to the server.
When I create a new entry or when I change data
in comics with the form everything works perfectly. I
discovered an error this week. When I create a new
entry with a file over 10MB I get an error that tells me
I can not download the file bec
It's just my opinion but...
Using the templating component in sf 1.X is not a great idea. It
offers a few advantages, but as far as I've seen it's quite hard to
implement (it replaces a whole layer of the MVC architecture, it IS a
big deal) without strange hacks and keeping the code clean.
IMHO,
Hi,
Thanks for all the responses.
In the end I use embedForm :)
On Tue, Nov 17, 2009 at 7:45 AM, Jesse B. Hannah wrote:
>
> One way to do this is with embedded forms. A good example is available
> at http://trac.symfony-project.org/ticket/4906#comment:13, but here's
> a quick rundown of it:
>
I have had the same problem.
The solution in my case was to use no alias in the selected values
example
I had something just as (column names are not those below):
Doctrine_Query::create()->select('c.id as code_value')
but that give me the same problem.
To solve I had to do:
Doctrine_Que
One way to do this is with embedded forms. A good example is available
at http://trac.symfony-project.org/ticket/4906#comment:13, but here's
a quick rundown of it:
$form = new sfForm();
for ($i = 1; $i <= 5; $i++) {
$form->widgetSchema[$i] = new sfWidgetFormInputFile();
$form->widgetSchema->set
Let's keep this on topic. Thanks.
On Nov 16, 12:18 pm, Gábor Fási wrote:
> Quote from the bottom of *every* mail you get from this levlist:
>
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
--~--~-~--~~~---~--~~
You re
I want to get the text direction from sfCultureInfo.
The only way I can think of is:
$text_direction = (sfCultureInfo::getInstance($culture)->findInfo
('layout/characters') == "right-to-left")? "rtl" : "ltr";
however, findInfo is protected.
Is there any other way?
Thanks in advance
--~--~
What about admin generator?
http://www.symfony-project.org/jobeet/1_2/Doctrine/en/12
On Nov 12, 11:50 am, tirengarfio wrote:
> Yes, its true, sorry...
>
> Here you have my post corrected:
>
> Hi,
>
> im trying to add a filter to the "job/index" action of my module
> "job".
>
> These are my steps
Hi,
I'm wondering how fast is $request->getParameter()?
In other words - will this
public function executeDelete(sfWebRequest $request)
{
$request->checkCSRFProtection();
$this->username = $request->getParameter('username');
$this->mod = $request->getParameter('mod');
$this
Hi everybody,
I have an entity that (among other properties) has a "startDate" and
an "endDate" property. Now I created a form widget that graphically
shows the date range specified by these two dates.
In my Form class I added my new custom form widget.
> public function configure()
> {
>
Hi
I just ran into the same problem, and while I found the solution in
this discussion, I think it is not clear enough, so let me repeat
briefly, in case anyone comes across this in the future:
like Richtermeister says, the problem can be solved by adding a
_uniques key to the schema, and using
It seems to me like you try to do admin module without admin-
generator. Why?
Lets see admin generator if it could be what would you like to do( the
module )
Admin generator link:
http://www.symfony-project.org/jobeet/1_2/Doctrine/en/12
On Nov 11, 8:48 pm, tirengarfio wrote:
> Hi,
>
> im tryi
My english is not good enough but i'll try to tell about some usefull
concepts in symfony (i'm symfony developer for the last almost 3
years).
Module in application is the thing that do some determinate work in
application (set of actions). For example, security module - do login
and logout stuff
Dear users,
If I have a user ID, how can I programatically make the user autheticated?
Thanks in advance
--
Hofferek Attila
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this gro
Hi there!
I'm switching a website to symfony that has over 180k pages indexed by
google.
Each page need quite a bit of server logic to redirect to the new
pages.
My problem is that I'm not sure I'm doing things write (and fast) in
symfony.
Would you please let me know if this is ok?
this is how
Hi,
I have an entity that (among other properties) has a "startDate" and
an "endDate" property. Now I created a form widget that graphically
shows the date range specified by these two dates.
In my Form class I added my new custom form widget.
public function configure()
{
...
$this-
Hi!
Does anybody know how to disable the admin generator cache? At the
moment I have to call the clear-cache command each time.
Thanks, Sven
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To
Hello
I was downgrading symfony from 1.1(because it's deprecated) to 1.0 and I
found that doctrine-admin-generate doesn't work for some reason, one-to-many
replation ships are not shown.
What could be the cause of the problem?
Thank you.
--~--~-~--~~~---~--~~
Yo
Probably the result of a comparison between a string and true, which
returns true...
The cause of this is more PHP itself :D
On 10 nov, 20:20, larry wrote:
> When forcing a return from an action method (usually to end execution)
> one has to write:
>
> return sfView::SUCCESS;
>
> But I stupidly
Why don't you just unset() unused fields in FirmForm and
FirmTranslationForm ?
On 9 nov, 10:42, dziobacz wrote:
> Creating i18n forms with only some fields from table isn't possible so
> I give You my idea :)
>
> I have schema.yml:
> Firm:
> actAs:
> I18n:
> fields: [description, add
Hi. I would like to talk to you about Picotea.com, a new microblogging
site that we have developed using Symfony Framework.
Picotea is a microblogging site with added value features like groups,
events, conversation threads and much more. We have also developed a
connection with Twitter.
Here you
Hi Sid,
there is no branch yet because there is still heavy development of 1.3 :)
the deprecations are listed here:
http://www.symfony-project.org/tutorial/1_3/en/deprecated
Fabian
On Tue, Nov 10, 2009 at 10:54 PM, Sid Bachtiar wrote:
>
> Hi,
>
> I want to use 1.4 but I can not find the branch
Hello,
I'm a bit lost here as I try to create a form manually.
My goal is this: I want to add a login form to every page within the
project. So I added this form (written manually) to the layout.php,
which works ok! When I send the login-form, symfony handels the
request ok and uses the correct
Hi,
I was reading "Performance" chapter of the "definitive guide" for
Symfony 1.2 ( http://www.symfony-project.org/book/1_2/18-Performance )
In opposition to what is said there, sfSuperCachePlugin,
sfOptimizerPlugin, sfErrorLoggerPlugin plugins, which seem very
important for that part, are not a
Hi,
I try test cache in a functional test, i follow instructions in the
symfony book, i actived the cache in test environment,
but when i run the test, the cache is not generated, and the test
always fail.
--~--~-~--~~~---~--~~
You received this message because
Hi,
I'm currently realizing that through my Symfony development
experience, I've nearly *never* used :
- 404 redirects ($this->redirect404Unless... etc) because 404 errors
seem too confusing for developers and users (I prefer to send the user
to its original action with a "gentle" message, than
j'arrive pas a comprendre ce type d'erreur:
500 | Internal Server Error | PDOException
SQLSTATE[42000]: Syntax error or access violation: 1115 Unknown
character set: 'utf-8'
stack trace
at ()
in SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfPropelPlugin\lib\vendor
\propel\util\DebugPDO.php line 16
Hi,
Sometimes I feel limited by "flash messages", as I found developers to
write code such as :
(in action context)
$this->getUser()->setFlash('success', 'Update successful');
...
$this->getUser()->setFlash('error', 'An error has occured... ');
...
$this->getUser()->setFlash('info', $sn_results.
Hello,
It's quite obvious that modules are most of the time the names of the
application "concepts" (as well as DB table names).
Simple examples :
- "ticket", "project", "user", ... for a ticket tracker
- "website", "page", "language", "user", ... for a CMS
- "product", "company", "customer", "o
In view file:
foreach($form->getEmbeddedForms() as $formName => $embeddedForm)
{
and here you just render it or use partial here.
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post t
>
>
> I added this helper in my partial. Still not working :(
>
> But what is happening?
Link is generated? Maybe put some code from page source here so we can see
what was generated by this tag.
--~--~-~--~~~---~--~~
You received this message because you are subscr
If link is created then use FireBug to check where is problem.
You can check if request is sent and what came in response.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group,
Hi,
I wrote a function that I use quiet often. It displays the php code to
decompose a form.
It might help with the embed form, the i18n and the hidden field :
class myTools{
public static function getFormFields( $form )
{
self::__getFormFields($form);
}
private static function __g
Hi,
I use the sfUnobstrusiveWidgetPlugin.
There is a config file : config/sfUoAdminMenu.yml
with the routes of the menu and the credentials for each one.
Once the plugin is installed :
$this->widget = new sfUoWidgetAdminMenu(array(
'js_transformer' => 'drop_down'
));
Antoine
doublecli
Hi,
I'm new to symfony, but it all looks very nice :-)
Now I got my first problem I cannot solve using google. I want to add
some configuration settings to the view.yml. This task itself is no
problem, but I cannot access this settings.
My goal ist to add a configuration, which navigation eleme
Hi,
I was reading "Performance" chapter of the "definitive guide" for
Symfony 1.2 ( http://www.symfony-project.org/book/1_2/18-Performance )
In opposition to what is said there, sfSuperCachePlugin and
sfOptimizerPlugin are not available anymore for Symfony 1.2.
So the question is : why ?
Is Sy
Hi,
I'm having trouble installing sfAssetsLibraryPlugin. When I execute
the following task:
symfony asset:create-root
Tells me that the task isn't defined!!
Its being very hard to install this plugin, either in 1.0 or 1.2
I checked out the svn 1.2 branch to the plugins directory and followe
Hi,
I'm having a problem executing the last task of the instalation
instructions of sfAssetsLibraryPlugin
symfony asset:create-root
Tells me that the task isn't defined!!
Its being very hard to install this plugin, either in 1.0 or 1.2
Is always something failing. The automatic install doesnt
hello
are there any documentation about adding propel builder behaviors in
propel1.4/symfony1.3?
i need to add a method to retrieve primary keys by criteria to all of the
objPeer classes,
propel docs says that is possible with staticMethods() and there is
SoftDeleteBehavior bundled with propel
Hi all,
I'm new in symfony developping and i've got a problem about sfguard
plugin doctrine.
I've tuned my login page but I think Doctrine makes a wrong request:
SELECT a.* FROM (SELECT s.id AS s__id, s.username AS s__username,
s.algorithm AS s__algorithm, s.salt AS s__salt, s.password AS
Hi,
I have to integrate the Paypal plugin into an existing Symfony
application, replacing a custom payment solution. The original
developer wrote three actions for managing payment success, failure,
and IPN validation.
At the moment the sfPaymentPayPal plugins calls /sfPaymentPayPal/
failure or
Does anybody know when Fabien is planning to release Request Handler
component? Is there a svn repository for this component?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this gro
Hello
I'm trying to modify .yml configuration files via form in the
backend.
with the libraries sfYml yml file convert it into an array,
but then to turn it into a form for an administrator
change it I'm lost.
someone has done something similar?
thank you very much
greetings
--~--~-~--~-
I will be there.
And there are no flights London - Antwerp?
Fabian
On Thu, Nov 5, 2009 at 12:49 PM, Lee Bolding wrote:
>
> I'd have come, had been at Sensio - Paris from London is fairly easy
> on the train, but Belgium isn't :-/
>
> Oh well... I'll probably see you all at Symfony Live though :)
hello arnold.
can you give me a solution for redirecting to "login page" becouse
i`ve got the same problem. And can you write some solutions for the
rest of the problems with sfWidgetFormInputSWFUploadPlugin.
thanks
--~--~-~--~~~---~--~~
You received this message
Hi,
Maybe you can use
$thumbnail = new sfThumbnail(150, 150,true, false);
The third parameter is for keeping the same proportions as the original
picture, and the fourth parameter is to allow or not the inflation.
I am not sure because I didn't test but it's what I understood reading the
plugin
Bonjour ( ou bonsoir pour certains :-)
J'ai eu la désagréable surprise au moment de lancer un propel:build-
schema d'avoir l'erreur suivante :
Fatal error: Cannot instantiate interface Platform in /usr/local/src/
workspace-projects/test/lib/symfony/plugins/sfPropelPlugin/lib/vendor/
propel-gener
Quote from the bottom of *every* mail you get from this levlist:
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony user
please what can I do, so that I will not receive the messages of this users
group any more
_
Téléchargez Internet Explorer 8 et surfez sans laisser de trace !
http://clk.atdmt.com/FRM/go/
+1 !!
I also have problems with count queries not respecting the alias I set
for a table in join statements
On Nov 11, 7:52 am, mintao wrote:
> Hi,
>
> Not sure if this or the doctrine newsgroup is the right place to post
> this question/bug.
>
> It's about the doctrine admin generator for the
This is the order of processing, when you request a symfony page:
- the action is executed (this is where you put your var_dump)
- the actions template is rendered
- the output is decorated with the layout
I cannot think of any way you could execute your code after the last
step - as far as I un
Thanks Gábor!, but...what should i do? Im just trying to show the
var_dump output below the web page content.
On Nov 16, 2:07 pm, Gábor Fási wrote:
> You call var_dump while executing the action, *before* any output
> (including the headers) is sent. It writes to the stand output, and
> when s
Not null and required is pretty much the same thing.
On Mon, Nov 16, 2009 at 20:09, Richtermeister wrote:
>
> Hey Gábor,
>
> hey, that works. Thanks. Is that the only way though, since required:
> true also makes the validator in the generated form required?
> Not a big deal if not, since I can
Thanks Gábor!, but...what should i do? Im just trying to show the
var_dump output below the web page content.
On Nov 16, 2:07 pm, Gábor Fási wrote:
> You call var_dump while executing the action, *before* any output
> (including the headers) is sent. It writes to the stand output, and
> when s
Thanks Gábor!, but...what should i do? Im just trying to show the
var_dump output below the web page content.
On Nov 16, 2:07 pm, Gábor Fási wrote:
> You call var_dump while executing the action, *before* any output
> (including the headers) is sent. It writes to the stand output, and
> when s
Hey Gábor,
hey, that works. Thanks. Is that the only way though, since required:
true also makes the validator in the generated form required?
Not a big deal if not, since I can just override that requirement..
just curious.
Thanks again,
Daniel
On Nov 16, 11:04 am, Gábor Fási wrote:
> requir
You call var_dump while executing the action, *before* any output
(including the headers) is sent. It writes to the stand output, and
when symfony tries to send the http headers, it cannot - hence the
warnings.
On Mon, Nov 16, 2009 at 19:55, tirengarfio wrote:
>
> Hi,
>
> i have this code below:
required: true
On Mon, Nov 16, 2009 at 19:55, Richtermeister wrote:
>
> Hi all,
>
> I have a model with a field "absolute_url", which is a varchar(255),
> non-required. When generating the SQL for the tables, propel does not
> add NOT NULL, but I would like it to.
> Is there any way to affect th
Hi,
i have this code below:
class profileActions extends sfActions
{
public function executeIndex(sfWebRequest $request)
{
// Extraemos todos los miembros de la red social.
$this->lista_miembros = Doctrine::getTable('Profile')
->createQuery('a')
->execute();
// Extra
Hi all,
I have a model with a field "absolute_url", which is a varchar(255),
non-required. When generating the SQL for the tables, propel does not
add NOT NULL, but I would like it to.
Is there any way to affect this behavior? I've tried "notnull: true"
and "null: false", but that didn't work.
T
Hi all,
our company is slowly shifting from selling "all custom" websites to
websites built on symfony + our own set of CMS plugins, and the
question of code ownership is starting to come up.
Traditionally we simply said that the client buys the entire site
including code and is free to do whate
Hi,
Regioneo, a France based start-up, is looking for symfony developers.
Our business is to sell directly products from local artisans.
Our architecture is based on Symfony 1.2 and Mysql. Lots of
developments are coming : API, new sections, semantic search, We
are looking for enthousiastic
Davide Borsatto wrote:
> 1 - This is not Twig, you are using the templating component. Maybe
> you are using both of them, but I actually don't see any reference to
> twig in the code
Yes, I have seen this yesterday but anyway it don't work for me maybe
I'm doing something wrong
> 2 - It's just
It's because the class in my plugins/myPlugin/lib/model/doctrine/
#MyModelClass#.class.php was not abstract
On 25 sep, 17:49, smellycat37 wrote:
> Hello,
>
> I want to create a plugin with forms classes
> When I execute the task ./symfony doctrine:build-form, symfony creates
> forms class fi
2 things:
1 - This is not Twig, you are using the templating component. Maybe
you are using both of them, but I actually don't see any reference to
twig in the code
2 - It's just a typo, but in english "founded" isn't the past for
"find". That is "found" :)
On Nov 16, 2:03 am, ReynierPM wrote:
Make your widget name "name_of_field[]".
When symfony recieves a post variable like that
$request->getPostParameter('name_of_field') returns an array
On Sat, Nov 14, 2009 at 10:02 PM, Sid Bachtiar wrote:
>
> Hi,
>
> How to declare an array of input field in sfForm? Is this where
> embedded form
79 matches
Mail list logo