Its not javascript code its just a JSON encoded string.
On Wed, Apr 21, 2010 at 8:22 AM, Massimiliano Arione wrote:
> On 19 Apr, 16:46, Tofuwarrior wrote:
>> As a general principle is my approach ( ie pull the data from an
>> action into the jQuery) correct.
>
> I don't think your approach is fu
I think problem was in the ProjectConfiguration.class.php - the plugin
wasn't enabled..?
On 20 dub, 22:59, comb wrote:
> I got it to work:
>
> I downloaded (instead of svn checkoutthe) the plugins tgz with the
> "Download package"-Link from the
> plugins-pagehttp://www.symfony-project.org/plug
On 19 Apr, 16:46, Tofuwarrior wrote:
> As a general principle is my approach ( ie pull the data from an
> action into the jQuery) correct.
I don't think your approach is fully correct.
You should never mix javascript and php code.
You should write php (and so html) as if javascript wouldn't exist
You use getFirst() method ... you have only one record in the result
Better would be something like $result->getContent(); ?
And maybe better would be better this at all:
$q = Doctrine::getTable('DocumentTplSection')->
->createQuery('ds')
->where('ds.id = ?', 7);
$q->fetchOne();
On 19 dub, 1
Switch to dev env and see if any of the view files is responsable
sent via htc magic
On Apr 21, 2010 8:59 AM, "Tom Ptacnik" wrote:
Which line of code causes this performance problems?
On 19 dub, 17:20, mehdi hadef wrote: > Hi all, > > I
have a performance pr...
> For more options, visit this
Which line of code causes this performance problems?
On 19 dub, 17:20, mehdi hadef wrote:
> Hi all,
>
> I have a performance problem on a page using sfDoctrinePager.
> It takes more than 5 seconds to display the page on local server.
>
> Let's see the code in my actions.class about the pager :
>
I think you can overwrite the delete() method and catch an exception
from parent::delete() ... can't you?
On 19 dub, 15:51, HAUSa
wrote:
> Is it possible to check for an object if there are any foreign key
> restrictions in effect? So deletion of that object is not possible?
>
> --
> If you want
1. I think php_posix is not available for windows
2. You are looking for command line interface -
press "Run" and fill in "cmd" or locate it in Accesories "Command
Prompt"
On Apr 19, 2:55 pm, "i...@ticktockit.net" wrote:
> During my configuration check I get the following:
>
It reports no problematic issues
http://pastie.org/926961
On Apr 19, 9:52 am, Tom Ptacnik wrote:
> What about symfony check_configuration.php script?
>
> On 15 dub, 14:38, Andris wrote:
>
>
>
> > When issuing command: "symfony propel:data-load" it fails with notice
> > -- Unable to find adapter
I Don't know what was wrong with google groups, now my message is
posted, 5 times... I haven't got the righs to remove any of them
either, so sorry about that. Reading one of 5 should be enough ;)
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-pr
oh sorry now i see i didn't mention it has to be done in doctrine
so this must be something like
createQuery()->where...->andWhere...->andAlso
of course your right to do this like you say in normal SQL but adding
this brackets is not possible in
doctrine (or at least i don't know the way to do th
I got it to work:
I downloaded (instead of svn checkoutthe) the plugins tgz with the
"Download package"-Link from the plugins-page
http://www.symfony-project.org/plugins/sfDoctrineActAsTaggablePlugin
Than the plugin:install works.
The templates: [Taggable] still fails with a "Unknown method
Vide
Hi developers,
as you might have guessed, I am not working on the sfGrid components
solely to provide them to the community ;) What I would like, is to get
feedback to improve the quality of these components, while everyone can
benefit.
At the moment I am working on/playing with the responsi
Thanks for answering.. unfortunately this fails during the
doctrine:build -all task:
r...@r-pc D:\xampp\htdocs\pen4\pen4
# symfony doctrine:build --all --and-load --no-confirmation
>> doctrine Dropping "doctrine" database
>> doctrine Creating "dev" environment "doctrine" database
>> doctrine ge
On Tue, 20 Apr 2010, SatBoy78 wrote:
> Hi I am developing a project with symfony (doctrine) and I am
> encountering some problems in retrieving data from child0tables; I'll
> explain the whole question: in my mysql db I have a main table that
> contains foreign key of some child tables.
>
> I've
Don't var_dump or print_r such object :-)
The query ran inside mysql (copy/past from webdebugtb) returns expected
result ?
If yes, dig into that array property to look the Doctrine_collection and if
it does contains records, this way dig until the one you want to see if
every object is well hydrat
Hi developers,
as you might have guessed, I am not working on the sfGrid components
solely to provide them to the community ;) What I would like, is to
get feedback to improve the quality of these components, while
everyone can benefit.
At the moment I am working on/playing with the responsibilit
No. That's all.
Object has this property if I fetch it with ...$q->fetchOne();
it displays an empty page when I try to var_dump or print_r the whole object
even it has one record. so I think object in pager has that property too,
but somehow it send query to DB. I don't understand why.
On Tue,
Email was not complete ?
Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
On Tue, Apr 20, 2010 at 9:19 PM, Yelena Bunina wrote:
> Yes it have it! I didn't tell you about it. But anyway it send query to DB
> ((
>
Yes it have it! I didn't tell you about it. But anyway it send query to DB
((
On Tue, Apr 20, 2010 at 10:28 PM, Stéphane wrote:
> Try to debug it (hope you have xdebug) to find if after querying db, the
> hydrated object has its references array property not empty and containing
> what it should
Try to debug it (hope you have xdebug) to find if after querying db, the
hydrated object has its references array property not empty and containing
what it should (according to the query).
$query = //your query code
$objectCollection = $query->execute();
$object = $objectCollection->getFirst();
pr
Hi developers,
as you might have guessed, I am not working on the sfGrid components
solely to provide them to the community ;) What I would like, is to
get feedback to improve the quality of these components, while
everyone can benefit.
At the moment I am working on/playing with the responsibilit
Hi!
You are right about "lazy loading", object tries to get DicMetroLines
from DB, but it ALREADY HAVE it in returned query.
Let me try to explain what I mean by "lazy loading". An object have
property that related to another model. And this property
(DicMetroStations model) is returned with full
Hi developers,
as you might have guessed, I am not working on the sfGrid components
solely to provide them to the community ;) What I would like, is to
get feedback to improve the quality of these components, while
everyone can benefit.
At the moment I am working on/playing with the responsibilit
Hi,
It's not about ignoring you, it's about time and knowledge, please don't
think it's about yourself or your specific problem as we are all concerned
;-)
Can you try with another cache strategy, ie APC or XCACHE to see if you have
the same behavior ?
By "lazy loading", you mean hydrated object
seems that everybody ignore me :(
--
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@goog
Hi developers,
as you might have guessed, I am not working on the sfGrid components
solely to provide them to the community ;) What I would like, is to
get feedback to improve the quality of these components, while
everyone can benefit.
At the moment I am working on/playing with the responsibilit
Hi!
You can add:
YourModel:
options:
symfony:
model: false
sent via htc magic
On Apr 20, 2010 8:07 PM, "sromano88" wrote:
Hi John,
I am facing the same problem you stated in How to stop doctrine
creating tables for a single model?
I can''t get the solution, and I think that stop e
Hello all,
I discovered recently that some of my users are getting 404 on my website
because the are adding a final / to the url.
So i was wondering if there was a way in symfony to define automatic 301 to
remove the final slash, in other word to redirect urls like
www.test.com/cat1/product/ or ww
Hello guys !
In using the inherit of doctrine with sfDoctrineGuard plugin, I get this
error:
*
**Bonjour,
En voulant hériter d'une classe de sfDoctrineGuard grâce à l'héritage de
doctrine, j'obtiens cette erreur :*
Fatal error: Access level to BaseecfdbGuardGroupForm::setupInheritance()
must be
Hi John,
I am facing the same problem you stated in How to stop doctrine
creating tables for a single model?
I can''t get the solution, and I think that stop executing build-all-
reload should be a good one when you are telling not to export that
model.
Hope you can give me a hand.
Best regards,
Try in schema.yml
Video:
actAs:
Timestampable: ~
Taggable: ~
columns:
then rebuild all
On Apr 20, 11:45 am, comb wrote:
> Hi!
>
> I'm trying to get sfDoctrineActAsTaggablePlugin working with symfony
> 1.4.4.
>
> First the plugin-install task doesn't exist, but it was renamed to
> "plu
Hi everyone,
I downloaded Symfony 1.4.4 from SVN and did the setup as per the
tutorial.
When I try to access any of my modules, I get the following:
Fatal error: Method sfOutputEscaperObjectDecorator::__toString() must
not throw an exception in
/project/apps/manager/templates/layout.php on line
->where('column1 = ? AND (column2 = ? OR column3 = ?)', array(1, 2, 3));
Just nest them inside one where clause. :)
Sent from my iPhone
On Apr 20, 2010, at 4:34 PM, kim wrote:
I solved it now by doing this
... AND ... OR ... AND ...
this works for now but i'm still wondering how you can do
Just throw a custom extension that doesn't extend sfValidatorError.
After all, you are trying to break outside the form, so it's
legitimate to use exceptions that transcend the form framework.
Daniel
On Apr 20, 7:52 am, WallTearer wrote:
> But how can I check if the needed error happened?
> Loo
Yes I have done the same and it works great,
On Tue, Apr 20, 2010 at 8:16 PM, Thor wrote:
> I suggest you to use jQueryReloaded plugin, it works greatly, and what
> you need is simply done by a helper like link_to_remote
>
> On 19 Apr, 19:58, trankh wrote:
> > Hello,
> >
> > I want to call a si
I've got these tables:
Ristorante:
connection: doctrine
tableName: ristorante
columns:
id:
type: integer(4)
fixed: false
unsigned: false
primary: true
autoincrement: true
nome:
type: string(100)
fixed: false
unsigned: false
primar
But how can I check if the needed error happened?
Loop through the array of validation errors and check if the error was
triggered by the needed Validator?
Hope this is not the only way
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
I suggest you to use jQueryReloaded plugin, it's really simple to use
that, and what you need is done with a helper like link_to
On 19 Apr, 19:58, trankh wrote:
> Hello,
>
> I want to call a simple action without passing any argument inside a
> jquery function.
> No argument because a random func
I suggest you to use jQueryReloaded plugin, it works greatly, and what
you need is simply done by a helper like link_to_remote
On 19 Apr, 19:58, trankh wrote:
> Hello,
>
> I want to call a simple action without passing any argument inside a
> jquery function.
> No argument because a random functi
I solved it now by doing this
... AND ... OR ... AND ...
this works for now but i'm still wondering how you can do
functionality like with the brackets
On 20 apr, 15:24, kim wrote:
> hi
> i have to nest some or / and conditions
> but i need brackets in my sql statement to do it in the right ord
Hi I am developing a project with symfony (doctrine) and I am
encountering some problems in retrieving data from child0tables; I'll
explain the whole question: in my mysql db I have a main table that
contains foreign key of some child tables.
I've created symfony modules on these tables, and every
Can you provide more info about your problem so i can try to help you with
your problem
On Tue, Apr 20, 2010 at 5:19 PM, SatBoy78 wrote:
> Hi
> I've tried to use your suggestions to solve a similar problem that I
> have with my application, but when I am in the backend_dev I can't see
> the text
hi
i have to nest some or / and conditions
but i need brackets in my sql statement to do it in the right order
but how do you make this
is thould be in this form
(... OR ...) AND ...
thnx
greetings
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony
Hi
I've tried to use your suggestions to solve a similar problem that I
have with my application, but when I am in the backend_dev I can't see
the text label: there is a strange text " Doctrine_Collection
data : Array( 0 : Object(ZoneCitta) ) "
do you know the meaning of that string?
I've used y
If you want to validate your existing objects, you can bind the form
with the defaults.
On Apr 20, 12:34 pm, kim wrote:
> I want to validate my object cause these will not be given in by a
> form but by URL (cause the frontend requires this)
> so actualy i want a modelvalidation but i don't think
Hi everybody,
For my project, i have to use kerberos/ldap to authenticate the users
accessing the application.
I created the necessary tables : user, profile, ... instead of using
the plugin sfGuardPlugin. I made this choice because the user table is
minimalist (only a user_id, profile_id and a key
$form->getErrorSchema() contains all validation errors thrown
On Apr 20, 2:55 pm, WallTearer wrote:
> Aaaargh,
> I've created custom PostValidator, but when I'm throwing my custom
> exception from that post validator, symfony catches it first, and I
> can not catch it in the action.
>
> I've trie
Aaaargh,
I've created custom PostValidator, but when I'm throwing my custom
exception from that post validator, symfony catches it first, and I
can not catch it in the action.
I've tried to create custom exception class that extends
sfValidatorError class (class sfValidatorLicenseError extends
sfV
My experience is that you must disable the CSRF protection in your
sfForm configure method instead of outside the class.
--
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 Googl
I think you'll have to create two routes for every action - one for pl
language (without pl in URL) and one for other languages (with
language in URL)
On 18 dub, 20:16, Tomasz Ignatiuk wrote:
> Hi
>
> I use i18n in symfony 1.4 My default culture is pl (set in
> settings.yml). Also I configured t
You need to bind posted values to the form object for isValid() to run
the validation checks.
Assuming form_values is a form array where each field in the form is
named as name="form_values[fieldname]" then this is how:
$form_object = new FormObject();
$form_object->bind($request->getParameter('f
I want to validate my object cause these will not be given in by a
form but by URL (cause the frontend requires this)
so actualy i want a modelvalidation but i don't think this is possible
so i tried putting my object in the form and then
validate the form. but it always returns false and i looked
porque en jobeet no veo que ete pasando nada ni em mi proyecto
--
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, sen
Hi,
I think you simply cannot use this plugin outside symfony.
This means you cannot instantiate this object outside a symfony action for
example (just like what did Deepak).
If you don't understand actions, you should consider reading more on symfony
;-)
Cheers,
Before Printing, Think about
thank you but should you explain more
--
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@
Hi,
I use memcached on my project and I use ->useResultCache(true) in
queries. So everything would be ok, but when cache is enabled I get
lazy loaded data in my query wich have leftJoins. Example:
$q = $this->createQuery('a')
->leftJoin('a.DicRgn c')
->leftJoin('a.
Hi,
I think this plugin needs to be ran inside a symfony "thing" (task or action
or whatever 'till sfConfig is loaded).
This to say that you can't run it outside a symfony execution scope.
>From what you are saying, you have two problems: the php_zip library wich
isn't loaded (but declared so ph
so i load the php_zip.dll but i have the same message :php statup:
unable to load dynamic library C:\wamp\bin\php\php5.3.0\ext\ php_zip
when i executed the command
*$>php plugins/sfPhpExcelPlugin/examples_1_2/01simple.php
*
after Create new PHPExcel object
Fatal error: Class 'sfCon
Hi!
I'm trying to get sfDoctrineActAsTaggablePlugin working with symfony
1.4.4.
First the plugin-install task doesn't exist, but it was renamed to
"plugin:install", so I used this. The installation fails with:
r...@r-pc D:\xampp\htdocs\pen4\pen4
# symfony plugin:install
http://svn.symfony-proje
Its exactly the right approach so don't worry about that ;)
On Mon, Apr 19, 2010 at 4:46 PM, Tofuwarrior wrote:
> Thanks all, I knew about changing the template but not about the
> render text. I'm just off to try these things out now.
> Much appreciated.
>
> As a general principle is my approach
The isValid() method is a validation check on user input after a user
has submitted a form based on the validators you create in the forms
object. Its not used to see if the form structure itself is valid.
On Mon, Apr 19, 2010 at 4:37 PM, kim wrote:
> hello,
>
> To see if a object is correct i pu
62 matches
Mail list logo