Wouldn't you just keep a history of everything that goes through
Shell::in() and then iterate through the history when
ShellDispatcher::getInput() returned an arrow? Okay so maybe not super
easy. Actually I wonder if it's even possible since the shell already
captures those
Wednesday, February 29, 2012 7:33:58 PM UTC-8, Simon Males wrote:
>>
>> Hello,
>>
>> Are there any hacks out there to support command history in CakePHP
>> console?
>>
>> Closest thing I could find is this: https://github.com/sizuhiko/Taste
>> using
rote:
>
> Hello,
>
> Are there any hacks out there to support command history in CakePHP
> console?
>
> Closest thing I could find is this: https://github.com/sizuhiko/Taste
> using Facebook's phpsh.
>
> Though it's not supported by 2.0
>
> --
> Simon
Hello,
Are there any hacks out there to support command history in CakePHP console?
Closest thing I could find is this: https://github.com/sizuhiko/Taste
using Facebook's phpsh.
Though it's not supported by 2.0
--
Simon Males
--
Our newest site for the community: CakePHP Video
When I put the $actAs within my user model for example I get the
following error:
Undefined property: UsersController::$activeUser [APP/
app_controller.php, line 20]
Thanks
On Oct 5, 8:20 am, elogic wrote:
> Thanks, so where do I add the $activeUser part?
>
> On Oct 5, 2:06 am, majna w
Thanks, so where do I add the $activeUser part?
On Oct 5, 2:06 am, majna wrote:
> Add $actsAs to AppModel
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP r
Add $actsAs to AppModel
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscr...
-
> > From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
>
> > Of elogic
> > Sent: Monday, October 03, 2011 5:07 PM
> > To: CakePHP
> > Subject: Re: history log table
>
> > Thanks for the reply.
>
> > Are you able to ex
oups.com [mailto:cake-php@googlegroups.com] On Behalf
>
> Of elogic
> Sent: Monday, October 03, 2011 5:07 PM
> To: CakePHP
> Subject: Re: history log table
>
> Thanks for the reply.
>
> Are you able to explain further or direct me to something online that
> could help m
Have a look at this:
http://bakery.cakephp.org/articles/alkemann/2008/10/21/logablebehavior
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of elogic
Sent: Monday, October 03, 2011 5:07 PM
To: CakePHP
Subject: Re: history log table
Thanks
Thanks for the reply.
Are you able to explain further or direct me to something online that
could help me out in getting this sorted? I'm just starting with
cakephp.
Thankyou
On Oct 3, 7:59 pm, euromark wrote:
> you could write a method in the model or even a behavior which will do
> that for
you could write a method in the model or even a behavior which will do
that for you
in the beforeSave() callback it can be triggered globally
On 3 Okt., 06:38, elogic wrote:
> My client wants a listing of all actions that happen within the system
> so they can check back and search the records a
My client wants a listing of all actions that happen within the system
so they can check back and search the records at a later date.
I thought the best way to handle this would be to have a histories
table which would be similar to below:
CREATE TABLE `histories` (
`id` INT(11) NULL AUTO
Hi,
I've been searching for a simple solution to this for a few days, but
no joy. Any help appreciated.
I have two database tables. A job and a job state. The job state is an
historic table, where the most recently created row (with id) is
linked to the job. The association in cake looks like thi
gt; Please excuse the long post... I tried to give a concise question, but
> > also I felt the need to give an example and explain...
>
> > I need to store a history of database changes (i.e. copies of all of
> > the fields [with their same ids] grouped by a publish date),
ntrol-made-easy
On May 18, 12:16 pm, shantamg wrote:
> Hi,
>
> Please excuse the long post... I tried to give a concise question, but
> also I felt the need to give an example and explain...
>
> I need to store a history of database changes (i.e. copies of all of
> the fields [wi
Don't start a new thread - look in the old one!
John
On May 18, 9:24 pm, paws_galuten wrote:
> Hi,
>
> Please excuse the long post... I tried to give a concise question, but
> also I felt the need to give an example and explain...
>
> I need to store a history of databa
wrote:
> Hi,
>
> Please excuse the long post... I tried to give a concise question, but
> also I felt the need to give an example and explain...
>
> I need to store a history of database changes (i.e. copies of all of
> the fields [with their same ids] grouped by a publish da
Hi,
Please excuse the long post... I tried to give a concise question, but
also I felt the need to give an example and explain...
I need to store a history of database changes (i.e. copies of all of
the fields [with their same ids] grouped by a publish date), and I'm
having trouble designin
Hi,
Please excuse the long post... I tried to give a concise question, but
also I felt the need to give an example and explain...
I need to store a history of database changes (i.e. copies of all of
the fields [with their same ids] grouped by a publish date), and I'm
having trouble designin
Hi,
Please excuse the long post... I tried to give a concise question, but
also I felt the need to give an example and explain...
I need to store a history of database changes (i.e. copies of all of
the fields [with their same ids] grouped by a publish date), and I'm
having trouble designin
what’s the general table / function concept when it comes to time
based stuff ? Do I have to work with a date table when its about
scheduling / history of bookings, payments, etc. ?
Need to calculate open balances based on dynamic price change history,
when booking took place etc.
Any info
of creating, and how as the proyect began?
> > Thanks you for your quick reply.
> >
> > 2010/4/1 Jeremy Burns
> >
> >
> >
> > > Could you be more specific?
> >
> > > Jeremy Burns
> > > jeremybu...@me.com
> > > On 1 Apr 2
be more specific?
> >
> > > Jeremy Burns
> > > jeremybu...@me.com
> > > On 1 Apr 2010, at 14:19, julix wrote:
> >
> > > > Hi, i need information about the history of CakePHP.
> >
> > > > Check out the new CakePHP Questions sitehttp:
2010/4/1 Jeremy Burns
>
>
>
> > Could you be more specific?
>
> > Jeremy Burns
> > jeremybu...@me.com
> > On 1 Apr 2010, at 14:19, julix wrote:
>
> > > Hi, i need information about the history of CakePHP.
>
> > > Check out the new CakePHP Qu
wrote:
>
> > Hi, i need information about the history of CakePHP.
> >
> > Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
> >
> > You received this message because you are subscribed to the Google
Could you be more specific?
Jeremy Burns
jeremybu...@me.com
On 1 Apr 2010, at 14:19, julix wrote:
> Hi, i need information about the history of CakePHP.
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
>
Hi, i need information about the history of CakePHP.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, sen
Oh yeah. I'm definitely keeping a rating field in each of the rateable
models. The load from having to go through the vote table and count
for every record would be ridiculous. A tiny bit of denormalization
never hurt anyone.
One more thing though... Is it alright to leave the vote table
denormal
If you want to record all of that information then yes that would be
the best way to do it.
A simpler method would be to give each publication an integer field,
and create two functions (vote_up/vote_down), I have attached sample
code below for vote_up function (vote down would be the same, but
r
If you want to record all of that information then yes that would be
the best way to do it.
A simpler method would be to give each publication an integer field,
and create two functions (vote_up/vote_down), I have attached sample
code below for vote_up function (vote down would be the same, but
r
Yyp
Schreck
-Original Message-
From: Casey Stark
Date: Fri, 22 May 2009 01:17:42
To: CakePHP
Subject: Model Architecture: User Vote History
Hello bakers.
I'm beginning on my second cake project and I need some advice with my
model setup. Here's the deal:
I have several m
Hello bakers.
I'm beginning on my second cake project and I need some advice with my
model setup. Here's the deal:
I have several models that users can vote up or down (think like
stackoverflow - how users can vote on both questions and answers), but
I would like to keep track of vo
> http://cakeforge.org/projects/version/
>
> You mean like that?
that would probably do the trick yes!
jb
--
jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
--~--~-~--~~~---~--~~
You received this message because you are subsc
http://cakeforge.org/projects/version/
You mean like that?
On Mar 5, 5:51 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote:
> > I've been thinking about this recently, and I was thinking I would
> > have a separate model to store the history, I was thinking
>
> I've been thinking about this recently, and I was thinking I would
> have a separate model to store the history, I was thinking
>
> id
> model
> foreign_key
> user_id
> type enum(new,update)
>
> you would then connect all your models to this one model
> I'm trying to generate a Facebook-style Mini-feed about my users, so
> that a profile page will have the general user information and also a
> history of recent activity, which could be new favourites, new notes
> about the user, etc.
>
> How best to accomplish th
I'm trying to generate a Facebook-style Mini-feed about my users, so
that a profile page will have the general user information and also a
history of recent activity, which could be new favourites, new notes
about the user, etc.
How best to accomplish this?
Notes, favourites etc will be s
, or writing a
> behaviour (1.2) that has similar beforeSave hooks in it.
>
> I would watch that column quite carefully if I were you, a few updates
> and, and you could quickly find yourself with very sub-optimal
> database row lengths.
Thanks, the data does not change often, and aft
I see. Not the way I would do it to be honest, but it's possible...
What you really want to do is avoid overriding the save method in the
model and use either a beforeSave hook in the model, or writing a
behaviour (1.2) that has similar beforeSave hooks in it.
I would watch that column quite car
On Feb 9, 2008 6:31 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> if you add created and modified columns to your table, cake will
> automagically fill them in for you.
But, when I submit a changed record, I want it to do something like
the following:
save($orig, $new) {
$hx = json_deco
if you add created and modified columns to your table, cake will
automagically fill them in for you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@goog
I am storing a row's history in a json_encoded hx field, where each
change is a timestamped key. How do I go about putting this behavior
in save() so I don't have to do it in every action?
--
Ben Wilson
"Words are the only thing which will last for
Hi,
I have a model which transaction record per month. Underlying database
is MySQL with DDL sql as below
CREATE TABLE `estimations` (
`id` int(11) NOT NULL auto_increment,
`customer_id` varchar(200) NOT NULL,
`item_id` varchar(200) NOT NULL,
`amount` int(11) NOT NULL,
`month` tinyint(
On Mar 6, 3:02 pm, TheIdeaMan <[EMAIL PROTECTED]> wrote:
> AD,
>
> Thanks for asking about what I've been stuck on. I was able to figure
> out the problems not long after your e-mail. The problems were mostly
> related to using $uses in the app_controller and removing underscores
> from model fi
AD,
Thanks for asking about what I've been stuck on. I was able to figure
out the problems not long after your e-mail. The problems were mostly
related to using $uses in the app_controller and removing underscores
from model file names.
I ended up using ThinkingPHP's method of adding models into
syntax, api) to make moving from 1.0 to
> > 1.1 to 1.2 rather hard.
> >
> > Along those lines, I had hoped to find old copies of earlier releases
> > and work my way up through them following what changed in the release
> > notes for each, so I could avoid t
On Feb 21, 1:01 am, "Grant Cox" <[EMAIL PROTECTED]> wrote:
> You can check out every revision through Subversion,
> viahttps://svn.cakephp.org/repo/trunk/cake/1.1.x.x/
>
> You should find minimal changes migrating to 1.1.13 (the latest 1.1.x
> code). Look through the old release announcements
uld avoid trying to tackle the entire history
> of changes in one upgrade.
>
> The CakePHP site, however, only has the most recent files and the
> subversion repo only has a few releases tagged.
>
> Is there a way I can get these old releases from the repo? or as a tar
> file? I th
hard.
Along those lines, I had hoped to find old copies of earlier releases
and work my way up through them following what changed in the release
notes for each, so I could avoid trying to tackle the entire history
of changes in one upgrade.
The CakePHP site, however, only has the most recent file
50 matches
Mail list logo