Re: Command history in CakePHP console

2012-03-01 Thread jeremyharris
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

Re: Command history in CakePHP console

2012-03-01 Thread Simon Males
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

Re: Command history in CakePHP console

2012-02-29 Thread jeremyharris
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

Command history in CakePHP console

2012-02-29 Thread Simon Males
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

Re: history log table

2011-10-04 Thread elogic
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

Re: history log table

2011-10-04 Thread elogic
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

Re: history log table

2011-10-04 Thread majna
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...

Re: history log table

2011-10-03 Thread elogic
- > > 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

Re: history log table

2011-10-03 Thread elogic
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

RE: history log table

2011-10-03 Thread Meroe Kush
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

Re: history log table

2011-10-03 Thread elogic
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

Re: history log table

2011-10-03 Thread euromark
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

history log table

2011-10-02 Thread elogic
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

Cake History Table Searching

2010-10-01 Thread Ferdi
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

Re: Keeping a history of changes without composite keys

2010-05-19 Thread shantamg
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),

Re: Keeping a history of changes without composite keys

2010-05-19 Thread LunarDraco
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

Re: Managing a history of changes

2010-05-18 Thread John Andersen
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

Re: Keeping a history of changes without composite keys

2010-05-18 Thread John Andersen
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

Managing a history of changes

2010-05-18 Thread paws_galuten
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

Keeping a history of changes without composite keys

2010-05-18 Thread shantamg
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

Keeping a history of changes without composite keys

2010-05-18 Thread shantamg
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

Need Intro to how layout concept for schedule / history based functions

2010-05-07 Thread xfhxfh
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

Re: Information History

2010-04-02 Thread Julian Salas
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

Re: Information History

2010-04-02 Thread Sam Sherlock
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:

Re: Information History

2010-04-01 Thread nurvzy
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

Re: Information History

2010-04-01 Thread Julian Salas
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

Re: Information History

2010-04-01 Thread 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 Questions site http://cakeqs.org and help others > with their CakePHP related questions. > >

Information History

2010-04-01 Thread julix
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

Re: Model Architecture: User Vote History

2009-05-22 Thread Casey Stark
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

Re: Model Architecture: User Vote History

2009-05-22 Thread number9
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

Re: Model Architecture: User Vote History

2009-05-22 Thread number9
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

Re: Model Architecture: User Vote History

2009-05-22 Thread schreck84
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

Model Architecture: User Vote History

2009-05-22 Thread Casey Stark
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

Re: Model associations to generate a history

2008-03-06 Thread Jon Bennett
> 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

Re: Model associations to generate a history

2008-03-05 Thread nate
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 >

Re: Model associations to generate a history

2008-03-05 Thread Jon Bennett
> 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

Re: Model associations to generate a history

2008-03-05 Thread Jon Bennett
> 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

Model associations to generate a history

2008-03-05 Thread martinp
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

Re: history...

2008-02-09 Thread Ben Wilson
, 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

Re: history...

2008-02-09 Thread [EMAIL PROTECTED]
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

Re: history...

2008-02-09 Thread Ben Wilson
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

Re: history...

2008-02-09 Thread [EMAIL PROTECTED]
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

history...

2008-02-09 Thread Ben Wilson
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

Data History & Pagination

2007-08-12 Thread Feris Thia
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(

Re: Old release downloads and subversion history...

2007-03-06 Thread AD7six
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

Re: Old release downloads and subversion history...

2007-03-06 Thread TheIdeaMan
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

Re: Old release downloads and subversion history...

2007-02-21 Thread TheIdeaMan
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

Re: Old release downloads and subversion history...

2007-02-20 Thread AD7six
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

Re: Old release downloads and subversion history...

2007-02-20 Thread Grant Cox
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

Old release downloads and subversion history...

2007-02-20 Thread TheIdeaMan
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