First Name, Last Name Order of Translation

2014-08-21 Thread Justin Atack
Hi All, As we know in some languages (Chinese) the order of a persons name is family name, first name. How do we handle this for translation of strings. I need to be able to allow translators to switch the order depending on language. Here is a way I have found to do it but I don't really

Re: Custom MM:SS Time Validation with Regex

2014-03-14 Thread Justin Atack
: http://stackoverflow.com/questions/3964972/validate-this-format-hhmm and modify to your needs AD On Tuesday, 11 March 2014 05:03:28 UTC+1, Justin Atack wrote: Anybody? On Friday, 7 March 2014 22:14:03 UTC+11, Justin Atack wrote: Hi All, I need to validate a field that will store

CONCAT in Join

2014-03-14 Thread Justin Atack
Hi All, I think I have found a bug in CakePHP... but I could be wrong as I'm a CakePHP newbie... The code can be seen here if you prefer it colour coded: http://pastebin.com/eXSpbAmw Heres some code from my AssignmentsStudentSController.php. It should pull a list of names from the students DB

Re: Custom MM:SS Time Validation with Regex

2014-03-10 Thread Justin Atack
Anybody? On Friday, 7 March 2014 22:14:03 UTC+11, Justin Atack wrote: Hi All, I need to validate a field that will store a time instance MM:SS e.g. 04:32 would represent 4 minutes and 32 seconds. I have created the code in my model to validate the time field but I really don't know much

Custom MM:SS Time Validation with Regex

2014-03-07 Thread Justin Atack
Hi All, I need to validate a field that will store a time instance MM:SS e.g. 04:32 would represent 4 minutes and 32 seconds. I have created the code in my model to validate the time field but I really don't know much about regex. Here are a few that work ok... /([0-9]\d|60):([0-9]\d|60)/

Re: Containable with Pagination

2014-02-21 Thread Justin Atack
= $this-paginate('Schedule'); $this-set('schedules', $this-Paginator-paginate()); On Friday, 21 February 2014 10:49:00 UTC+11, Justin Atack wrote: Hi All, I'm having a problem getting Containable behaviour working with the Pagination component. I'm following the suggested code in the manual Using

Re: Containable with Pagination

2014-02-21 Thread Justin Atack
Gives me the same error: Notice (8): Indirect modification of overloaded property SchedulesController::$paginate has no effect [APP/Controller/SchedulesController.php, line 35] On Friday, 21 February 2014 10:49:00 UTC+11, Justin Atack wrote: Hi All, I'm having a problem getting Containable

Containable with Pagination

2014-02-20 Thread Justin Atack
Hi All, I'm having a problem getting Containable behaviour working with the Pagination component. I'm following the suggested code in the manual Using Containable with Pagination - http://book.cakephp.org/2.0/en/core-libraries/behaviors/containable.html#using-containable-with-pagination My

Re: Containable with Pagination

2014-02-20 Thread Justin Atack
Haha that works! You're a genius! Thank you so much. So is the CakePHP manual incorrect? On Friday, 21 February 2014 10:49:00 UTC+11, Justin Atack wrote: Hi All, I'm having a problem getting Containable behaviour working with the Pagination component. I'm following the suggested code

Re: Error: Class 'SimplePasswordHasher' not found

2014-01-17 Thread Justin Atack
Make sure your loading the Auth component in the AppController.php public $components = array( 'Session', 'Auth' = array( 'loginRedirect' = array( 'controller' = 'posts', 'action' = 'index' ), 'logoutRedirect' =

Re: CakePHP 2.4.4 Pagoda Box Quickstart

2014-01-15 Thread Justin Atack
this repo to keep their CakePHP app up to date with a simple GitHub deploy that can be done in the PagodaBox admin panel. On Wednesday, 15 January 2014 13:59:38 UTC+11, Justin Atack wrote: Hi All, If your a user of Pagoda Box this might save you a little bit of time if you want a quick

CakePHP 2.4.4 Pagoda Box Quickstart

2014-01-14 Thread Justin Atack
Hi All, If your a user of Pagoda Box this might save you a little bit of time if you want a quick development platform to work with. I have created a free Pagoda Box Quickstart (launcher) for CakePHP 2.4.4. Up until now there has only been an older version (v2.1.3) available. It's now

Re: Error: Class 'SimplePasswordHasher' not found

2014-01-14 Thread Justin Atack
', 'Controller/Component/Auth');' and it works just fine. Op vrijdag 3 januari 2014 06:49:28 UTC+1 schreef Justin Atack: Hi All, I hope you can point me in the right direction. I'm following the guide at: http://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html I'm using

Error: Class 'SimplePasswordHasher' not found

2014-01-03 Thread Justin Atack
Hi All, I hope you can point me in the right direction. I'm following the guide at: http://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html I'm using CakePHP 2.4.3 and have followed the guide to the letter of the law. It mostly works correctly. If I try to access a