Hello all,
My layout features a main menu of options, each option being a link.
Currently, a user clinks on a link and then permission logic determines if
the user gets the page, or a security warning.
I'd like to disable those links for which a user should not even bother
clicking, essentially,
One idea might be to make use of isNew to differentiate between an INSERT
and and UPDATE in your logic.
I've not tried this, so it's just an idea. If it doesn't work, write a
custom validator and pass an option in to
control the validation logic.
best of luck
- Michael
[form.php]
if
-hasPermission()
method. Take a look at them.
2010/9/25, Michael Hodges mhodg...@gmail.com:
Hello all,
My layout features a main menu of options, each option being a link.
Currently, a user clinks on a link and then permission logic determines
if
the user gets the page, or a security warning
);
}
}
return $fees;
}
On Thu, Sep 16, 2010 at 7:33 PM, Michael Hodges mhodg...@gmail.com wrote:
Hello all,
I'm not having a luck looking this up, or with the description in the
documentation.
Hoping you can help.
I have a function that creates
Hello all,
I'm not having a luck looking this up, or with the description in the
documentation.
Hoping you can help.
I have a function that creates a doctrine_collection. For reasons not
explained here
it is not feasible to limit the collection utilizing only DQL, so I thought
to loop through
I'm also new to SF and struggled with this.
My solution was a combination of javascript and php code. Hopefully the
example code fragments are helpful for you.
Basically, my javascript updates the readonly field rather than the user.
- Michael
[_form.php]
echo
[Resolved]
Rereading the documentation more carefully, my [yml] was in error and needed
the following correction:
type: Boolean with a capital B.
Thanks for the feedback.
- Michael
On Sun, Sep 5, 2010 at 6:54 PM, Michael Hodges mhodg...@gmail.com wrote:
Hello all,
I found
to
that of the Doctrine equivalents.
I'll post here once I've identified the root problem.
Thanks again for your help. I've learned quite a bit as a result.
- Michael
On Sat, Sep 4, 2010 at 12:23 PM, Michael Hodges mhodg...@gmail.com wrote:
Reduced the plugins to the following, cleared cache, cleared
Hello all,
I found an older thread on this topic, but no suggestion for a solution.
I've introduced a custom boolean field for display only.
[yml]
list:
fields:
is_released: { label: Released, type: boolean }
My function getIsReleased() returns boolean true or false.
What gets
right now and will get back to you
with my findings. :)
Daniel
On 03.09.2010, at 09:07, Michael Hodges wrote:
Thanks Daniel for the suggestions. I worked my way down the list.
The results are the same regardless of the yml section.
If I understand frontend vs backend, since I'm using only
? It could be that your module is named something else
I hope you'll spot it in there.
Cheers, Daniel
On 03.09.2010, at 09:07, Michael Hodges wrote:
Thanks Daniel for the suggestions. I worked my way down the list.
The results are the same regardless of the yml section.
If I understand
? It could be that your module is named something else
I hope you'll spot it in there.
Cheers, Daniel
On 03.09.2010, at 09:07, Michael Hodges wrote:
Thanks Daniel for the suggestions. I worked my way down the list.
The results are the same regardless of the yml section.
If I understand
, 2010, at 8:21 AM, Michael Hodges mhodg...@gmail.com wrote:
http://pastebin.com/tRhm2jaWhttp://pastebin.com/tRhm2jaW
I'm new to looking at these, but the title is correctly inserted it seems
to me. I'll experiment with the other objects to see if I can figure out
what's different about
of the plugin I can disable the
Customizable Titles functionality
so that I have more time to trouble shoot this?
Thanks,
- Michael
On Sat, Sep 4, 2010 at 8:11 AM, Michael Hodges mhodg...@gmail.com wrote:
No title displays. When I view the browser source I have the following:
div id
Hello all,
I installed the plugin ahAdminGenerataorThemesPlugin for the multicolumn
sort feature, which works beautifully. As a side-effect, the Customizable
Titles feature is a problem for me. Searching the web, it doesn't seem to
be a problem for others, so I must be overlooking something
and this feature does work (especially when combined with
the tsTitlePlugin plugin).
Cheers and thanks for using my plugin! :)
Daniel
Sent from my iPad
On Sep 3, 2010, at 8:31 AM, Michael Hodges mhodg...@gmail.com wrote:
Hello all,
I installed the plugin ahAdminGenerataorThemesPlugin
Hello all,
Currently I manually set the autoincrement value for fields in MySQL before
loading fixtures
using SQL syntax such as ALTER TABLE `Student` AUTO_INCREMENT =1
Is there a way to specify the initial value for autoincremented fields in
the schema yaml file
so that I don't have to
sfContext::getInstance()-getUser() might work too
On Tue, Jun 29, 2010 at 4:26 PM, Ricardo Jose Guzman Milanes
guzman.ricardoj...@gmail.com wrote:
Hello Rodrigo
Two weeks ago I was trying to find a way to display info only related to
the logged user.
I used this in my action.php
}
. . .
relations:
TransactionReceipt:
local: receipt_id
foreign: receipt_id
foreignAlias: Purchases
foreignType: many
. . .
On Sat, Jun 12, 2010 at 8:23 PM, Michael Hodges mhodg...@gmail.com wrote:
Hello all,
I have a problem with Foreign keys are not getting
I'm having exactly this problem too and have not resolved it yet. Using
xdebug I note that the SQL statement doing the actual INSERT of the detail
record does not include the foreign key. I plan on making the foreign key a
hidden field on the form which will hopefully make it available in the
[mailto:
symfony-us...@googlegroups.com] *Im Auftrag von *Michael Hodges
*Gesendet:* Montag, 14. Juni 2010 19:56
*An:* symfony-users@googlegroups.com
*Betreff:* Re: [symfony-users] Functional tests for Form validators?
The Pragmatic Programmer: From Journeyman to Master by Andrew Hunt
someone has experience
trouble-shooting this type of problem.
Thanks,
- Michael
On Sat, Jun 12, 2010 at 8:23 PM, Michael Hodges mhodg...@gmail.com wrote:
Hello all,
I have a problem with Foreign keys are not getting populated when saving
details records. The relationships (a pair of 1-n's
*The Pragmatic Programmer: From Journeyman to Master *by Andrew Hunt and
David Thomas labels their chapter on this topic Ruthless Testing which
suggests one answer to your question. It's an excellent book.
- Michael
On Mon, Jun 14, 2010 at 4:12 AM, Christopher Schnell ty...@mda.ch wrote:
Hi
Hello all,
I have a problem with Foreign keys are not getting populated when saving
details records. The relationships (a pair of 1-n's) look correct, but does
anyone see something I'm overlooking? Thanks for any advice. My
environment is Symfony 1.4.4 with Doctrine running under XAMPP on
Hold the phone, my custom validator was not returning $values. suddenly it
is all very clear. Thanks everyone who spend any time looking at this
thread.
On Wed, Jun 2, 2010 at 7:46 PM, Michael Hodges mhodg...@gmail.com wrote:
Can someone help me understand how the sfFormDoctrine handles
case since all forms and subforms have to be validated before anything
is saved. If it is the first case, I've not figured out what the array of
cleaned values is called and where best for me to put debug statements.
On Mon, May 31, 2010 at 4:50 PM, Michael Hodges mhodg...@gmail.com wrote
forms save is not actually fired on containing form save. So if you
have many many relation or another embedded form inside an embedded
form, they wont be persisted.
On May 31, 1:28 pm, Michael Hodges mhodg...@gmail.com wrote:
Hello Symfony fans,
I'm hoping someone can point
Hello Symfony fans,
I'm hoping someone can point to the error in my ways. I am working with
embedded forms and the problem is that the master record is saved to the
database, but not the user date for the detail records. I have followed the
'more with symphony 1.4 en' example very carefully and
Hello all, I'm hoping someone can point out my mistake. For Symfony 1.4.4
with Doctrine I have a form
to which I've added
$this-mergePostValidator(new TransactionReceiptValidatorSchema());
in the configure() function of the form
class TransactionReceiptForm extends
Hello all,
I would like to suppress the option to add a new record for one of my
modules. This doesn't seem to be possible using the module's generator.yml,
like is possible for suppressing the option to filter the list.
As an alternative, if I could somehow redirect url 'transaction/new' to
, Michael Hodges wrote:
Hello all,
I would like to suppress the option to add a new record for one of my
modules. This doesn't seem to be possible using the module's generator.yml,
like is possible for suppressing the option to filter the list.
As an alternative, if I could somehow redirect url
://trac.symfony-project.org/browser/branches/1.4/lib/form/sfForm.class.php#L727
On Mon, Apr 12, 2010 at 00:52, michael hodges mhodg...@gmail.com wrote:
Hello all,
Not sure how something so fundamental to Symfony is not working for
me, but for my backend module I have in my templates directory
Hello all,
Not sure how something so fundamental to Symfony is not working for
me, but for my backend module I have in my templates directory a
_form.php file and a _form.js file. The php file is functioning in
that my form and subforms etc render properly, but the javascript
functions in the js
Hello all,
Another newbie question. I've spent several days hunting for a way to
determine if a user has been authenticated or not from within
layout.php
Reading the API (symfony 1.4) I thought one of the three boolean
functions below would let me know if a user object is instantiated or
not,
/
sfDoctrineGuardPlugin/lib/user/sfGuardSecurityUser.class.php on line
230
On Mar 25, 2:58 pm, Tom Haskins-Vaughan t...@templestreetmedia.com
wrote:
I'm pretty sure a user instance is created regardless of whether
you're logged in or not, or even whether or not you're using sfGuard.
On 3/25/10, michael hodges
that works perfectly!!! Many thanks.
I was looking for something like $sf_user, but I'm still figuring out
how to discover what is in the current context.
- Michael
On Mar 25, 3:06 pm, Michał Piotrowski mkkp...@gmail.com wrote:
Hi,
2010/3/26 michael hodges mhodg...@gmail.com:
Hello all
Hello Daniel,
Don't be hard on yourself. It's only us newbies that probably are stumbling
on this. You've given me a hint as to what to look for in reworking your
plugin. I'll see if I can adapt it to my purposes--a bit of a longshot, but
I'll share my results if successful.
Best of luck with
anything else that's not working or if you
have any more questions.
Regards, Daniel
On 20.02.2010, at 05:36, Michael Hodges wrote:
Hello all,
I'm working on my first app and the embedded relations plugin looks
perfect for my needs.
Upon installation I generated a bushel of errors
!
Regards, Daniel
On 20.02.2010, at 18:05, Michael Hodges wrote:
Thanks Daniel for the quick reply and the reassurance. You've accurately
surmised my situation.
I'm proceeding with implementation of the plugin in my project. Your
instructions are very clear and yet the relation/Parser.php
files.
Must be something pecular to my platform since this problem doesn't
seem to have driven anyone
else nuts.
My platform is OSX 10.6.2, firefox 3.5.7, symfony 1.4.1
Hope this info saves someone else a few hours effort.
- Michael
On Feb 6, 8:04 pm, michael hodges mhodg...@gmail.com wrote
weirder.
- Michael
On Feb 5, 7:08 pm, michael hodges mhodg...@gmail.com wrote:
# In which file did you find the sort_order
database_interface.lib.php
# Did you clear the cache
First I cleared the cache, but that didn't work
Second I renamed the app directory and recreated it from scratch
just
experimenting with what I'm learning from the jobeet tutorial.
- Michael
On Feb 5, 10:15 pm, michael hodges mhodg...@gmail.com wrote:
Problem resolved by creating a whole new project directory and
starting over.
I was able to copy all generator.yml files, partials, etc without
making
.
- Michael
On Feb 5, 12:40 am, Tom Ptacnik to...@tomor.cz wrote:
Did you cleared the cache folder?
In which file ddid you find the sort_order (as you said you have
found it in internal symfony files...)
On 4 ún, 09:29, michael hodges mhodg...@gmail.com wrote:
Hello all,
I'm new to Symfony
Hello all,
I'm new to Symfony. While I've been able to figure things out as I go
along, this one is very strange. I had a column named 'sort_order'
and used if in the generator.yml to request a sort in the list.
Subsequently I removed it from the schema and regenerated everything,
including the
44 matches
Mail list logo