I was trying to up load image hear is the code which i wrote
in lib/form class
$this->validatorSchema['picture'] = new sfValidatorFile(array(
'required' => true,
'path' => sfConfig::get('sf_upload_dir').'/images'));
in action file
$files = $request->getFiles('user');
$req = $req
Could this be related to the php setting "magic quotes"?
Daniel
On Apr 10, 11:47 am, Simon Cast wrote:
> I recently upgraded to 1.4.12 and this has produced the odd error
> where form input is escaping quotes on entry to the system. By this I
> mean I echoed the clean & bound form and the text f
Le 11/04/2011 20:03, Hernan Slavich a écrit :
I have this doubt too.
Is there a way to organize controllers in sub folders?
Example:
/src
/Blog
/BlogBundle
/Controllers
/Front
ExampleController.php
/Back
AdminC
Le 11/04/2011 21:19, Dark a écrit :
I have installed UserBundle, but when I try open app_dev.php there i
see
Fatal error: Interface 'Symfony\Component\Config\Definition
\ConfigurationInterface' not found in C:\dotabash.ru\symfony\vendor
\bundles\FOS\UserBundle\DependencyInjection\Configuration
Hi Steveon,
I assume you are using the admin generator for your backend application.
You should create a partial, prefixing your field name with an underscore;
now you will be able write custom code (in your case a call to image_tag
with the image path).
Read http://www.symfony-project.org/jobeet/
I have this doubt too.
Is there a way to organize controllers in sub folders?
Example:
/src
/Blog
/BlogBundle
/Controllers
/Front
ExampleController.php
/Back
AdminController.php
On Apr 11, 9:52 am, weaverryan wrote:
>
Hey weaverryan,
thanks for you answer! Your description of organizing the source code
opens my mind for the bundle system. The idea of decoupling the comments
from the article and use them for other projects is really great. But as
you mentioned my Blog project wouldn't be to big because it's o
>
> create a "PageService" for fetching/saving your domain models and leave
> Doctrine for the persistence of data.
agreed.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to
I have installed UserBundle, but when I try open app_dev.php there i
see
Fatal error: Interface 'Symfony\Component\Config\Definition
\ConfigurationInterface' not found in C:\dotabash.ru\symfony\vendor
\bundles\FOS\UserBundle\DependencyInjection\Configuration.php on line
18
Hey All,
I've recently added user photo to the sf_guard_user table and am able
to upload and display the photo when i select the user for
modification. What i would like to know is how to display the photo in
the user list tablei've added it to the generator.yml file but it
only displays the p
Ok I'm stuck :(
I didn't figure out why it does not find my entity .
It only have my Entity classes manually written including my getters and
setters , without running the doctrine:generate:entities command. I am
asking if is there absolutely necessary of having XML or YML mapping of my
entities i
Now I found out that Annotation validation is working as expected..
But why doesn't the yml or xml file validation work??
One last idea came to my mind: I built my model also with annotations, so
maybe the yml validation only works if there is a yml model too? But this
doesn't make sense, only
I'm sorry, I had read the whole message but I did not understand you,
my English is not good. I think now I understand everything. Thanks
for everything and sorry again.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received th
I just wanted to tell you guys, in case anyone is in the same
situation, that I've implemented this approach. It's not that much work as I
thought, and it works like a charm. I'm using now two ACEs for each object
and SID, and two ACEs for each field of the object and SID. One ACE for
ALLOW permiss
Le 11/04/2011 16:01, smontes a écrit :
so , the solution would be :
The simpliest solution would be removing the firewall named "login" and
use only the firewall named "main" with "anonymous: true". (I really
have the feeling that you did not read my whole message as it was still
what I said t
Yes, I thought about that. I've been avoiding that approach, but I think now
it could help. That way I wouldn't need to delete and insert the ACE again.
I could update it and that's it. It's a little bit more of work but I'll
give it a try. I'll get back with comments about it. And I'll try to
repr
so , the solution would be :
> > login:
+ pattern: ^/demo/login$
> > security: false
>
> > secured_area:
> > pattern: /demo/.*
> > form_login:
> > check_path: /demo/login_check
> > login_path:
Le 11/04/2011 15:00, smontes a écrit :
1º - I remove the anonymous entry and put this :
The good fix would have been to remove the "login" friewall, not the
anonymous entry.
firewalls:
login:
pattern: /demo/login
The pattern should be ^/demo/login$ if you want to m
1º - I remove the anonymous entry and put this :
firewalls:
login:
pattern: /demo/login
security: false
secured_area:
pattern: /demo/.*
form_login:
check_path: /demo/login_check
login_path: /de
Hey there-
I'd say that both are fine. If you simply want to add comments to your
articles, I'd just start with having them inside the same bundle. The
advantage of having them in two bundles is more separation/
organization (and if your Blog bundle isn't too big, that's not a huge
concern) and be
Le 11/04/2011 14:27, smontes a écrit :
hi, My user is always autenticated as anonymous, so the redirection
does not work.
security:
encoders:
Openxesta\UserBundle\Entity\Usuario:
algorithm: md5
encode-as-base64: false
iterations: 10
rol
hi, My user is always autenticated as anonymous, so the redirection
does not work.
security:
encoders:
Openxesta\UserBundle\Entity\Usuario:
algorithm: md5
encode-as-base64: false
iterations: 10
role_hierarchy:
ROLE_ADMIN: ROLE_USE
i agree that investigating the available tools before you embark on your
development is crucial, but as Gareth mentioned having the available
expertise if your team jump ship (and they will) is also important, seeing
as your application is already up and running - it is going to take alot
more effo
hi
Symfony2 bundles Resources dir is
SomeBundle
Resources
config
config.yml
views
layout.html.twig
but i want set second dir
For example
home
user
SomeBundle
Right, I had a tab at this line. Thanks !
Ok for the DQL functions, I don't want to upgrade my PR6, so I'll wait the
first RC :)
--
Christophe Beyer
cbe...@cap-tic.fr
Le 8 avr. 2011 à 18:21, Christophe COEVOET a écrit :
> Le 08/04/2011 18:03, Christophe Beyer a écrit :
>>
>> Ok thanks,
Thanks !
That push me into a different area. I get an exception :
RuntimeException: Please define a default `baseRouteName` value for the
admin class `Tock\TockFlatPagesBundle\Admin\GroupPageEngineAdmin
and also an error :
FileLoaderImportException: Cannot import resource
"'C:\\xampp\\htdocs\\mc1\\
Its on the symfony website:
http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_sub_helpers
On Mon, Apr 11, 2011 at 11:38 AM, coviex wrote:
> Hi,
>
> How do I get my function available in all views just like url_for()?
>
> Regards,
> Kostia
>
> --
> If you want to report
I mostly like the part that we will get one more girl in the community :)
Anyway, I personally think that if you have 3 year experience with RoR and
your team does it also, compared to 1 year of PHP or so. It would be better
to go with what you now best.
But if you still sure you want to learn new
Hi,
How do I get my function available in all views just like url_for()?
Regards,
Kostia
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group
this is also a little workaround that works well if you use a service quite
often, here the doctrine odm document manager
/**
* @return Doctrine\ODM\MongoDB\DocumentManager
*/
private function getDM()
{
return $this->get('doctrine.odm.mongodb.document_manager');
}
If you use it in anoth
The tag name is not valid.
And it is how you should declare the arguments :
>>> arguments: [null, Tock\TockFlatPagesBundle\Entity\GroupPageEngine,
>>> TockTockFlatPagesBundle:GroupPageEngineAdmin]
On 11 avr. 2011, at 11:56, seven seven wrote:
> You mean like this :
> arguments: [null, TockTock
You mean like this :
arguments: [null, TockTockFlatPagesBundle:GroupPageEngineAdmin]
?
I am in dev mode, ah I was referring that no fields are present, the Admin
template is there on the page, like there is no entity attached
On Mon, Apr 11, 2011 at 12:51 PM, Thomas Rabaix wrote:
> The arguments
The arguments signature has changed. You must add "null" as first argument.
The white page is not normal, if you are in dev mode you should see an error
stack
On 11 avr. 2011, at 11:34, seven seven wrote:
> On my side the problem is that I don't receive any error. I am getting an
> empty admi
Bump please ! I can't believe nobody found this bug and it's really
annoying :(
On 24 mar, 11:09, Growiel wrote:
> Hi.
>
> In every symfony 1.4 form I have, I have a problem when I use
> sfWidgetFormDoctrineChoice.
>
> If i enable the "add_empty" option, I do have an empty choice at the
> top of
Hi,
I only wants to modify tthe orm .xml generated from Doctrine to make
one-to-one relation ship, between to tables, i read that tuto but i
can't resolve at all how it works.
http://www.doctrine-project.org/docs/orm/2.0/en/tutorials/working-with-indexed-associations.html
Any help
Thanks
--
If
On my side the problem is that I don't receive any error. I am getting an
empty admin page when accessing /admin/dashboard. I have this defined in my
config.yml file:
services:
tock.tockflatpages.admin.grouppageengine:
class: Tock\TockFlatPagesBundle\Admin\GroupPageEngineAdmin
My problem is not caused by the authentication but it is caused by
redirection.
In the log you can see the sql queries , the first query has a
parameter null and the second one is the username that I passed. I
don`t understand because the first paramenter is null.
And then when the user is authen
Yep it’s exactly what I am saying in my email and as I don’t get what I want
from other people, then, I have decided to learn php5 and symfony
myself…Cause I am really fed up with people who just want to take my
money….and for the community, you will get one girl more! :-) (I have
already started t
Sometimes redeveloping from scratch is a good idea, we have done it a few
times. However when selecting which language or framework to use you need to
bear in mind things like available skills (i.e. people around that can code
in that language or framework). RoR, unfortunately, does not have as big
Hi Justen,
Thanks for your response. Actually, I don’t really have the choice.
Three years ago, I really got interested into Ruby On Rails because as an
Web entrepreneur, I tend to select the more effective and innovative tools
for my company. The problem is that if you don’t program a web
Thanks for the clarification.
Regards,
David
On Apr 9, 4:51 pm, Christophe COEVOET wrote:
> Le 09/04/2011 00:42, dukeofgaming a crit :> Hi,
>
> > I've seenhttp://symfony2bundles.org/, but apparently there is no way
> > to register there. I also saw that the website itself is an open
> > source
I used Netbeans for a lot of other PHP projects already, and I have to say
that I'm a bit worried about the missing autocompletion for *a lot of* stuff
of Symfony2.
That's mostly because of the dependency injection container as far as i see:
when you write
$this->get('doctrine.orm.entitymanage
Sorry guys for the missleading terminology here, I wrote Entity but
really meant Model.
After a while of digging I ended up with a bunch of servie classes
(like ericclemmons said), a few custom validation constraints and a
custom repository.
Thanks guys for helping me out!
On Apr 5, 5:48 pm, eric
Hi, at last founded find by token().
Thanks
On 10 abr, 21:52, kassel wrote:
> Hi
> How i get the user data storaged into session, i've sow all user is in
> session but how can get id for example??
> i've saw i can get it by :
> $session->get("_security_main")
> but it's serialized
> thanks
--
44 matches
Mail list logo