at the moment i have a column "user_id" in the "threads" table cause one thread belongs to an user.
i want to make it like Stackoverflow that one thread can be editable by many users and you can see when they edited, what they edited, roll back changes and so on.
im using symfony, is there a plugin for this?
if no, are there any 3rd p...
I have a CampaignForm class. It has children Campaign1Form, Campaign2Form, .. CampaignNForm
They have by default ref_campaign_type = unique_value_for_each_form_class;
How can I get this value in parent class CampaignForm?
My way is:
$vars = sfContext::getInstance()->getUser()->getAttributeHolder()->get('storedValues', null, 'nsappid_a...
i want to create users for my webapplication.
im using symfony. i wonder if i should do that with sfDoctrineGuardPlugin or symfony's provided methods for this?
// Add one or more credentials
$user->addCredential('foo');
$user->addCredentials('foo', 'bar');
// Check if the user has a credential
echo $user->hasCredential('foo'); ...
whenever i add a feature i want to have all files (php, css, js, img etc) in one folder.
i know that this bundle feature will come with symfony 2.0 but i wonder if i can have all files in one folder/plugin in symfony 1.4 cause it seems that you have to have the js/css/img in web/ folder?
thanks
...
what is the difference between the symfony "myUser" and doctrine model "User"?
where should i put the methods for an user?
eg. $user->createThread(), $user->deleteThread() and so on
should $user be an instance of the doctrine model User (cause i have a table called User) or the myUser that extends sfBasicSecurityUser?
thanks!
...
I am fairly new to symfony and I have 2 fields relating to my table "Pages"; created_by and updated_by. These are related to the users table (sfGuardUser) as foreign keys. I want these to be hidden from the edit/new forms so I have set up the generator.yml file to not display these fields:
form:
display:
General: [name, template_i...
Here's an interesting question, that I'm pretty sure symfony can do.
we're launching a site in the next little while, and right now I have all symfony exceptions show up on the front page (well we're in dev :)).
is it possible for me to get symfony to email that information to me, every time somebody encounters it?
...
Hi,
in the cover page (login, register...) of my app i have this line:
<link rel="stylesheet" type="text/css" href="/css/formularios.css">
When i deploy my app, the that css rule is not loaded because, as i can
see in Firebug, it's looking for that rules in
www.tirengarfio.com/css/formularios.css instead of
www.tiregarfio.com/rs2/web...
I need to allow for scaling a user uploaded logo to different sizes for different formats, are there any libraries (included or extra) that allow for the procesing of EPS files or high res artwork for this purpose?
...
My application makes use of the sfGuardUser plugin. One of my tables has a relation onto the sf_guard_user table so there is a corresponding setSfGuardUser() function in the base model. From Actions.class.php, I am attempting to set the current user into the object using this function, (Which I then save in the database).
my attempt:
...
Good day,
I have an application written using the Symfony framework. The application works on my development server, where I have shell access. However, I am unable to load my application on my host, as I need to run symfony doctrine::build on the command line on the host.
Is there another way to load the database after or during sym...
Hi,
I'm not really sure I'm using the good terms, so I'll try to explain my problem first.
I have a cross-reference table, CompetenceCollab, containing the associations between people and their competences. This table has two primary keys, the people's id, and the competence's id. To this point, everything is ok.
However, the new feat...
Summary:
Using the following YML I get a reference to a FOREIGN KEY (role_id) that is not in my YML.
Problem:
I'm trying to create a system where there is a user (CreditName) who can belong to many role's (all of which can have many users). There are also many projects, which can contain many User+Roles, so I'd like the Project to ...
Hi,
I have this action below at miembros/actions/actions.class.php:
public function executeFoo(sfWebRequest $request){
return $this->renderPartial('foo');
}
and in miembros/templates i have _foo.php
When i execute it, the css files i have at frontend/config/view.yml are
not loaded. I have also tried using in _foo.php:
<?php ...
I have a showSuccess page that requires some get variables, and on that page is a form. When the form submits to executeCreate() and there is an error, it calls the function setTemplate('show') and returns back to showSuccess. However, the get variables are missing.
How do I keep the url the same?
...
I'm using a custom Widget for date fields, and I want to use it in all my forms. The problem is that symfony uses the default sfWidgetFormDate. What I want is to change this default widget in order to generate forms with my custom Widget. I don't want to change by hand all the forms generated.
The only approach I have found is the trik ...
in symfony 2.0 and django there are bundles that contain everything for a feature (html, css, js, img, php/python).
so if you want to delete one feature, you basically just delete that bundle and unregister it from "main".
are there java frameworks for this too? or is it different in java cause java is a compiling language.
thanks
...
As the question states, is this task safe for a production environment? I find the permissions rather permissive, the cache directory is the one i find particularly suspicious. Write and execution permission on a code directory is somewhat suspicious.
Cheers
...
I am running Symfony 1.3.2 on Ubuntu. I need to write a batch script that can:
Access the database using the ORM
Send email(s)
IIRC, this was in a previous cookback, but I thing that was for an earlier version of Symfony (the API may have changed since).
Does anyone know how I may access the database via the ORM layer in a batch scr...
Is there a way to insert logic based on virtual fields into a Doctrine_Query?
I have defined a virtual field in my model, "getStatus()" which I would ultimately like to utilize in a Where clause in my Doctrine_Query.
...
->AndWhere('x.status = ?',$status);
"status", however, is not a column in the table it is instead computed by bus...