That is cool, you honor me by responding "yourself" :D
I was actually needing that feature to generate a 'current' id ("blabla") according to the current
route.
But I wanted its controller to do some stuff before rendering the template.
That is why I didnt 'include' the template.
Regards.!
2011/
On 4/1/11 3:09 AM, oscar balladares wrote:
Hi everybody, as I mentioned I think I found a bug in the Request component.
Before submitting the issue I need you to confirm or advice me if this
is really a bug and not a feature or misusing.
I resume, I have a main layout, which render a controller'
Hi everybody, as I mentioned I think I found a bug in the Request component.
Before submitting the issue I need you to confirm or advice me if this is
really a bug and not a feature or misusing.
I resume, I have a main layout, which render a controller's response
template, in that template I want
As I best understand it, the "table" object is supposed to act as a
repository. You would, ideally, add methods to the table class to
retrieve instances of 'tableClass'.
It may be better illustrated with an example:
You have a class(model) User. In your UserTable class you might make
a method c
Hi!
Can someone explain me what is the difference between:
$this->var = Doctrine_Core::getTable('tableClass')-
>createQuery('alias')->where('alias.column > ?', date);
and this?
$this->var = Doctrine_Query::create()->from('tableClass alias')-
>where('alias.column > ?', date);
Why not using a si
Check what mime type is sent by IE. You can use wireshark, or do a quick n'
dirty die(var_dump($_FILE)) in your action.
On Mar 31, 2011 8:35 PM, "_kud" wrote:
> Hello,
>
> I've some troubles with IE6 (oh, really?), I'd like to validate my mp4
> uploaded file but sf 1.4 answers me it's a wrong mime
Inline javascript is really frowned upon these days as "bad practice"
Consider looking at using a javascript library like JQuery. It simplifies
your Javascript code immensely, makes calling abstracted functions dead easy
from an external file based on triggering events on DOM elements and best of
a
Hello,
I've some troubles with IE6 (oh, really?), I'd like to validate my mp4
uploaded file but sf 1.4 answers me it's a wrong mime type.
What I've done:
$this->setValidator('video', new sfValidatorFile(
array(
'mime_types' => array('video/mpeg','video/mpg','video/
mp4'),
Hi Albert,
Thanks for the reply.
When I use this syntax:
{% assets 'mybundle/css/*.css' output='css/all.css' %}
{{ asset_url }}
{% endassets %}
It throw an exception:
Unknown tag name "assets" in "PlaysoftHR::layout.html.twig" line 6
That's why I checked in assetic to see that the method sty
Hello all!
Can anyone give a hint with file constraint?
The problem:
- form with FileField:
Code:
$this->add(new FileField('photoFile', array(
'required' => false,
'secret' => 'wwewewewew'
)));
- form request class:
Code:
/**
* @validation:File(
Hi Oscar!
I don't believe this will be a feature added to Symfony2, but it would
indeed make for a very useful Twig function (and could potentially be
put into the Twig extensions repository). I'm not sure if anyone has
already implemented this on their own, but if someone has, hopefully
they'll s
I can't say anything about combining symfony + drupal, but I've heard
only good things about the CMS Apostrophe. I don't believe Diem is
being actively maintained and sympal definitely isn't being
maintained.
Thanks!
On Mar 31, 6:55 am, mamadou aliou diallo wrote:
> ytry
>
> Mamadou Aliou Bobo
Hi,
We are Gemin-i, an education charity based in London, UK. We recently
launched our online learning community for school children and
teachers called Rafiki (http://v3.rafi.ki) and are looking for
inspiring developers to join our growing team.
Our award winning platform consists of many exciti
but where i have to that ?
in my entity ?
/**
* @orm:Column(type="string", name="email")
*/
private $username;
thanks
On 31 mar, 15:58, Gareth McCumskey wrote:
> No, just make the username = email
>
> On Thu, Mar 31, 2011 at 5:34 PM, symfonyMan wrote:
>
>
>
> > Hello
>
> > Thanks
Thanks so much for the quick response!
On Mar 31, 11:39 am, Christophe COEVOET wrote:
> Le 31/03/2011 18:30, Donald a crit :> Can anyone tell me how to use my custom
> function with Doctrine 2 in
> > Symfony 2?
>
> > Thanks,
>
> Register the function throught the configuration:
>
> doctrine:
>
Le 31/03/2011 18:30, Donald a écrit :
Can anyone tell me how to use my custom function with Doctrine 2 in
Symfony 2?
Thanks,
Register the function throught the configuration:
doctrine:
dbal: ~
orm:
entity_managers:
default:
mappings:
Hi,
I'm trying to use a custom DQL function with Symfony 2, but I'm unsure
how to register the function with the Doctrine configuration when
using Symfony 2.
I've setup my DQL function as explained here:
http://www.doctrine-project.org/blog/doctrine2-custom-dql-udfs
And I've discovered a setting
No, just make the username = email
On Thu, Mar 31, 2011 at 5:34 PM, symfonyMan wrote:
> Hello
>
> Thanks for your replay
>
> I have to delete email property in user entity ??
>
> there is not other method ??
>
> thanks
>
> On 31 mar, 12:59, Gareth McCumskey wrote:
> > Just make your username an
Ok, found the issue, but I still don't know why it appeared. I added this to
my config.yml
parameters:
session.default_locale: es
But I didn't defined in any place %session.default_locale%.
Were there any changes adding this parameter?
Thanks.
--
If you want to report a vulnerabilit
Hello
Thanks for your replay
I have to delete email property in user entity ??
there is not other method ??
thanks
On 31 mar, 12:59, Gareth McCumskey wrote:
> Just make your username an email address
>
> On Thu, Mar 31, 2011 at 2:26 PM, symfonyMan wrote:
>
>
>
> > Hello,
>
> > I created a
Hi Mohamed,
Your saying that
$request->getParameter('matricule');
returns null value. That means you're retrieving or passing the value
incorrectly. Check if:
- the variable name is matricule
- the variable is being passed to the action using HTTP GET, either through
routing or manual passing from
Your query returns no results from the database. THEREFORE there are no
objects to call getPrenom on because none were extracted from the database.
You need to where you call $utilisateur->getprenom() do something in case
there are no results. This isn't a symfony issue but a PHP one. Think a
litt
Yes. It was the first thing I did but it doesn't work.
On Thu, Mar 31, 2011 at 10:22 AM, Christophe COEVOET wrote:
> Le 31/03/2011 15:00, Gustavo Adrian a écrit :
>
> Hi all,
>>
>> I recently updated symfony (2 weeks ago was my last update). I'm receiving
>> this error:
>>
>> "Uncaught exceptio
like what because i use symfony for first time so can you help me
2011/3/31 Christophe COEVOET
> Le 31/03/2011 15:12, mohamed sabri ben sassi a écrit :
>
> yess i cant get my column with the methode get() it didnt work when i
> make $utilisateur->getprenom()
> Fatal error: Call to a memb
Le 31/03/2011 15:00, Gustavo Adrian a écrit :
Hi all,
I recently updated symfony (2 weeks ago was my last update). I'm
receiving this error:
"Uncaught exception 'InvalidArgumentException' with message 'The
parameter "session.default_locale" must be defined"
I didn't change anything in my c
Le 31/03/2011 15:12, mohamed sabri ben sassi a écrit :
yess i cant get my column with the methode get() it didnt work
when i make $utilisateur->getprenom()
Fatal error: Call to a member function getprenom() on a non-object
You issue is not with ->getprenom.
The issue is that you don't ge
yess i cant get my column with the methode get() it didnt work when i
make $utilisateur->getprenom()
Fatal error: Call to a member function getprenom() on a non-object
2011/3/31 Gareth McCumskey
> Then thats your problem...
>
> On Thu, Mar 31, 2011 at 2:43 PM, mohamed sabri ben sa
Hi all,
I recently updated symfony (2 weeks ago was my last update). I'm receiving
this error:
"Uncaught exception 'InvalidArgumentException' with message 'The parameter
"session.default_locale" must be defined"
I didn't change anything in my config.yml:
framework:
session:
defaul
Just make your username an email address
On Thu, Mar 31, 2011 at 2:26 PM, symfonyMan wrote:
> Hello,
>
> I created a userBundle in my symfony2 project, it work good with
> authentication by username.
>
> I want to authenticate the users with the email property, and i don't
> know what to chan
Then thats your problem...
On Thu, Mar 31, 2011 at 2:43 PM, mohamed sabri ben sassi <
mohamedsabri.bensa...@gmail.com> wrote:
> it dont return any value
>
>
> 2011/3/31 mohamed sabri ben sassi
>
>> elle ne retourne aucune valeur
>>
>>
>> 2011/3/31 Haris Fauzi
>>
>>> Hi Mohamed,
>>>
>>>
Hello,
I created a userBundle in my symfony2 project, it work good with
authentication by username.
I want to authenticate the users with the email property, and i don't
know what to change in configuration, entities to enable that.
any idéas ??
Thnaks
sorry for my bad english
--
If you wan
it dont return any value
2011/3/31 mohamed sabri ben sassi
> elle ne retourne aucune valeur
>
>
> 2011/3/31 Haris Fauzi
>
>> Hi Mohamed,
>>
>> This means that when you call
>> $utilisateur->getprenom()
>> The variable $utilisateur is not an instance of a class.
>>
>> Check the value of $reques
elle ne retourne aucune valeur
2011/3/31 Haris Fauzi
> Hi Mohamed,
>
> This means that when you call
> $utilisateur->getprenom()
> The variable $utilisateur is not an instance of a class.
>
> Check the value of $request->getParameter('matricule') if it's returning a
> valid value to pass for fi
On Mar 5, 12:04 am, eric le bihen wrote:
> > Is this because I'm using multipart mails?
>
> Correct. The sfTesterMailer checkBody does not check for message mime parts.
> You could create a sfTesterMailerMultipart class that would extends the
> sfTesterMailer
> ...
> You would need to iterate thr
With symfony 1.x you can easily get access to ALL request headers in your
controller actions. Using this, you can also alter the response headers as
well as the content you respond with by reading what the request header is.
If you wish to do this across an entire application you can also pre or po
ytry
Mamadou Aliou Bobo Diallo
De : Javier Garcia
À : Symfony users
Envoyé le : Jeu 31 mars 2011, 2h 08min 16s
Objet : [symfony-users] Symfony + CMS
Hi,
someone to tell me what pros and cons combining symfony with drupal?
Should i use better any other CMS
I needed to generate the admin, but i got it. I did a module to each
relationship too, and it is working fine now. Thanks
On 28 mar, 18:07, oscar balladares wrote:
> I didn't get you [?]
>
> Do you need the schema for that database requirements? or do you need the
> code
> to do it so in the admi
Hi Mohamed,
This means that when you call
$utilisateur->getprenom()
The variable $utilisateur is not an instance of a class.
Check the value of $request->getParameter('matricule') if it's returning a
valid value to pass for find().
$matricule_value = $request->getParameter('matricule');
printf(
Hi!
I try to create dynamic form with CollectionField. Exaple (below $this-
>formContext is from container, $data is array)
-- form builder class --
public function createForm($data)
{
$form = Form::create($this->formContext, 'collections');
$sub = Form::create($this->formContext, 'sub'
This is a mailing list, not a chatroom - do not expect an immediate answer.
Also, there's no need to ping your thread that often.
Most probably the value passed to find is incorrect, look around there.
On Mar 31, 2011 12:45 PM, "mohamed sabri ben sassi" <
mohamedsabri.bensa...@gmail.com> wrote:
>
help
2011/3/31 mohamed sabri ben sassi
> its correct s
>
>
> 2011/3/31 Gábor Fási
>
>> Var_dump $utilisateur. Judging from the message doctrine doesn't find a
>> matching record, thus returns false. Also check the query that is run.
>> On Mar 31, 2011 12:20 PM, "
its correct s
2011/3/31 Gábor Fási
> Var_dump $utilisateur. Judging from the message doctrine doesn't find a
> matching record, thus returns false. Also check the query that is run.
> On Mar 31, 2011 12:20 PM, "mohamed sabri ben sassi" <
> mohamedsabri.bensa...@gmail.com> wrote:
> >
Var_dump $utilisateur. Judging from the message doctrine doesn't find a
matching record, thus returns false. Also check the query that is run.
On Mar 31, 2011 12:20 PM, "mohamed sabri ben sassi" <
mohamedsabri.bensa...@gmail.com> wrote:
> its the same thing i wont work have you an other solution
>
setTableName('utilisateur');
$this->hasColumn('matricule', 'integer', null, array(
'type' => 'integer',
'primary' => true,
));
$this->hasColumn('password', 'string', 255, array(
'type' => 'string',
'notnull' => true,
please mention your table schema here ...
On Mar 31, 3:20 pm, mohamed sabri ben sassi
wrote:
> its the same thing i wont work have you an other solution
>
> 2011/3/31 Gareth McCumskey
>
>
>
>
>
>
>
> > Try using getPrenom not getprenom. Case sensitivity might be the issue
> > here.
>
> > On Th
its the same thing i wont work have you an other solution
2011/3/31 Gareth McCumskey
> Try using getPrenom not getprenom. Case sensitivity might be the issue
> here.
>
> On Thu, Mar 31, 2011 at 11:30 AM, mohamed sabri ben sassi <
> mohamedsabri.bensa...@gmail.com> wrote:
>
>> pleaaase help
Try using getPrenom not getprenom. Case sensitivity might be the issue here.
On Thu, Mar 31, 2011 at 11:30 AM, mohamed sabri ben sassi <
mohamedsabri.bensa...@gmail.com> wrote:
> pleaaase help
>
>
> 2011/3/31 mohamed sabri ben sassi
>
>> matricule is an integer value and it is primary key
>>
pleaaase help
2011/3/31 mohamed sabri ben sassi
> matricule is an integer value and it is primary key
> also my colomn is named prenom ,,i checked all of this but its nothing ,,,
> it works with the other module i will show the other exemple
> action.class:
> public function executeShow(sf
matricule is an integer value and it is primary key
also my colomn is named prenom ,,i checked all of this but its nothing ,,,
it works with the other module i will show the other exemple
action.class:
public function executeShow(sfWebRequest $request)
{
$this->utilisateur =
Doctrine::getTa
Could you please mention the exact value that you are trying to pass
to find().
I would like to know whether its an array or a single value that you
are passing.
Regarding "getprenom()" there must be a column named "prenom" in your
DB table. generally its in camel case for example if in your mysq
yes i tried with this ,,i have passed in find the primary_key weach is
matricule but the same thing ,,i really stocked its bizare,,because when i
generate an other module with showSuccess it works ,,but if i create my own
function in action.class and my own template it makes an error
Fatal error
Hi
Please try with
$this->utilisateur = Doctrine::getTable('utilisateur')->find($request-
>getParameter('matri cule'));
find tries to search the row on the basis of primary key. That means
you must pass primary key in find('PRIMARY_KEY')
try this and post your feedback.
-deepak
On Mar 31, 1:
hi guys,,i need help
i have an error when i want to view my name or some information extracted
from base with function getprenom or getmatricule ,,,the error is:
Fatal error: Call to a member function getprenom() on a non-object in
C:\development\sfprojects\gestion des
competences\apps\fronten
salut ,,
j'ai une erreur qui m'enerve quand je veux afficher mon prenom avec dans
le template avec la fonction getprenom() il m'affiche l'erreur suivante
Fatal error: Call to a member function getprenom() on a non-object in
C:\development\sfprojects\gestion des
competences\apps\frontend\modul
svp quelqun qui veut m'aider!!!
2011/3/30 mohamed sabri ben sassi
> salut ,,
> j'ai une erreur qui m'enerve quand je veux afficher mon prenom avec
> dans le template avec la fonction getprenom() il m'affiche l'erreur
> suivante
>
> Fatal error: Call to a member function getpreno
55 matches
Mail list logo