Hi everyone,
I have implemented symfony ajax drag drop code into my project.
Everything wokrs fine. But my project is not shopping cart. It is to drag
details to calender from left side to right side.
In my page, left side shows details and right side there are added details
of different dates.
Hi Cosmy,
sorry for the late answer - I've been on vacation.
UllFlowDoc stores basic information similar to a normal row like id,
created_at, etc. whereas UllFlowValue stores the actual value of a
virtual column.
:-) Klemens
On 14 Aug., 15:17, cosmy c.zec...@gmail.com wrote:
Very very
Hi Georg,
As far as I understand, you can only do that by using Doctrine's
inheritance mechanism.
Adress:
inheritance:
extends: ClientAwareDoctrineRecord
Bernhard
--
Software Architect Engineer
Blog: http://webmozarts.com
2009/9/4 Georg Gell geor...@have2.com:
Dear list,
is it
Hi Matías,
Add a file sf_admin.XX.xml to the directory apps/MY_APP/i18n/, where
XX is the culture you want to translate it to and MY_APP is your
application.
Put inside the following content:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE xliff PUBLIC -//XLIFF//DTD XLIFF//EN
Hi,
I would not use a callback validator in case, but a combined
validator. You can override the default form of sfGuardUser by
modifying sfGuardUserForm in your project:
sfGuardUserForm
{
configure()
{
$this-validatorSchema['username'] = new sfValidatorOr(array(
new
Little information don't understand.
--~--~-~--~~~---~--~~
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
Hi,
You should not pass the default value by overriding the HTML
attributes, but by calling setDefault:
configure()
{
...
$this-setDefault('Notes', 'My default value');
}
Bernhard
--
Software Architect Engineer
Blog: http://webmozarts.com
Hi Stefan,
Transmitting the type in the constructor is actually a very good idea.
It's architecturally the cleanest solution IMO.
SignupForm {
__construct($type, ...)
}
MemberForm {
__construct($type, Member $member, ...)
}
Bernhard
--
Software Architect Engineer
Blog:
Hi Jake,
As the previous poster said, I usually use a custom class for
resizing, but you can simply use sfThumbnail from sfThumbnailPlugin.
As for resizing itself, a good place to do this IMO is the method
doSave() in Doctrine/Propel forms.
Bernhard
--
Software Architect Engineer
Blog:
Hi,
just my 2 cents, but the message says :
[code]
Class Idea has no method called getideaRelationId.
[/code]
Symfony complains a bout not being able to find a setter. -
understandable.
I believe i need make a setter, but where? in Idea?
So you surely are talking about a Getter , no ?
Hi Stefan,
Unfortunately neither save() nor doSave() is executed in nested forms.
You can intercept bind() in MemberForm though to pass the variables to
the nested form:
MemberForm
{
bind()
{
parent::bind();
if ($this-isValid())
{
Hi Eno,
Thanks for your reply.
I have to disagree with you I'm afraid. Everywhere I read states that
when a query string (non Symfony formatted) is appended to the URL,
the caching system is disabled, e.g. this line from the Practical
Symfony book,
Instead of clearing the cache each time you
How can i send an e-mail from within an action, but the action shall
not wait for the method to return in order to send the response to the
browser/user...
for example the standard subscription confirmation e-mail ... at the
time of signup the action invokes a method to send e-mail but does not
can anyone tell me about the how to read and write excel sheet, when i
save it, after some modification and changing ., same excel sheet i
want to read with uploaded file and save it into databases .
Regard,
NOOR
--~--~-~--~~~---~--~~
You received this message
As PHP doesn't support multi-threading, you cannot execute parallel
activities in a single request. I think the most common solution in
this case is to put the task you want to be executed independently in
some kind of message queue (like dropr http://dropr.org), which works
as a separate process
Friends,
I could not use extra jquery plugin for date js calendar. It was because, if
I have to select date of birth then, I need to go many years back click by
click.
The solution I used is already available in symfony's sf folder in web.
I did following similar to Noor M's solution
Step #1
I need to write a test which does tests in the frontend and backend
application.
I tried to switch the Context from frontend to backend with
sfContext::createInstance and sfContext::switchTo but run into
problems cause some classes like sfGuardAuth are redefined.
Is there an elegant way for cross
Use sfPhpExcel Plugin
Read required cell of Excel and store it into the database.
I have attached the actions.class.php which loads the excel file,
verify the required cells for content to be present.
Line 103 to 136 are relevant where I am reading the cell and writing
to the database table.
I'm having problems to verify existing credentials. The code is very
simple:
$sfUser = sfContext::getInstance()-getUser();
$C = 'student'
$sfUser-addCredential($C);
var_dump ($sfUser-hasCredential($C)); # returns bool(false)
print_r($sfUser); # dumps the object
myUser Object
(
The short answer is that Rails does it that way, and Symfony began
life as a Rails clone (though it has evolved considerably since then).
Longish answer... as long as helpers are really, truly
view-layer-specific code you will never, ever want to call from the
controller layer, the helper
Hello
I built my own Form (below) but neither the stylesheets nor the JavaScripts
get included on the final web page. The form widget itself does work fine.
What did I miss?
class ncWidgetFormDynDateTime extends sfWidgetFormInput
...
public function getStylesheets()
{
Hi,
I believe this is a legacy from the symfony 1.0 days when this was the
standard way to do things. Unless you're using some of the default
symfony helpers that are still set up that way, you can of course
simply write classes for helpers. This is what I usually do. This also
saves you from
Ok, I found out the problem. My problem is that I'm giving credentials
to anonymous users. So, despite the users have credentials at session,
they are unable to use credentials since they aren't authenticated.
Now I just learn why we have user atributes functions for :)
Regards,
Artur Martins
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Christian Hammers escribió:
Hello
I built my own Form (below) but neither the stylesheets nor the JavaScripts
get included on the final web page. The form widget itself does work fine.
What did I miss?
class ncWidgetFormDynDateTime extends
Im getting this error when i try to edit something:
*Catchable fatal error*: Argument 1 passed to
sfFormPropel::__construct() must be an instance of BaseObject, integer
given, called in
/home/germana/www/indepabis/lib/form/DenunciaForm.class.php on line 71
and defined in
Ok thanks,
is there a way i can perform the e-mail sending after the response has been
sent to the browser?
On Tue, Sep 8, 2009 at 12:56 PM, aalexand
alexander.s.alexand...@gmail.comwrote:
As PHP doesn't support multi-threading, you cannot execute parallel
activities in a single request. I
On Tue, Sep 8, 2009 at 4:15 PM, Jacob Cobyjc...@portallabs.com wrote:
On Sep 8, 2009, at 9:52 AM, Szabolcs Heilig wrote:
After reading that i'm imagining a helper system where symfony form
helpers,
link helpers, etc will be in helper classes. These classes can be
inherited
by AJAX,
Hi all,
I'm looking to import my existing tables into Doctrine. I'm able to
connect to the database with Doctrine already (which I suspect I made
into a bigger job that it needed to be).
I already have a set of tables which have been used throughout the
application, but using our own database
My suggestion is to use Apache rewrite and filter out the arguments
that may interfere with the caching (if you don't need them).
If you still need them in the application you would have to go into
the symfony core to make changes, probably a symfony dev could tell
more about where to make this
mod_rewrite didn't even cross my mind! Smashing idea and worked a treat.
Thanks.
2009/9/8 pghoratiu pghora...@gmail.com
My suggestion is to use Apache rewrite and filter out the arguments
that may interfere with the caching (if you don't need them).
If you still need them in the application
Hello
On Tue, 08 Sep 2009 10:48:06 -0300
José Nahuel Cuesta Luengo ncue...@cespi.unlp.edu.ar wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Christian Hammers escribió:
Hello
I built my own Form (below) but neither the stylesheets nor the JavaScripts
get included on the
Hi,
2009/9/8 Stefan Koopmanschap stefan.koopmansc...@symfony-project.com
This also
saves you from calling the use_helper() function, because classes are
autoloaded.
It can be argued that the seperate methods are easier to read within
views (since views are supposed to be very light on
Hi All!
I have a strange problem:
I'm using symfony1.2.8 and doctrine. In DB i have a one-to-many
relationship (Offer - Visits).
I have such nested forms for implementing one-to-many relationship:
OfferForm (main form) - sfForm (visit's forms holder) - VisitForm (1
or more forms for child
On Tue, 8 Sep 2009, Farrukh Abbas wrote:
Ok thanks,
is there a way i can perform the e-mail sending after the response has been
sent to the browser?
I think what Alexander meant was that you would have to write some sort of
background task that runs on the server that sends out the email
As Tom says above, helper functions should not be used in controller
or model code.
Breaking scope is not ideal. Each method should be a 'black box' that
knows nothing beyond it's scope, and gets required objects/variables
through dependency injection. Functions in PHP have the global
scope.
One last question
Is there any way how to skip next filter?
I have a condition and I need my next filter (settings) not to be
executed if the result is false
I was thinking about setting some parameter to the request but I'd
appreciate some native symfony way (sth. like $filterChain-
On Sep 8, 2009, at 9:52 AM, Szabolcs Heilig wrote:
After reading that i'm imagining a helper system where symfony form
helpers,
link helpers, etc will be in helper classes. These classes can be
inherited
by AJAX, Lightbox link helper classes and use and extend codebase
of the basic
I'd do it like this way: when you need to send a mail, add a new row
to a dedicated emails table with all the neccesary info.
Create a task, that checks this table, and if it has rows (= there are
mails to be sent), it fetches the first few and sends them.
Finally, schedule this task via cron to
ok - let me have another shot at explaining it
Problem statement: I have build a simple bloging application where multiple
people can post articles, and readers can post comments. At the backend the
administrator can approve and reject a comment. Now when the admin Approves
a comment the system
ok thanks ... i will try this solution ... can an event be used for this?
On Tue, Sep 8, 2009 at 7:49 PM, Gábor Fási maerl...@gmail.com wrote:
I'd do it like this way: when you need to send a mail, add a new row
to a dedicated emails table with all the neccesary info.
Create a task, that
Hi, is there some tool to create a autoincrement unique sting like
this?
(pcode column)
ALPHA01
ALPHA02
ALPHA03
CODE01
CODE02
CODE03
TEXT01
TEXT02
TEXT03
When I create a new pcode I want retrieve last ALPHAXX (or CODE, or
TEXT), increment it (XX+1) and save the new string.
Doctrine behavior? Or
I'm wondering if there are any suggestions on how to cleanly override
sfFormField's renderRow method.
I'd like to extend some of the functionality within that method.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
If you mean the event dispatcher, no.
Cron will start the task in the background, so it will not interfere
with your site's frontend. If you need, you can schedule it to run
more often, like 5 minutes - if there's no mail to send, it'll quit in
a few seconds anyway.
On Tue, Sep 8, 2009 at 20:56,
As I demonstrated before helpers could simply be functions generated
from classes, the feasbility is proven here :
http://trac.symfony-project.org/browser/plugins/nahoClassHelpersPlugin
Take a look at this forever-draft work that tries to give a toolkit to
get rid of these silly helpers as
Does it make sense to load an entire class for a few functions designed to
make writing templates easier?
Isn't that an argument against auto-loading in general? The big
frameworks (Drupal, CakePHP, Symfony) are wasteful when it comes to
resources. And they are slow. We don't use Symfony
On Tue, 8 Sep 2009, Farrukh Abbas wrote:
ok - let me have another shot at explaining it
I did not have difficulty understanding what you're trying to do (maybe
you had did not quite understand my reply?).
In other words, you will have to write a background task that is run
periodically on
Hi everybody!
I'm new with Symfony (Symfony 1.2 + Doctrine) and I'm trying to
develop a little project. The db schema is:
Book:
tableName: books
actAs: { Timestampable: ~ }
columns:
isbn:{type: string(13), fixed: true, notnull:
true}
title: {type:
hi All,
I'm wondering if anyone have tried creating a wizard for multiple tables?
i'm trying to create one using doctrine but having problems doing it. Can
anyone guide me please?
Thanks in advance.
--
*===--.. Pabz ..--===*
--~--~-~--~~~---~--~~
You received
hi i have appliaction name civil and my file name is filenew.yml in
data /fixture directory how to dump data into it
i have syntax
$ php symfony propel-dump-data APPLICATION_NAME
FIXTURES_DIR_OR_FILE [ENVIRONMENT_NAME]
--~--~-~--~~~---~--~~
You received this
49 matches
Mail list logo