Firstly, symfony does that for you ;). Secondly it was just a quick
example to get him on the right road. I didn't have time to sit and
show a fully worked, real world example.
Jsut to reiterate, symfony already checks what parameters are passed
through GET and POST for you for SQL injection and c
As a bew symfony developer I highly recommend you start and complete
the Jobeet tutorial for Doctrine:
http://www.symfony-project.org/jobeet/1_2/Doctrine/en/
This will give you a great example of using everything in symfony you
would ordinarily use. I know it seems like a long way to get going,
b
Hi
set the documentRoot of your apache server upto your indepabis/web
On Fri, Mar 5, 2010 at 8:08 PM, Germana Oliveira wrote:
> Hi.
>
> I have an x10hosting.com acount, i already freeze my project and upload
> it to the server, in a directory with myProject name, but:
>
> when i go to my web pa
Symfony binds with doctrine,
so I wander if there is a ORM based solution so that I don't have to
write queries explicitly?
On 3月6日, 上午6时41分, Alex wrote:
> may be like this
>
> $db = Doctrine_Manager::connection();
> $sql = "insert into tags(name) value('$name') on duplicate key upadte
> count
Hi.
I have an x10hosting.com acount, i already freeze my project and upload
it to the server, in a directory with myProject name, but:
when i go to my web page : http://bogapp.x10hosting.com/
what i see is:
Index of /
* cgi-bin/
* images/
* indepabis/
* postinfo.html
Hi all, is there a way to update a subform when the selected value in
a sfWidgetFormDoctrineChoice changes?
I'm using javascript onChange, however, i need to create a doctrine
query with the selected value, and is not possible to pass javascript
vars to PHP.
Any ideas to overcome this? Thanks.
-
More info:
The same widget, generated with sfWidgetFormDoctrineChoice without passing
any method for filtering (Notice it has one more value, of course because it
is not filtered, but the value = id):
Special Sale
30 Off
20 Off Code
20 Off
Same field as above but using: = new sfWidgetFormChoi
I have a question, I have a dropdown that needs to be populated from the
database, but with a query, and the query is based on a post variable.
I know that sfWidgetFormDoctrineChoice has an option for passing a method,
but I can't pass a method + parameter like that.
So I used the simple sfWidget
may be like this
$db = Doctrine_Manager::connection();
$sql = "insert into tags(name) value('$name') on duplicate key upadte
count=count+1";
$db->exec($sql);
or with prepare statement (NO sql-inject)
$db = Doctrine_Manager::connection();
$sql = "insert into tags(name) value(?) on duplicate
Just to beat that horse some more, since Apostrophe is open-source and
built by programmers that encountered all the problems and challenges
you're looking to solve, the suggestion is to look at their schema /
code for inspiration. Any answer we could give you here would simply
re-iterate what's in
my bad, I feel so dumb...
I looked for a long time, but did not check if I used the right
template, and I wasn't...
sorry for this.
On 5 mar, 16:51, MoUeTtE wrote:
> Hi there,
>
> I just migrated to symfony 1.3, so that could be part of the
> explanation, but I can't use the sfWidgetFormInput
Hi Gareth,
the method that you show us have a security problem: inject sql. You need to
check what kind of parameter the user is sending.
if (!in_array($parameter, array('asc', 'desc'))) {
//do something
} else {
//execute the query
}
bye
Augusto Morais
--
If you want to report a
Did you check the paths in the AJAX files?
On Mar 3, 6:41 am, maelo_fredas wrote:
> Hello everyone:
>
> I'm developing an app with symfony-1.2.12, Doctrine and PostgreSQL.
> Deployed it according the steps defined in Jobeet. The files were
> successfully transferred after deploy task (done in the
Hi there,
I just migrated to symfony 1.3, so that could be part of the
explanation, but I can't use the sfWidgetFormInputFileEditable.
in fact, everything seems to go right as field is displayed, but I've
got an empty value in my doSave method.
the way I configured my form is the following:
Unfortunately, the form docs are almost abandoned.
I wrote the update for symfony 1.4 myself, but more work is needed.
I asked Fabien at symfony live, he told me to rearrange the chapters
and to add a chapter on embedding forms.
If you want to help, please write on symfony-docs group
cheers
Massim
This is what my ProjectConfiguration.class.php looks like.
enablePlugins('sfDoctrinePlugin');
}
}
\
i've tried the path a few different ways such as:
C:\\frameworks\\symfony-1.4.2\\lib/autoload/sfCoreAutoload.class.php
and
C:/frameworks/symfony-1.4.2/lib/autoload/sfCoreAutoload.class.php
array('' =>'-', range(14,130))
...seems to me a bit a strange construction, a mix of associative and
non-associative array elements. In any case the 'choices' option needs
a associative array, so it may work better if you put together a
proper associative array?
E.g. like:
$choices =array_merge(arr
How this module should look like?
- what should be in the listing page
- how the edit and insert forms should look?
On 2 bře, 22:06, Herzult wrote:
> Hello,
> I am trying to create a kind of child module with admin generator.
> I wanted to know if you have solutions.
>
> Take for example the fo
Hi,
I have this widget:
$this->widgetSchema['age_from'] = new
sfWidgetFormChoice(array('choices' => array('' =>'-', range(14,130;
When i click on it to select a value, the expanded select shows a italic 14,
between '-'
and 14,15
Any idea?
Javi
--
If you want to report a vulnerabil
Hi, I'm very new to symfony, and just a novice developer also...
I searched in forum and documentation already and can't find the
answer (probably because it's too basic and simple :D)
Here's the case :
I have one table, 'user' to save username and password, then I want to
retrieve the data from
More information will be good. For example, what is the URL that you
try to call?
Is it /exp/send/sometoken ?
On 3 Mrz., 09:43, feykintosh wrote:
> Hi all,
> I'm having a problem with routing.
>
> route.yml settings:
> Send:
> url: /exp/send/:token
> param: { module: exp, action: Send
Maybe this http://forum.symfony-project.org/index.php?t=msg&th=17867&;
or http://forum.symfony-project.org/index.php/m/75882/ or
http://forum.symfony-project.org/index.php/m/92096/ will help you.
On 4 bře, 10:45, mbernasocchi wrote:
> sorry to bothe abain, but the pastebin expired... now it's all
22 matches
Mail list logo