CakeDC Categories with Associated Models

2013-02-09 Thread Larry Lutz
I'm attempting to use the CakeDC Categories plugin in CakePHP 2.3.0. Unfortunately, CakeDC's documentation is notoriously vague and incomplete, and my knowledge of Cake is very elementary. The problem is that, when dealing with hierarchical categories, Category.name is very unhelpful. For

API document change request.

2013-02-09 Thread Mathew
Hi, I'm not sure where to post this, but if someone could please make this very simple change. Maybe it will help someone else in the future. I just spent a lot of time debugging Cake to try and understand what Model::associations() does. The phpDoc says 'Get associations' which sounds like

Re: Cache errors on Heroku with update to 2.3 but works fine on local?

2013-02-09 Thread Simon Males
Issue is not CakePHP 2.3 specific. Heroku is a read only file system[1]. Though you can write to /tmp. So in core.php, when setting Cache::config() update the value of the 'path' key to '/tmp'. I've also shared my production Cache::config() settings[2]. [1]

Re: Plugin Query / Find Fails

2013-02-09 Thread lowpass
Remove the $id = from the call to findUser() On Fri, Feb 8, 2013 at 8:27 PM, Advantage+ movepix...@gmail.com wrote: I am having problems pulling User data in my plugin and cannot figure out why. If I run the same code in the controller it returns the data, but if I try to access it thru the

Re: CakeDC Categories with Associated Models

2013-02-09 Thread lowpass
I think you're mixing up Models and Helpers. Your Collection model has an association with Categories.Category, using the alias Category, so you can do $this-Collection-Category-whatever() But, you can't call model methods in the view. You can, but you shouldn't. From the view's perspective,

camel cased table not populating select

2013-02-09 Thread NikNik
Hello, where is the newbie section of this forum? :-) I am trying to populate a select in a normal user edit view taking data from another table called user_prefixes (which hasMany user that belongsTo user_prefixes ) user table: user.id, user.name, user.user_prefix_id user_prefix table: id,

create registration page

2013-02-09 Thread Prakash Bisht
hii i want to create registration page in cakePhp please help me -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group

Error utf8 on new installation of CakePHP2.3.0

2013-02-09 Thread David O'Neil
This is a problem I'm getting with a new install - trying to follow the blog tutorial. I must be doing something wrong http://viewing360.com- This works just fine http://viewing360.com/dealers - a page I'm trying to create following the tutorial - throws errors. ’Html’ It looks

how i use html in cake

2013-02-09 Thread Prakash Bisht
i create a simple registration page but i do no get all field are equal distance.the input field are so close with the label name,how i give space between them please reply fast.. thankx prakash -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

CakePHP : problems with controllers functions in external php files

2013-02-09 Thread yucodev
Hi guys ! This is my situation: 1) a simple_php.php file in webroot folder 2) the users_controller.php in the app/controllers 3) the follow function in the users_controller.php : link http://pastebin.com/N5E1AN3s code ? function login_flat($user_id){ $user_data =

saveAssociated validation not working

2013-02-09 Thread Richard
Hi, i have a problem with validation when using saveAssociated. Poll model validation works fine, but PollOptions model validation not... Controller public function admin_create() { if ($this-request-is('post')) { //$this-Poll-set($this-request-data); if

Re: how i use html in cake

2013-02-09 Thread Simon Males
Apply some CSS padding to the label? On Fri, Feb 8, 2013 at 5:56 PM, Prakash Bisht prakashbish...@gmail.com wrote: i create a simple registration page but i do no get all field are equal distance.the input field are so close with the label name,how i give space between them please reply

Re: CakeDC Categories with Associated Models

2013-02-09 Thread Larry Lutz
That works super-great for something like view.ctp where you're dealing with a single entity/record. That's exactly what I've done for those situations. The issue becomes much, much more complicated for something like index.ctp where you have to apply it to every record with a foreach loop.