I am using Symfony 1.2.9 for a project, and I need to use AJAX to do file uplaod. I have not found a way of doing this yet - despite days of googling.
I am using JQuery and prototype as my javascript frameworks.
Can anyone provide an example of how to upload a file using AJAX, in Symfony?
...
Hi,
What I'd like to do is take the route for the current action along with any and all of the route and query string parameters, and change a single query string parameter to something else. If the parameter is set in the current request, I'd like it replaced. If not, I'd like it added. Is there a helper for something like this, or do ...
Hey,
So I am new to symfony and am trying to make a is-a relationship between several tables. I have a media table that has a id field that is the primary key. I then except to have 2 or more additional tables that are "subclasses" of this table such as an article or event table. These are subclasses of the media table and I put a media...
i have functional query in MySql:
select t.won,e.etot, s.username,s.country,r.points,r.rank FROM sf_guard_user s
INNER JOIN marks r ON r.user_id = s.id
inner join (select t.user_id,count(t.user_id)as won from topper t group by t.user_id) t on t.user_id=s.id
inner join (select e.user_id,count(e.user_id)as etot from exams e group by e.u...
Well, imagine that we have a register form of a class Customer and we only ask three fields (name,surname,email) and after, when this user logged first time we want to complete this information.
First, we have in lib/form/doctrine a file called 'CustomerForm.class.php' wich is generated automatic on command line. In this file we 'setup'...
Hy,
What is correctness in symfony to fill a form in two steps? Imagine that we have a entity called Enterprise and we want to create a form with only required fields and another form, that when the user login can fill the other non-required fields.
How is the correctness form? Now i have a form to registration ('lib/form/doctrine/Ente...
Hey,
Im new to symfony and have some simple questions. I am trying to understand the module system, but I dont understand how I create the actual homepage or other pages that are not based off of a model from the db. For example, the simple about page that has static info or the homepage that is a combination of a bunch of information f...
Hey All!
So I am somewhat new to symfony but am getting better by the day thanks to the symfony websites and stackoverflow! So, I have a module called articles, where I display a list of articles the I uploaded. On the index, its just lists all of the article. BUt i was wondering how I could make it so that if I click on the author, for...
Hey All,
I have been using symfony for a few weeks now and I am using the online help a lot but the "Definite Guide To Symfony" seems to be very outdated. For example, I want to use the form helper function like the select_tag() function or the ajax form_remote_tag() function. However, these dont seem to exist anymore and I can only fin...
Hey,
So I have a form on my website that will submit a name and email address. I want to submit them with ajax which is simple to do, but I wanted to verify that both fields are filled in and that the email is in the correct email form.
Basically I want to run some client side validation on the fields before submitting it via ajax. Do...
So I have a module that displays articles. And I tried to make an action that displayed all article of a certain publication when that publication was clicked. I tried following the way to do this on the symfony jobeet tutorials but I ran into some new headaches. Since publications and authors can sometime be url unfriendly, I want to us...
I have a website developed in symfony (1.2.9). I want to add a wiki to the website, and have opted for mediawiki.
I want to integrate mediawiki with my website in a way such that:
media wiki does not create new users
users logged into my website are automatically logged into mediawiki (and vice versa)
ideally, I want to use the same l...
Hi,
anyone has tried to create a symfony form filter from a class which has a field of type "date" ?
When i do it, i get this error:
500 | Internal Server Error |
Doctrine_Connection_Mysql_Exception
SQLSTATE[HY093]: Invalid parameter
number: number of bound variables does
not match number of tokens stack trace
I think the...
I'm working on a Symfony project (my first) where I have to retrieve, from my Widget class, a set of widgets that belong to a Page. Before returning the results, though, I need to verify--against an external service--that the user is authorized to view each widget. If not, of course, I need to remove the widget from the result set.
Usin...
Hello,
I have the base table called SnUser and a related table, SnAltceva
schema.yml
SnUser:
columns:
name: { type: string(100) }
age: { type: integer(1) }
level_id: integer
relations:
SnAltceva: { local: id, foreign: user_id }
and
SnAltceva:
columns:
user_id: integer
field...
I am doing the Jobeet tutorial that features url routing. The url routing (I think that's the proper term) makes urls look like this
http://localhost:8080/frontend_dev.php/job/extreme-sensio/paris-france/2/web-designer
I would like to debug into this page however I cannot properly pass arguments into NetBeans. I set the arguments in...
When using Symfony 1.0, is it possible to create a link to a static file i.e. a PDF or DOC file and link to it a custom URL?
I'd like to add a file e.g. example.pdf to the web/uploads/pdf folder on the server but then link to it with a URL such as: http://www.example.com/docs/old/test/example.pdf
This situation has arisen because some ...
Hy,
How i try to do to validate that in a symfony form one of two fields is filled?
In their database definition are'nt required fields but i need that one of two fields will be filled by the user.
Thanks
Like this???
$this->setValidator('phone', new sfValidatorAnd(
array(
...
Hi,
I'm starting a new project with symfony which is readily integrated with Doctrine and Propel, but I of course need to make a choice.... I was wondering if more experienced people out there have general pros and/or cons for going with either of these two?
Thanks a lot.
EDIT:
Thanks for the all the responses, useful stuff. There's n...
Which one of this frameworks would you recommend to someone who knows the basics of PHP?
What are the advantages and disadvantages?
...