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
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
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
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
,
Daniel
On Jul 28, 2:23 am, Tofuwarrior p...@clearintent.co.uk wrote:
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
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
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
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.
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
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
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
in! This will only work 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 m...@ben-bieker.de wrote:
On Thu, 17 Jun 2010 03:03:28 -0700 (PDT), Tofuwarrior
p
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
Hi Tom,
I have eventually sorted the problem by simply adding the fields to
the table, thus removing the need for embedded field, the abstraction
of the contact details wasn't actually necessary when I reviewed it
BUT
I think the issue was to do with where the FK was.
With sfGuardUSerProfile the
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.
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
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
();
$this-getObject()-save($con);
// embedded forms
$this-saveEmbeddedForms($con);
}
Any ideas? I'm stumped.
On May 21, 3:26 pm, Tofuwarrior p...@clearintent.co.uk wrote:
Hi,
Anyone give me any pointers? I'm stumped and not really sure where to
look. Would really
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 p...@clearintent.co.uk wrote:
Hi Tom,
Thanks for replying. My problem has moved on.
I can render the forms
colliding with another widget that will be rendered with
the value of 1...
Daniel
On May 22, 4:06 am, Tofuwarrior p...@clearintent.co.uk wrote:
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
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
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
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
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
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]
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 p...@clearintent.co.uk wrote
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's tough work! that's why apparently my brain doesn't work anymore.
On Apr 30, 7:44 pm, Eno symb...@gmail.com wrote:
On Fri, 30 Apr 2010, Tofuwarrior wrote:
How embarrassing.
-getObject();
erm.
shuffles off to read API again.
Stop fighting that tofu
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 p...@clearintent.co.uk 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
work. They wouldn't throw
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 symb...@gmail.com wrote:
On Tue, 27 Apr 2010, saki wrote:
How embarrassing.
-getObject();
erm.
shuffles off to read API again.
On Apr 30, 4:49 pm, Tofuwarrior p...@clearintent.co.uk 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 try
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
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 helps
On Fri, Apr 23, 2010 at 12:58 PM, Tofuwarrior p...@clearintent.co.uk wrote:
Hi gareth,
Thanks for replying (again!)
I
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
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.
. The other modules
are to manage the users, the permissions, etc.
On Fri, Apr 23, 2010 at 15:56, Tofuwarrior p...@clearintent.co.uk wrote:
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
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 ul 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
awesome, thanks.
On Apr 23, 8:03 am, Tom Ptacnik to...@tomor.cz wrote:
You need some primary key ... so mark some column as primary and it
woun't be autocreated.
On 21 dub, 16:43, Tofuwarrior p...@clearintent.co.uk wrote:
Is it possible to stop symfony/propel autogenerating id columns
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
:
$a = 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 === false) echo I am false
does not
On Fri, Apr 23, 2010 at 11:15 AM, Tofuwarrior p
Yes, that kicks ass!
On Apr 23, 8:43 am, Gareth McCumskey gmccums...@gmail.com 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
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
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
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
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
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'=$variable1));
On Mon, Apr 19, 2010 at 2:43 PM, Tofuwarrior psbur
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 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 any ideas on how I couold proceed?
Cheers,
Paul
On 19 Apr, 15:46, Tofuwarrior psbur
: 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 psbur...@googlemail.com wrote:
Hi all,
Perhaps I'm being dumb but shouldn't it be possible to do
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,
TW
On 19 Apr, 15:46, Tofuwarrior psbur...@googlemail.com wrote:
Thanks all, I knew
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 psbur...@googlemail.comwrote:
Hi all,
I am pretty new to symfony
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
52 matches
Mail list logo