Hi All,
I want to implement 'ownership' of various models so that logged in
users only see the stuff they created.
Does anyone know of a plugin? I was amazed I couldn't find one.
It must be such a common requirement for users to only see their own
stuff and not that belonging to others. Have I m
Hi,
I want to do a demo of our site and to reset the database every 30
minutes.
Would it be better to run the demo using a different database
connection and a separate database or can anyone think of a way to do
it within the same DB as the rest of the site.
I am guessing separate but does anyon
Hi,
Is ther any way to stop mergeRelation embedding in the right hand td
of the form table?
I want it to just continue the existing table and, ideally, write a
title for the relation and then embed in subsequent trs just as other
widgets wouold if it wasn't a relation.
Anyone guide the ignorant?
Hi,
We've got an app where if someone attempts too access a secure url and
is not logged in they see the login and then are redirected via
referrer back ot the orignially requested url.
BUT ...
if they just click the login button we want them to be redirected to a
default secure area index page n
Hi,
Apologies to apostrophe group members for cross posting.
We have started using symfony1.4 and propel1.5 to develop our
applications and definitely no regrets but now we have have 2 choices
- port our own CMS (which is already propel and MVC but not symfony
driven) across into symfony OR take
el and never looked back.
>
> > If you're looking for help with your CMS, I'd be curious how it's
> > structured.
>
> > Have a great day,
> > Daniel
>
> > On Jul 28, 2:23 am, Tofuwarrior wrote:
>
> > > hi All,
>
> > > Is it
Hi All,
I want to implement an object, useragent, permission based access
control system but I was wondering where is the best place to do the
check for access.
Obviously I need to get the id of the object from the url and I also
need the current user id and whatever permission is being tested.
Hi All,
Propel nested set behaviour is brilliant BUT does anyone know how to
create a fixtures file for it?
I can't manually calculate the left right values for anything more
than a few children so it renders this frustratingly impaired.
Have seen a solution where you also add an adjacency list p
hi All,
Is it feasible to use smarty & symfony's standard templating system.
We have a CMs system we want to port across into symfony (and
hopefully get some help to make a plugin but that's another story) but
it's a big job and the templates are in smarty.
If we ported the frontend stuff into s
unk/doc/form.txt
On Jul 20, 1:00 pm, Tofuwarrior wrote:
> Thanks for these answers but this doesn't seem to work for changing
> the NEwPropelUglyName link.
>
> It is obviously something to do with embedRelation but I can't see
> what.
> It works fine with normal form elements
Thanks for these answers but this doesn't seem to work for changing
the NEwPropelUglyName link.
It is obviously something to do with embedRelation but I can't see
what.
It works fine with normal form elements but this is not the name of an
element as much as the name of a form?
Any help really g
Hi All,
we are looking to port our cms across to symfony which is a BIG job of
course. It's MVC and uses propel so that side of things isn't too bad
BUT all of our templates are in smarty.
Does anyone have any idea if there is any kind of smarty->php
conversion anywhere that could help us with th
Hi Everyone,
Does anyone know how to change the number of pages displayed in the
list at the bottom when using the pager?
Currently it shows the buttons and then 5 pages but I have 60odd pages
so it is very cumbersome.
I've searched everywhere and can't find out how to change it so it
displays mo
rk when you have
> commit rights to the project of the externals definition which is not the
> case with sfGuardPlugin. :)
>
> Cheers, Daniel
>
> Sent from my iPad
>
> On Jun 17, 2010, at 12:11 PM, Ben Bieker wrote:
>
> > On Thu, 17 Jun 2010 03:03:28 -0700 (PD
Hi Everyone,
I installed sfGuardPlugin using svn externals and have since added a
few methods to sfGuardUser.php.
Every time I export the svn repo to deploy, those additional methods
disappear.
I'm new to externals and it looks like svn export is grabbing the
files from the externals definition r
I have successfully use embedRelation to embed a relation in my form
BUT the new link at the bottom has a label next to it that says
NewUglyLongPropelObjectName .
How can I change this, I haven't set any new link anywhere so I'm not
sure how to change this.
Is it a widget set somewhere.
Anyone?
fter the submit executeCreate and executeUpdate is processed.
> This might be a pointer.
>
> On 25 kvě, 15:27,Tofuwarrior wrote:
>
> > HI Tom,
>
> > Thanks for sticking with me on this, much appreciated.
> > I think I may have tried that before because when I do, 2
Hi,
I have used embed relation to embed (a relation! amazing)
And it is great, so quick to be able to add new stuff BUT
It renders with the propel class name as the label for the whole
embedded form which looks very clunky and I can't work out how I can
change this or in fact how I can change th
If in some circumstances you find you need to pass an id but don't
want people 'browsing' by changing id.
You can create a hash of the file id and some 'secret' string ( i
often use the current logged in user so it varies) if the hashed id
matches the submitted hash then you know that they haven't
HI Tom,
Thanks for sticking with me on this, much appreciated.
I think I may have tried that before because when I do, 2 familar
things happen.
1 Saem problem with the id being 1.
2 is that when I try to view the edit action I get the following form
rendering error which dissappears when I commen
Hi,
UPDATE
The same problem happens with edit/update not just new/create.
Both objects save but FK becomes 1 whatever it was before.
P
Anyone?
On May 24, 1:47 pm, Tofuwarrior wrote:
> Hi Tom,
>
> Thanks for replying. My problem has moved on.
>
> I can render the forms fi
(null === $con)
{
$con = $this->getConnection();
}
$this->updateObject();
$this->getObject()->save($con);
// embedded forms
$this->saveEmbeddedForms($con);
}
Any ideas? I'm stumped.
On May 21, 3:26 pm, Tofuwarrior wrote:
Hi All,
Twice now I have had problems because build-all builds an odd class
like so
cmsModelName
CmsModelName
from table cms_model_name in my schema.yml.
This stopped propel:generate-module working because it looks for the
wrong classname and throws an exception.
You can fix it by
putting a php
UPDATE: I've found that the problem seems to be because I have mbedded
the form in the configure method. So it seems that contact_details_id
is getting overwritten after the configure call.
If I embed it after the form is created in the action then it works
fine.:
$this->form = new MscdbStory
s expecting an array as values. That leads me to
> believe it's colliding with another widget that will be rendered with
> the value of 1...
>
> Daniel
>
> On May 22, 4:06 am, Tofuwarrior wrote:
>
> > Hi All,
>
> > Anyone give me any pointers as to what might be the
Hi All,
Anyone give me any pointers as to what might be the problem here, I'm
new to embedded forms so am a bit stumped.
I've got a form I'm embedding in the configure function below.
When it gets used through the new action it works fine but when
editing an existing record then it throws this e
Hi,
Anyone give me any pointers? I'm stumped and not really sure where to
look. Would really appreciate any help anyone could give, deadline is
looming :-(
I have an embedded form that works fine for the 'new' action but
when it gets called in edit then it throws an error, I've included the
sta
ALSO: don't forget to logout and login when you change credentials on
a user as the credentials are set for the user on login
I came unstuck with that too.
And obviously clear the cache when you change the security.yml files
On May 8, 4:00 pm, Tofuwarrior wrote:
> For anyone els
For anyone else having similar problems who finds this thread.
If you are trying to secure individual modules I had no joy putting
them in app/config/security.yml
What worked was creating individual config/security.yml files for each
module with:
all:
is_secure: true
credentials: [foo,bar]
e
Does this mean it orders all fixtures files across all the fixtures
folders according to filename only not source folder. - meanign if you
use numbers you have complete control over this?
That would be very handy.
On Apr 27, 8:35 pm, Eno wrote:
> On Tue, 27 Apr 2010, saki wrote:
> > The order of
27;t work it out when you try to save it.
No error gets thrown.
Is this how it should work?
Seems a bit odd to me.
TW
On Apr 29, 6:58 pm, Tofuwarrior wrote:
> This is just a note to save someone a headache.
>
> I couldn't get the propel 1.5 nested sets insert and add functions to
&
:-)
It's tough work! that's why apparently my brain doesn't work anymore.
On Apr 30, 7:44 pm, Eno wrote:
> On Fri, 30 Apr 2010, Tofuwarrior wrote:
> > How embarrassing.
>
> > ->getObject();
>
> > erm.
>
> > shuffles off to read API agai
Hi,
I have an array of permitted mime_types along with extensions and
plain english filetype names. I need to use this in various actions
when files are uploaded and files output. Can anyone enlighten me as
to Where is the best place for me to put this and how would I access
it?
I am guessing it
How embarrassing.
->getObject();
erm.
shuffles off to read API again.
On Apr 30, 4:49 pm, Tofuwarrior wrote:
> Hi All,
>
> I'm using the propel nested set stuff in 1.5 which is great APART from
>
> When an object is saved with$folder=$form->save() if I then
Just read that back and it reads wrong. I'm looking for a way to get a
validated object back from the form without it being saved so I can
then do the nested set stuff and save.
Thanks,
Paul
On Apr 30, 4:49 pm, Tofuwarrior wrote:
> Hi All,
>
> I'm using the propel nested set
Hi All,
I'm using the propel nested set stuff in 1.5 which is great APART from
When an object is saved with$folder=$form->save() if I then try to
$parent->addChild($folder); or $folder->insertAsLAstChildOf($parent)
to place it in the tree
The tree data isn't saved with the object.
If I create a
This is just a note to save someone a headache.
I couldn't get the propel 1.5 nested sets insert and add functions to
work. They wouldn't throw an error but on save the left, right and
level fields would blank and null values would be in the db. adChild,
iinsertAsXChild etc etc none of these worke
Hi all,
I have Folder table that is related to CoreObject table via FK on id.
When I create a folder I need symfony to create a new CoreObject and
then save them.
I could do this manually but I'm guessing that propel /symfony must be
able to handle this.
I am still finding my way with symfony so
Ho Both,
Thanks for your thoughts on this.
If you can spare the time, I have one further question about this
I am currently returning the that the tree menu function needs
from the action which calls a fetchTree function which is currently in
the model. This was just for development purposes an
he other modules
> are to manage the users, the permissions, etc.
>
>
>
> On Fri, Apr 23, 2010 at 15:56, Tofuwarrior wrote:
> > Hi,
>
> > I've followed through the sfGuard installation and have used it fine
> > for the front end.
>
> > Now I have e
Hi,
If you can reset the auto increment id then you can do what i do which
is a bit of a hack but works.
Follow the instructions here:
http://osterman.com/wordpress/2007/09/28/symfony-propel-auto_increment-offset
and set the autoincrement to be 1.
(This only works when you do build-all-load. No
Hi Both,
thanks for advice both.
Still no joy - sigh :-(
I enabled sfguardAuth and rebuilt everything.
I created the admin user but still no joy.
Anyone got any other ideas? If I understood what was happening I might
be able to track it down but unfortunately I am not experienced enough
with sy
f id === true, I normally do a check for parameter
> existing anyways in my actions before I attempt to use it, so you can
> do this:
>
> if ($request->hasParameter('id') && $request->getParameter('id') !== true)
> {
>
> }
>
> Hope that hel
Hi,
I've followed through the sfGuard installation and have used it fine
for the front end.
Now I have enabled it in the backend and set
default:
is_secure: true
in the backend but it displays a page saying this page is not public
and saying I need to login in the login form This isn't display
Yes, that kicks ass!
On Apr 23, 8:43 am, Gareth McCumskey wrote:
> Or rather $request->getParameter('item');
>
> FYI, you don't need special routing settings for parameters in the
> URL. A URL like module/action/parameter1/value, I can get the value of
> parameter1 in my action by doing:
>
> $v
= 1;
> $b = 0;
>
> if ($a == true) echo "I am true"
> if ($b == false) echo "I am false"
>
> results in "I am true" and "I am false" both being echoed.
>
> However:
> if ($a === true) echo "I am true"
> if ($b === fals
Hi all,
I guess this is simple lack of understanding but it is a bit peculiar.
Any insights, answers pointers to further readng gratefully received.
I haven't found any answers in the docs anywhere.
In my app,
this
.com/folder/tree/id creates request variable id=boolean(true)
whereas this
awesome, thanks.
On Apr 23, 8:03 am, Tom Ptacnik wrote:
> You need some primary key ... so mark some column as primary and it
> woun't be autocreated.
>
> On 21 dub, 16:43, Tofuwarrior wrote:
>
>
>
> > Is it possible to stop symfony/propel autogenerating id c
Hi,
All new to symfony really so not sure if I'm the source of the error
but this seems like a bug to me..
Anyone confirm.
I'm using 1.4 and propel 1.5 via sfPropel15Plugin - (highly recommend
propel 1.5 by the way. Nested set stuff is great)
BUT
I've been trying to add a custom profile class t
Is it possible to stop symfony/propel autogenerating id columns in my
tables?
I have the following schema and don't want id columns on the files and
folder tables, they have object_id that is Fk to the objects table. I
want to then create a getid that returns the objectId but at the
moment symfony
e directly and it outputs the same format
blah blah as the bundled connector except
with the web debug attached to it but I presume that is because when i
access it directly xmlHttpRequest is false so symfony decorates it
with the debug stuff.
Anyone got any ideas of where to look?
Thanks,
gt; last_name: Intent # here you had several spaces more than it was needed
> email: m...@mail.com # here you had several spaces more than it was
> needed
>
>
>
> On Mon, Apr 19, 2010 at 5:50 PM, Tofuwarrior wrote:
> > Hi all,
>
> > Perhaps I'm bein
});
");
So will symfony still detect the xmlhttprequest status in the same
way.
2) When I call this url from the function firebug still shows JQuery
reporting receiving a 404 from the same url above that was accessed
fine directly - ?!?!? Erm.
You guys/gals got a
Hi all,
Perhaps I'm being dumb but shouldn't it be possible to do this?
sfGuardUser:
sfGuardUser_1:
username: clearintent
password: Muaddib
is_super_admin: true
sfGuardUserProfile:
first_name: Clear
last_name: Intent
email: m...@mail.com
in
turn word in fron
> and no Success.php at the end of the template name
>
> You can also instruct an action to load a partial instead for those
> AJAX responses where you need content rendered:
>
> return $this->renderPartial('partialname', array('variable1
Hi,
If anyone can help me I would be very grateful, I'm over my head but I
think it is probably a simple thing i'm missing. I've got this far
using the jobeet tutorial and various jQuery and symfony resources but
I'm stuck.
I'm trying to get an ajax jQuery treeMenu to work in symfony and I
think
7;t coded).
> If you do so, I would really enjoy seeing the code ;-)
>
> Cheers,
>
> Before Printing, Think about Your Environmental Responsibility!
> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>
> On Mon, Feb 15, 2010 at 5:32 PM, Tofuwarrior wr
Hi all,
I am pretty new to symfony and would be grateful for anyones advice.
I'm trying to work out how to implement an object ownership
permissions system.
sfGuard seems to do everything except allow me to assign permissions
per object.
ie: joe bloggs can edit documents, 1,2 & 4 but (by inferer
58 matches
Mail list logo