Hi,
You should use a "component slot".
Regards,
On 09/01/2010 10:10 AM, Cyrille37 wrote:
Hello,
After read some posts, I'd learned the rule that one action for one
template.
So I now need some architect's ideas to solve a case.
To fill a slot used in the layout, I call a DB Query in the
actio
Extend the sfGuardFormSignin.class.php from sfDoctrineGuardPlugin, and
in the configure method, use the setDefault('username', $value) method
to what value you want ...
example :
class signinForm extends sfGuardFormSignin
{
public function configure()
{
parent::configure();
$this->set
I did this feature on a car site :
http://www.groupe-lempereur.com
On the upper right, you can find 4 select fields, with the model
(modèle) field depending from the mark (marque) field through ajax.
*The code :*
In action.class.php :
--
"application" : You mean real app in apps/ or complete symfony project
to copy ?
Peter Peltonen wrote:
A newbie question: how do I create a copy of symfony app using a
different database? Here is what I tried:
1) copied my symfony 1.2.12 application to another dir to make a copy of it.
2) di
Hi,
In your factories.yml application config file, you can use the
"segment_separators" option on routing section :
all:
routing:
class: sfPatternRouting
param:
generate_shortest_url: true
extra_parameters_as_query_string: true
segment_separators: ['.','/','_']
Hope this
I am not sure to understand,
You want to retreive category from the existing job ? right ?
But if this is the case, what about the first record ? You won't have
any existing category, does not make sense ... (or you have to display a
select input and a free text input, then get the value from
, class: Profile}
//Syam
Alexander Deruwe wrote:
I have the following yaml schema:
Profile:
# blah blah
Channel:
actAs: { Timestampable: ~ }
columns:
sender_id: { type: integer, notnull: true }
receiver_id: { type: integer, notnull: true }
relations:
Profile: { local
You have to pass a Doctrine query to the widget, not a Doctrine collection.
(Note the "Query" part in my getCampaignsQuery() table method example.)
Samuel Morhaim wrote:
Syam.. that didnt work it gives me an error.
$query =
Doctrine::getTable('Campaign')->
Hi,
You can use the sfWidgetFormDoctrineChoice widget with the 'query'
option, thus, you can pass params to your query throught the form option
system :
*In action :*
$this->form = new campaignForm($record, array('organization' =>
$user->organization) // or any param you want from $request o
Hi,
You can write your own class extending the sfValidatedFile class and put
your code in it.
You can found an concrete example on the excellent "Symfony in the
Cloud" slides from Kris Wallsmith at sfLive2010
http://www.slideshare.net/kriswallsmith/symfony-in-the-cloud (class
example at slid
You must only pass the keys of your $modulo array to validator :
$this->validatorSchema['id_modulo'] = new sfValidatorChoice(
array('choices' => array_keys($modulos))
);
wueb wrote:
Hi mates,
I'm having a problem in this piece of code:
$modulos = array ( 1 => "option 1", 2 => "option
If you forgot "echo $form->renderHiddenFields();", then
"unset($this["id"])" make sense since the validator don't try to taint
the missing value.
Can you paste your template code please ?
Samuel Morhaim wrote:
unseting id worked.. However.. why is this necessary? The generated
Crud, did not
Take a look :/
$request->getParameter('id')));/
Don't think it's correct because symfony framework use an array
container for submitted values.
Regarding your model, you should have something like "campaign[]" POST
container.
So to get the posted id from current record, and assuming you are
13 matches
Mail list logo