Gearing up: New repository and 2.0 development branch available

2010-05-08 Thread Graham Weldon
Since the release of CakePHP 1.3.0[1], the development team has been working on CakePHP 2.0 as well as the numerous tickets on the 1.2[2] and 1.3[3] branches. We're pushing a fair amount of effort into CakePHP 2.0 and making changes that we've been keen to make for some time (See the 2.0 developmen

Re: hasAndBelongsToMany Relationship

2010-05-08 Thread WebbedIT
You've outlined your models, controllers and actions but have not really told us what problem you are having. Are you having issues with finding data, displaying data or saving data? HTH Paul Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

Auth / ACL success and now what??

2010-05-08 Thread bradmaxs
Hey Everyone, I am building a fairly big app and decided to tackle ACL and it is actually working. I have three groups: administrator user artist Here are the permissions: $group->id = 1; $this->Acl->allow($group, 'controllers'); //allow users $group->id = 2; $

Re: 1.3 omit attribute

2010-05-08 Thread Andy Dirnberger
Labels are supposed to be used with input fields. You should be using for table column headers. On May 8, 4:13 pm, ZAky wrote: > I am trying to omit the auto generated  'for' attribute for > $this->Html->label with no success. > > I tried: > $this->Form->label('status','Status',array('for'=>fal

1.3 omit attribute

2010-05-08 Thread ZAky
I am trying to omit the auto generated 'for' attribute for $this- >Html->label with no success. I tried: $this->Form->label('status','Status',array('for'=>false [or] null)); and this $this->Form->label('status','Status',array('label'=>array('for'=>false [or] null))); Just using Form->label('sta

hasAndBelongsToMany Relationship

2010-05-08 Thread Stefano Martins
Hello folks, I'm having the following problem to solve with CakePHP, but I'm kinda without any north, probably a silly question... Developing a software which controls production orders and stock, each finished product consists of a group of items, in a hasAndBelongsToMany relationship. The usual

Re: cakephp v2.0

2010-05-08 Thread Renato de Freitas Freire
yes... sure.. thanks... i heard alot that "cakephp is dead, and the future for cakes users is lithium" good to know that its not true... -- Renato de Freitas Freire ren...@morfer.org On Sat, May 8, 2010 at 9:02 AM, Graham Weldon wrote: > Lithium is a PHP Framework for PHP 5.3+ developed by a

Re: email sending

2010-05-08 Thread John Andersen
Or use your Gmail as your mail account in a smtp setup. See http://book.cakephp.org/view/176/Email for understanding of the Email component. Enjoy, John On May 8, 4:10 pm, "Ma'moon" wrote: > Yes, you need to install an MTA in order to send emails from your server > [snip] Check out the new Ca

Re: email sending

2010-05-08 Thread Ma'moon
Yes, you need to install an MTA in order to send emails from your server On Sat, May 8, 2010 at 8:54 AM, MANOJ DHAMAL wrote: > no i not installed any MTA. Is it neccessary? > > On May 8, 5:45 pm, "Ma'moon" wrote: > > Do you have any MTA installed in your server? > > > > On Sat, May 8, 2010 at 8:

Re: email sending

2010-05-08 Thread MANOJ DHAMAL
no i not installed any MTA. Is it neccessary? On May 8, 5:45 pm, "Ma'moon" wrote: > Do you have any MTA installed in your server? > > On Sat, May 8, 2010 at 8:36 AM, MANOJ DHAMAL wrote: > > > > > I have to send email to user when he/she completes registration. > > > i have used component in contr

Re: very weird! query result not formatted correctly between localhost vs online server

2010-05-08 Thread Eleazar
Seems to be a mySql bug See this link: http://bugs.mysql.com/bug.php?id=41788 On May 8, 2:22 pm, Eleazar wrote: > well it seems this might be a php thing, not a CakePhp issue. > I've tracked the problem to resultSet function in dbo_mysql.php. > The mysql_fetch_field returns different results on t

Re: email sending

2010-05-08 Thread Ma'moon
Do you have any MTA installed in your server? On Sat, May 8, 2010 at 8:36 AM, MANOJ DHAMAL wrote: > I have to send email to user when he/she completes registration. > > i have used component in controller like > > var $components = array('Email'); > > i am using function call for sending mail li

email sending

2010-05-08 Thread MANOJ DHAMAL
I have to send email to user when he/she completes registration. i have used component in controller like var $components = array('Email'); i am using function call for sending mail like $this->sendNewUserMail(); And funcion is as, function sendNewUserMail(){ $this->Email->to = 'm

Re: very weird! query result not formatted correctly between localhost vs online server

2010-05-08 Thread Eleazar
well it seems this might be a php thing, not a CakePhp issue. I've tracked the problem to resultSet function in dbo_mysql.php. The mysql_fetch_field returns different results on the localhost vs the online server. I can only assume the function might have been changed in a newer version of php to r

Re: very weird! query result not formatted correctly between localhost vs online server

2010-05-08 Thread John Andersen
Is the reason for you having uploaded the application to your server, that the model names have been changed or table names? Assuming so, please either turn on debug in the config/core.php file (set to 2) or clear the model cache - delete all in the tmp/cache directory. Then try again! Enjoy,

Re: cakephp v2.0

2010-05-08 Thread Graham Weldon
Lithium is a PHP Framework for PHP 5.3+ developed by a group of developers that used to work on the CakePHP Framework. You can find more information on their website: http://lithify.me Lithium is not affiliated or associated with CakePHP. I hope that clears things up for you. Cheers, Graham Weld

Re: how to send email in cakephp

2010-05-08 Thread Dilip Godhani
hi, In cake php Email component is there use this component of cake php Bye On Sat, May 8, 2010 at 5:11 PM, MANOJ DHAMAL wrote: > How to send email for welcome message when user do login? Which > components required for it? > > Check out the new CakePHP Questions site http://cakeqs.org and help

Re: how to send email in cakephp

2010-05-08 Thread Ma'moon
A small google search will lead you to http://book.cakephp.org/view/176/Email On Sat, May 8, 2010 at 7:41 AM, MANOJ DHAMAL wrote: > How to send email for welcome message when user do login? Which > components required for it? > > Check out the new CakePHP Questions site http://cakeqs.org and help

how to send email in cakephp

2010-05-08 Thread MANOJ DHAMAL
How to send email for welcome message when user do login? Which components required for it? 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.

Re: cakephp v2.0

2010-05-08 Thread Renato de Freitas Freire
So.. whats the deal with this Lithium framework? Is it the cake 2.0 or just a copy from someone else? -- Renato de Freitas Freire ren...@morfer.org On Fri, May 7, 2010 at 9:27 PM, Graham Weldon wrote: > The team has been working towards 2.0 with more and more enthusiasm. > We;ve been internall

Re: very weird! query result not formatted correctly between localhost vs online server

2010-05-08 Thread Eleazar
in my search for the origination of this strange behaviour I've come accross a lead. Debugging the dbo source object reveals that the [map] array of the fields is different between the two servers. The one has the fields mapped to the appropriate tables while the other maps the fields to 't2' as in

Re: how to select from subquery result

2010-05-08 Thread Eleazar
yes, I want the latest entry in the table for each of the block_id's in the table, not just the latest date. The block_id is a foreign key, so there might be 10 entries for each block_id, but I want the latest entry for each block_id found in the table in one query. Hope it's more clear now. On