Re: Dealing with big cakephp applications

2013-07-30 Thread Karey Powell
Hello Diogo, So, it seems to me that you need to create a Service Oriented Architecture (SOA) in order to facilitate seamless communication for these three different modules (User and Permission management, Projects, and Financing) kind of like what Amazon did and I would also be looking into

hasMany / belongsTo not working

2013-07-30 Thread WhyNotSmile
I have a pretty simple pair of objects, Photo and Album, defined as follows: class Album extends Model { public $name = 'Album'; public $hasMany = array( 'Photo' = array( 'className' = 'Photo', 'order' = 'Photo.order ASC' ) ); } class Photo extends Model { public

isAuthorized() is not working in custom controller

2013-07-30 Thread MD.Rashed Mhabub
Hi, My custom controller ' PostsController.php' and inside this a have given the following code :--- public function isAuthorized($user = null) { // parent::isAuthorized($user); if($this-action == 'add'){ return true; }

2.3 Checkbox validation

2013-07-30 Thread Eric Haskins
Ok I must be doing something wrong on my checkbox validation because its always invalid Snip of validation: 'agever' = array( 'notEmpty' = array( 'rule' = array('equalTo', 'yes'), 'required' = true, 'message' = 'We require you to be over 13 to register without a Parent.' ) ),

CURL post fields and empty data

2013-07-30 Thread Slacky
Hi everybody. I'm getting crazy with a very small webservice. From client side I'm making a POST request with cURL, sending a post field called userid. Something like: CURLOPT_POSTFIELDS = array('loginid' = 'MyLoginData123'). On the server side, $this-request-data is empty since the request is

Re: hasMany / belongsTo not working

2013-07-30 Thread Marcelo F Andrade
On Tue, Jul 30, 2013 at 6:50 AM, WhyNotSmile sharongilmor...@gmail.com wrote: I have a pretty simple pair of objects, Photo and Album, defined as follows: class Album extends Model { public $name = 'Album'; public $hasMany = array( 'Photo' = array( 'className' = 'Photo', 'order'

Re: 2.3 Checkbox validation

2013-07-30 Thread euromark
Why are you not using 0/1 (the numeric representation of boolean false/true) here? Would make your life so much easier. And the validaiton rule here. Also, boolean checkboxes by default would use those values anyway if you let them. Am Dienstag, 30. Juli 2013 18:14:53 UTC+2 schrieb Eric

Problem with install cakephp 2.3.8 in System OS/400 Power 7

2013-07-30 Thread Jose Julian Abarca
Hi all, please help with error in cakephp 2.3.8 my default page into a fresh instalation of cakephp in a System OS/400 Power7 report the next error: FileEngine Object [_File:protected]= SplFileObject Object error complete here: http://bin.cakephp.org/saved/106039 PHP VERSION: 5.4.16 APACHE