could be taking the filter logic out of Cake (no always the
fastest!) and shifting it to the DB back end. Not quite a stored procedure
but maybe same effect.
Thanks again!
Jim
On Saturday, July 21, 2012 7:03:04 AM UTC-7, Ratty wrote:
On 20/07/12 17:44, geste wrote:
I have a business system
I have a business system with a table called People and where we retain
records of a Person even when they leave our organization. Each record has
an active attribute that indicated if somebody is active (Duh!).
However, I find myself writing a lot of snippets in controllers that
essentially
:
echo $this-ipaddr;
On Jan 2, 7:12 pm, geste jim.ho...@gmail.com wrote:
Gary, euromark,
OK, yes I was able use Configure::write in boostrap.php.
If I can just use the CakePHP database connector, I think I'll just
write a small snippet that looks up that secondary identifier and add
=$_SERVER['REMOTE_ADDR'];
and access in any controller function like:
echo $this-ipaddr;
On Jan 2, 7:12 pm, geste jim.ho...@gmail.com wrote:
Gary, euromark,
OK, yes I was able use Configure::write in boostrap.php.
If I can just use the CakePHP database connector, I think I'll just
All,
I am looking for the easiest, most global way to set a couple of app-
wide constants, more or less, that would derive from Apache variables,
specifically $_SERVER['REMOTE_USER'] and $_SERVER['REMOTE_ADDR'] and
that would be used throughout the app both in models and controllers.
A
it the Cake way and so was trying to use existing model/
controller structure.
J
On 2 Jan., 22:48, geste jim.ho...@gmail.com wrote:
All,
I am looking for the easiest, most global way to set a couple of app-
wide constants, more or less, that would derive from Apache variables
more appropriate. Alternatively, I often log the user's IP
address to the DB upon login.
Gary
On Mon, Jan 2, 2012 at 3:48 PM, geste jim.ho...@gmail.com wrote:
All,
I am looking for the easiest, most global way to set a couple of app-
wide constants, more or less, that would derive
Note to self: Don't post long, meandering questions late on a Friday
afternoon :)
Jim
On Jul 23, 3:15 pm, geste jim.ho...@gmail.com wrote:
A few days ago I asked how to best create a read-only interface from
our Drupal intranet instance to our CakePHP business app (on the same
host
I am trying to gather some common functions in a component I am
calling Lookup. This will house basic functions like
LookupUserLastFirst (to produce lists of users sorted by last name
and first name).
Part of my purpose in doing this is to make some of these functions
available on a read-only
...
and call controller-render
On Jul 27, 6:33 pm, geste jim.ho...@gmail.com wrote:
I am trying to gather some common functions in a component I am
calling Lookup. This will house basic functions like
LookupUserLastFirst (to produce lists of users sorted by last name
and first name
A few days ago I asked how to best create a read-only interface from
our Drupal intranet instance to our CakePHP business app (on the same
host). Galymzhan was nice enough to steer me to the CakePHP REST
interface and that is the path I am following.
I foresee a *lot* of simple functions that
provided by your cake application. Anyway, it's just an idea. If you
solve your problem, share your solution, I think it would be
interesting.
On 20 июл, 05:01, geste jim.ho...@gmail.com wrote:
All,
For an intranet application we run Drupal 6 but we also have a CakePHP
application for back
All,
For an intranet application we run Drupal 6 but we also have a CakePHP
application for back-office stuff. A simple example is employee
directory. The CakePHP application is read-write with group-based
access control.
We'd like some of the CakePHP information to show up in Drupal on a
Hi,
On Aug 27, 10:27 pm, Braindead markus.he...@gmail.com wrote:
In my opinion using a model for breadcrumbs is bloated. Why don't you
just set the breadcrumbs in the view manually? The HTML helper has two
functions addCrumb and getCrumbs, which makes basic breadcrumbs really
simple.
Well,
I have modeled a business system for my department and it includes
about 60 tables/models, perhaps 20 of which as simply lookup/reference
tables that I would only make available through admin routing.
Out of the box, CakePHP organization is pretty flat -- views and
controllers all lying under
Brian,
Many thanks. I got over a bit of a hump on this on Friday with your
help. I do of course have another n00b follow up question :)
I am using the authake plug-in for group-based authorization (this
nice plug-in has been taken over by Marco Sbragi and is on CakeForge:
Background: i am trying to build a little database-driven 2-level
menu system that checks authorization to access menu pages and actions
*before* they are displayed. If you are not authorized to use the
budgets table in any way, you won't be presented with a budgets
menus option (I am using
Sometimes I hit myself with a small, embarrassing clue stick
immediately after posting.
I thought I had tried using $this-viewVars['whatever' ] in my find
conditions and that it just didn't work.
But I just tried that little test of:
$this-set('menu_link', /budgets );
Hello!
I have a table where the primary key, id is not autoincremented, but
is in fact a 6-digit real value. I want to give people the ability
to search and filter by ID and a few other fields like budget_name.
I have implemented a filter component that I found (here:
$form-input('Budget.id',array('type' = 'text'));
Have you tried something like that?
geste wrote:
Hello!
I have a table where the primary key, id is not autoincremented, but
is in fact a 6-digit real value. I want to give people the ability
to search and filter by ID and a few other
at 7:35 PM, geste jim.ho...@gmail.com wrote:
Brian,
Personally, I'll take your response to mean I'm not out of my
mind.
I'm not sure what you mean but I don't think either of us are out of
their mind. :-)
Yes, time to leave scaffolding behind, but there were some helpful
Dieter,
Thanks very much for the links. That looks like what I want to do.
Starting to experiment right now with the simple examples from the
first article.
Jim
On Apr 29, 9:08 am, Dieter_be dieterplaeti...@gmail.com wrote:
Geste, the solution to your problem is customizing the bake
I started a project with a bunch of preliminary scaffolded views and
those were find for helping us through data structures and
relationships. They also all included some nice defaults -- would
show name by default for a foreign key id in index and view
views. But it was clear I had to move on
On Apr 28, 4:00 pm, brian bally.z...@gmail.com wrote:
On Tue, Apr 28, 2009 at 6:41 PM, geste jim.ho...@gmail.com wrote:
I started a project with a bunch of preliminary scaffolded views and
those were find for helping us through data structures and
relationships. They also all included
Justin,
On Mar 31, 9:56 am, Stinkbug justink...@gmail.com wrote:
I ran into the same problem. I've been told this is a PHP problem,
not really a Cake problem. The way we ended up handling it is by
creating a stored procedure and calling that procedure within our
model. Basically, what the
Just to answer myself
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
Ooops, hit enter too quick...
I used the first example in that trac request:
https://trac.cakephp.org/ticket/5702#comment:5
And it did what I hoped. My scaffolded views now give nice, big,
empty dates for NULL dates in the scaffolded add and edit views.
Edwin,
I have a similar interest. I have started a new application with 40+
tables and I am trying to get as much mileage as possible from baked
models, views and controllers.
In several tables I have DATE fields that allow NULL dates. For
example, in the equipment_items table, the
Hello!
On Jul 1, 10:02 am, b logica [EMAIL PROTECTED] wrote:
On Tue, Jul 1, 2008 at 11:59 AM, geste [EMAIL PROTECTED] wrote:
For several new CakePHP applications (I'll call them app1, app2,
app3), I will need to implement a number of drop-down menus. These
would be things like building
Well, to answer my own question, I plodded through Authake and managed
to tweak it so that it does not use local Authake password but uses
PubCookie-provided REMOTE_USER authentication with Authake providing
just authorization (groups and rules).
I appended a few more details to the Authake
For several new CakePHP applications (I'll call them app1, app2,
app3), I will need to implement a number of drop-down menus. These
would be things like building codes that are already stored in a
separate database (I'll call that the lookup database).
So, what I would like to do is have app1,
31 matches
Mail list logo