Re: Bug: Saving HABTM relationship, "Column in where clause is ambiguous"

2008-05-06 Thread David Christopher Zentgraf

That just makes it throw another error:
SQL Error: 1054: Unknown column 'UserFriend.User.user_id' in 'on clause'

And it's not the HABTM relationship that's causing the problem.
I don't know why, but before saving a HABTM relationship Cake seems to  
do a lot of SELECTs for every related model, to make sure it's got the  
right users‽

It's tripping over the hasMany relationship between Users and  
Accounts, since both have a column with the same name.


On 7 May 2008, at 15:39, Grant Cox (Gmail) wrote:

> Change your HABTM to:
>
>   var $hasAndBelongsToMany = array(
>   'Group' => array(
>   'className'=> 'Group',
>   'joinTable'=> 'groups_users',
>   'foreignKey'=> 'user_id',
>   'associationForeignKey' => 'group_id',
>   'unique'=> true
>   ),
>   'Friend' => array(
>   'className'=> 'User',
>   'joinTable'=> 'user_friends',
>   'foreignKey'=> 'User.user_id',
>   'associationForeignKey' => 'Friend.friend_id',
>   'unique'=> true
>   )
>   );
>
> So you are specifying that in the join of the two tables, 'user_id'  
> is the left and 'friend_id' is the right.  This should avoid any  
> confusion.
>
> Grant
>
>
> David Christopher Zentgraf wrote:
>> Not quite sure what you're getting at, but please have a look:
>>
>>
>> class User extends AppModel {
>>
>>var $name = 'User';
>>
>>var $belongsTo = array(
>>'DefaultAccount' => array(
>>'className'=> 'Account',
>>'foreignKey'=> 'default_account_id'
>>)
>>);
>>
>>var $hasMany = array(
>>'Account' => array(
>>'className'=> 'Account',
>>'foreignKey'=> 'user_id',
>>'dependent'=> true
>>)
>>);
>>
>>var $hasAndBelongsToMany = array(
>>'Group' => array(
>>'className'=> 'Group',
>>'joinTable'=> 'groups_users',
>>'foreignKey'=> 'user_id',
>>'associationForeignKey' => 'group_id',
>>'unique'=> true
>>),
>>'Friend' => array(
>>'className'=> 'User',
>>'joinTable'=> 'user_friends',
>>'foreignKey'=> 'user_id',
>>'associationForeignKey' => 'friend_id',
>>'unique'=> true
>>)
>>);
>> }
>>
>> On 7 May 2008, at 15:22, Grant Cox wrote:
>>
>>>
>>> Can you post your $hasAndBelongsToMany variable definition?  I think
>>> you'll be able to fix your issue by just using the model alias
>>> prefixes in the 'foreignKey' and/or 'associationForeignKey' values.
>>>
>>>
>>> On May 7, 2:25 pm, David Christopher Zentgraf <[EMAIL PROTECTED]>
>>> wrote:
 Hi,

 I'm stumbling across bug number 4194.https://trac.cakephp.org/ticket/4194

 I have a User model, which has a `name` field.
 This User hasMany Accounts, which also have a `name` field.
 The User also hasAndBelongsToMany other Users as a friend  
 relationship.

 User (`name`, ...)
 |
 |- hasMany
 |  |- Accounts (`name`, ...)
 |
 |- hasAndBelongsToMany
   |- User

 When I try to save such a User-User HABTM relationship, Cake is  
 doing
 all sorts of lookups, apparently for every linked model.
 What it fails at is this query:

 SELECT COUNT(*) AS `count` FROM `users` AS `User`
 LEFT JOIN `accounts` AS `DefaultAccount`
  ON (`User`.`default_account_id` = `DefaultAccount`.`id`)
 WHERE ((`name` = '')) AND `User`.`id` != 1

 1052: Column 'name' in where clause is ambiguous

 The WHERE clause would need to be extended to query for  
 `User`.`name`
 instead of just `name`, since both tables have a column called  
 `name`.
 I'm not quite sure why Cake is doing all these queries in the first
 place, guess it's just being extra paranoid.

 Anyway, the above mentioned bug seems to be very related, but nate
 insists on a test case.
 I have no idea how to write test cases for something like this, so
 could a kind soul jump in?

 Chrs,
 Dav
>>> >>>
>>
>>


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Bug: Saving HABTM relationship, "Column in where clause is ambiguous"

2008-05-06 Thread David Christopher Zentgraf

Not quite sure what you're getting at, but please have a look:


class User extends AppModel {

var $name = 'User';

var $belongsTo = array(
'DefaultAccount' => array(
'className' => 'Account',
'foreignKey'=> 'default_account_id'
)
);

var $hasMany = array(
'Account' => array(
'className' => 'Account',
'foreignKey'=> 'user_id',
'dependent' => true
)
);

var $hasAndBelongsToMany = array(
'Group' => array(
'className' => 'Group',
'joinTable' => 'groups_users',
'foreignKey'=> 'user_id',
'associationForeignKey' => 'group_id',
'unique'=> true
),
'Friend' => array(
'className' => 'User',
'joinTable' => 'user_friends',
'foreignKey'=> 'user_id',
'associationForeignKey' => 'friend_id',
'unique'=> true
)
);
}

On 7 May 2008, at 15:22, Grant Cox wrote:

>
> Can you post your $hasAndBelongsToMany variable definition?  I think
> you'll be able to fix your issue by just using the model alias
> prefixes in the 'foreignKey' and/or 'associationForeignKey' values.
>
>
> On May 7, 2:25 pm, David Christopher Zentgraf <[EMAIL PROTECTED]>
> wrote:
>> Hi,
>>
>> I'm stumbling across bug number 4194.https://trac.cakephp.org/ticket/4194
>>
>> I have a User model, which has a `name` field.
>> This User hasMany Accounts, which also have a `name` field.
>> The User also hasAndBelongsToMany other Users as a friend  
>> relationship.
>>
>> User (`name`, ...)
>> |
>> |- hasMany
>> |  |- Accounts (`name`, ...)
>> |
>> |- hasAndBelongsToMany
>>|- User
>>
>> When I try to save such a User-User HABTM relationship, Cake is doing
>> all sorts of lookups, apparently for every linked model.
>> What it fails at is this query:
>>
>> SELECT COUNT(*) AS `count` FROM `users` AS `User`
>> LEFT JOIN `accounts` AS `DefaultAccount`
>>   ON (`User`.`default_account_id` = `DefaultAccount`.`id`)
>> WHERE ((`name` = '')) AND `User`.`id` != 1
>>
>> 1052: Column 'name' in where clause is ambiguous
>>
>> The WHERE clause would need to be extended to query for `User`.`name`
>> instead of just `name`, since both tables have a column called  
>> `name`.
>> I'm not quite sure why Cake is doing all these queries in the first
>> place, guess it's just being extra paranoid.
>>
>> Anyway, the above mentioned bug seems to be very related, but nate
>> insists on a test case.
>> I have no idea how to write test cases for something like this, so
>> could a kind soul jump in?
>>
>> Chrs,
>> Dav
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: tempdocs.cakephp.org

2008-05-06 Thread Filip Camerman

superb, thanx, hadn't seen that link :)

On May 6, 11:45 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On Tue, May 6, 2008 at 2:55 PM, Filip Camerman <[EMAIL PROTECTED]> wrote:
>
> > it was actually handy to have everything on one page, would be nice to
> > still have that as an extra.
>
> Seek and you shall find -http://book.cakephp.org/complete/3/the-manual
>
> :)
>
> Tarique
>
> --
> =
> Cheesecake-Photoblog:http://cheesecake-photoblog.org
> PHP for E-Biz:http://sanisoft.com
> =
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Bug: Saving HABTM relationship, "Column in where clause is ambiguous"

2008-05-06 Thread Grant Cox

Can you post your $hasAndBelongsToMany variable definition?  I think
you'll be able to fix your issue by just using the model alias
prefixes in the 'foreignKey' and/or 'associationForeignKey' values.


On May 7, 2:25 pm, David Christopher Zentgraf <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I'm stumbling across bug number 4194.https://trac.cakephp.org/ticket/4194
>
> I have a User model, which has a `name` field.
> This User hasMany Accounts, which also have a `name` field.
> The User also hasAndBelongsToMany other Users as a friend relationship.
>
> User (`name`, ...)
> |
> |- hasMany
> |  |- Accounts (`name`, ...)
> |
> |- hasAndBelongsToMany
> |- User
>
> When I try to save such a User-User HABTM relationship, Cake is doing
> all sorts of lookups, apparently for every linked model.
> What it fails at is this query:
>
> SELECT COUNT(*) AS `count` FROM `users` AS `User`
> LEFT JOIN `accounts` AS `DefaultAccount`
>ON (`User`.`default_account_id` = `DefaultAccount`.`id`)
> WHERE ((`name` = '')) AND `User`.`id` != 1
>
> 1052: Column 'name' in where clause is ambiguous
>
> The WHERE clause would need to be extended to query for `User`.`name`
> instead of just `name`, since both tables have a column called `name`.
> I'm not quite sure why Cake is doing all these queries in the first
> place, guess it's just being extra paranoid.
>
> Anyway, the above mentioned bug seems to be very related, but nate
> insists on a test case.
> I have no idea how to write test cases for something like this, so
> could a kind soul jump in?
>
> Chrs,
> Dav
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Dr. Tarique Sani
On Wed, May 7, 2008 at 11:17 AM, Aaron Shafovaloff <[EMAIL PROTECTED]>
wrote:

>
> The URL is now:
>
> http://www.unauthorizedcakeguide.com/


Visit from the CakePHP police? ;)

Cheers
Tarique

-- 
=
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
=

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Aaron Shafovaloff

The URL is now:

http://www.unauthorizedcakeguide.com/

On May 6, 11:16 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On Wed, May 7, 2008 at 8:14 AM, Aaron Shafovaloff <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > My meager, scanty effort has begun here:
>
> >http://www.cakedocs.org/
>
> Sigh! what a waste
>
> I may have differences of opinion on some of the ideas of core devs on some
> semantics of *freedom* as applied to Open Source. I also agree that forking
> can be a way of healthy competition but it is a last resort.
>
> If people have problems with cookbook lets hear them and lets see some code
> contributions - gwoo has promised Amit to open the code soon so that the
> patches can be submitted and I am looking forward to it
>
> This and that something on top project I feel is a waste of efforts but
> again it is those contributor's efforts and it is for them to find ways to
> utilize it...
>
> Just my 2ps (thats USD0.000484)
>
> Tarique
>
> P.S. Amit sits next to me and I can peek into his mail ;)
>
> --
> =
> Cheesecake-Photoblog:http://cheesecake-photoblog.org
> PHP for E-Biz:http://sanisoft.com
> =
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Dr. Tarique Sani
On Wed, May 7, 2008 at 8:14 AM, Aaron Shafovaloff <[EMAIL PROTECTED]>
wrote:

>
> My meager, scanty effort has begun here:
>
> http://www.cakedocs.org/


Sigh! what a waste

I may have differences of opinion on some of the ideas of core devs on some
semantics of *freedom* as applied to Open Source. I also agree that forking
can be a way of healthy competition but it is a last resort.

If people have problems with cookbook lets hear them and lets see some code
contributions - gwoo has promised Amit to open the code soon so that the
patches can be submitted and I am looking forward to it

This and that something on top project I feel is a waste of efforts but
again it is those contributor's efforts and it is for them to find ways to
utilize it...

Just my 2ps (thats USD0.000484)

Tarique

P.S. Amit sits next to me and I can peek into his mail ;)

-- 
=
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
=

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Bug: Saving HABTM relationship, "Column in where clause is ambiguous"

2008-05-06 Thread David Christopher Zentgraf

Hi,

I'm stumbling across bug number 4194. https://trac.cakephp.org/ticket/4194

I have a User model, which has a `name` field.
This User hasMany Accounts, which also have a `name` field.
The User also hasAndBelongsToMany other Users as a friend relationship.

User (`name`, ...)
|
|- hasMany
|  |- Accounts (`name`, ...)
|
|- hasAndBelongsToMany
|- User

When I try to save such a User-User HABTM relationship, Cake is doing  
all sorts of lookups, apparently for every linked model.
What it fails at is this query:

SELECT COUNT(*) AS `count` FROM `users` AS `User`
LEFT JOIN `accounts` AS `DefaultAccount`
   ON (`User`.`default_account_id` = `DefaultAccount`.`id`)
WHERE ((`name` = '')) AND `User`.`id` != 1

1052: Column 'name' in where clause is ambiguous

The WHERE clause would need to be extended to query for `User`.`name`  
instead of just `name`, since both tables have a column called `name`.
I'm not quite sure why Cake is doing all these queries in the first  
place, guess it's just being extra paranoid.

Anyway, the above mentioned bug seems to be very related, but nate  
insists on a test case.
I have no idea how to write test cases for something like this, so  
could a kind soul jump in?

Chrs,
Dav

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How can I debug cakephp in eclipse with phpeclipse

2008-05-06 Thread butterfly


I am a newer in php ,and I am learining cake php in eclipse an phpeclise, I
want to set point in controller file but couldn't successefull , I am
confuse that if cakephp coulded be debugged in eclipse and phpeclipse?Can
any body help?  many  thanks
-- 
View this message in context: 
http://www.nabble.com/How-can-I-debug-cakephp-in-eclipse-with-phpeclipse-tp17093815p17093815.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Aaron Shafovaloff

My meager, scanty effort has begun here:

http://www.cakedocs.org/

On May 6, 12:20 pm, Aaron  Shafovaloff <[EMAIL PROTECTED]> wrote:
> Well, the book does harness collective intelligence and collaboration,
> but I personally think wikis do that best. In summary, I like the
> flexibility of interlinking (I think that's what it's called), of
> evolving large pages into smaller chunks, of categorizing pages, of
> discussion areas attached to each page.
>
> I think an online book serves somewhat a different purpose and has a
> different structure than a wiki. A wiki's table of contents, for one,
> are going to be more topical than progressive like a book's ToC. I
> personally find book.cakephp.org's table of contents disorienting.
> Maybe I'm just dense.
>
> I probably don't have a solid philosophical presentation for my
> preference of a wiki. It's really just that, a preference.
>
> On May 6, 11:44 am, AD7six <[EMAIL PROTECTED]> wrote:
>
> > On May 6, 7:38 pm, Aaron  Shafovaloff <[EMAIL PROTECTED]> wrote:
>
> > > > The answer seems to be because some people believe that a wiki is the
> > > > solution to all of mankind's problems.
>
> > > You are correct. :-) I think wikis best harness the power of
> > > collective intelligence and collaboration for projects like
> > > documentation.
>
> > In what way (pending enhancements aside) does the book not harness the
> > power of collective intelligence and collaboration.
>
> > AD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



adv routing questions ....i think

2008-05-06 Thread trav

Hey bakers,

I am building an application that has 6 databases.  Some of the tables
are called the same name.  I have organized my controllers/views into
sub directorys for each database.

eg.

controllers/
db1/
users_controller.php
db2/
users_controller.php

The Problem:

How can i point the url to the right controller?

For example (doesn't work)

Router::connect('/db1/users/*', array('controller' => '/db1/users',
'action' => 'index'));
Router::connect('/db2/users/*', array('controller' => '/db2/users',
'action' => 'index'));

The most obvious thing is just to make all the controller (models)
names unique.  but i would like to know if there are any other ways to
get around this issue.

Cheers,
Trav.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Weird 404 error

2008-05-06 Thread Sam Sherlock
try (an adaption) of this


AddType x-mapp-php5 .php

RewriteEngine on
RewriteRule /v6$ /v6/ [L]
RewriteRule^$/v6/webroot/[L]
RewriteRule(.*) /v6/webroot/$1[L]




the cake app is in this v6 dir

hth - S


2008/5/7 Tallbrick <[EMAIL PROTECTED]>:

>
> I have also encountered this issue and have not yet found the
> solution.  The issue is definatly intermittent - at times accessing
> with a www prefix will generate the error and sometimes not...  And
> the error that I get is always:
>
> ===
> Warning: include(cake/bootstrap.php) [function.include]: failed to
> open stream: No such file or directory in /var/www/vhosts/domain.com/
> httpdocs/app/webroot/index.phpon
>  line 82
>
> Warning: include(cake/bootstrap.php) [function.include]: failed to
> open stream: No such file or directory in /var/www/vhosts/domain.com/
> httpdocs/app/webroot/index.phpon
>  line 82
>
> Warning: include() [function.include]: Failed opening 'cake/
> bootstrap.php' for inclusion (include_path='/var/www/vhosts/domain.com/
> httpdocs/app/:. ') in /var/www/vhosts/
> domain.com/httpdocs/app/webroot/
> index.php  on line 82
>
> Fatal error: Can't find CakePHP core. Check the value of
> CAKE_CORE_INCLUDE_PATH in app/webroot/index.php. It should point to
> the directory containing your /cake core directory and your /vendors
> root directory. in /var/www/vhosts/domain.com/httpdocs/app/webroot/
> index.php  on line 83
> 
>
> ...And after googling the error text it looks like at least 10 other
> sites are (unknowingly?) experiencing the same issue as well...
>
> As a precaution, I've set Plesk to "Use a single directory for housing
> SSL and non-SSL content" but, what can be done to fix the www prefix
> issue?
>
> I am new to Cake, and any ideas are appreciated :)
>
>
> On Mar 20, 3:11 pm, Walker Hamilton <[EMAIL PROTECTED]> wrote:
> > Yeah, 1and1.com is wrong. It's a server configuration problem.
> >
> > The big reason I know this is that the https is resolving via the
> > canonicalurlwhile the non-secure version is not. This is an apache
> > configuration issue.
> >
> > Many servers serve secure & non-secure http from the same directory,
> > but other (media temple's default plesk installs for instance) serve
> > http from one directory & https from another.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Weird 404 error

2008-05-06 Thread Tallbrick

I have also encountered this issue and have not yet found the
solution.  The issue is definatly intermittent - at times accessing
with a www prefix will generate the error and sometimes not...  And
the error that I get is always:

===
Warning: include(cake/bootstrap.php) [function.include]: failed to
open stream: No such file or directory in /var/www/vhosts/domain.com/
httpdocs/app/webroot/index.php on line 82

Warning: include(cake/bootstrap.php) [function.include]: failed to
open stream: No such file or directory in /var/www/vhosts/domain.com/
httpdocs/app/webroot/index.php on line 82

Warning: include() [function.include]: Failed opening 'cake/
bootstrap.php' for inclusion (include_path='/var/www/vhosts/domain.com/
httpdocs/app/:.') in /var/www/vhosts/domain.com/httpdocs/app/webroot/
index.php on line 82

Fatal error: Can't find CakePHP core. Check the value of
CAKE_CORE_INCLUDE_PATH in app/webroot/index.php. It should point to
the directory containing your /cake core directory and your /vendors
root directory. in /var/www/vhosts/domain.com/httpdocs/app/webroot/
index.php on line 83


...And after googling the error text it looks like at least 10 other
sites are (unknowingly?) experiencing the same issue as well...

As a precaution, I've set Plesk to "Use a single directory for housing
SSL and non-SSL content" but, what can be done to fix the www prefix
issue?

I am new to Cake, and any ideas are appreciated :)


On Mar 20, 3:11 pm, Walker Hamilton <[EMAIL PROTECTED]> wrote:
> Yeah, 1and1.com is wrong. It's a server configuration problem.
>
> The big reason I know this is that the https is resolving via the
> canonicalurlwhile the non-secure version is not. This is an apache
> configuration issue.
>
> Many servers serve secure & non-secure http from the same directory,
> but other (media temple's default plesk installs for instance) serve
> http from one directory & https from another.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Warning: imagejpeg(): Unable to open

2008-05-06 Thread Grant Cox

I agree it is probably permissions (or case sensitivity).  However,
why are you using imagejpeg() to write a .gif file ?


On May 7, 8:52 am, francky06l <[EMAIL PROTECTED]> wrote:
> Story of writing permissions on folder maybe ?
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Warning: imagejpeg(): Unable to open

2008-05-06 Thread francky06l

Story of writing permissions on folder maybe ?

On May 6, 11:53 pm, maxi <[EMAIL PROTECTED]> wrote:
> Problem is attach images when webpagee setup on Internet..Attach image
> on wamp sever(localhost) is OK, but when I set webpage on Internet and
> I try attach image I get this message:
>
> Warning: imagejpeg(): Unable to open '/hsphere/local/home/pcnet/
> pcnet.com.ba/Arhiva01/vjezba_d/app/webroot/img/photos/eleven1j01.gif'
> for writing in /hsphere/local/home/pcnet/pcnet.com.ba/Arhiva01/
> vjezba_d/app/controllers/components/upload.php on line 284 Warning:
> Cannot modify header information - headers already sent by (output
> started at /hsphere/local/home/pcnet/pcnet.com.ba/Arhiva01/vjezba_d/
> app/controllers/components/upload.php:284) in /hsphere/local/home/
> pcnet/pcnet.com.ba/Arhiva01/vjezba_d/cake/libs/controller/
> controller.php on line 447
>
> Thank you!!!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Warning: imagejpeg(): Unable to open

2008-05-06 Thread maxi

Problem is attach images when webpagee setup on Internet..Attach image
on wamp sever(localhost) is OK, but when I set webpage on Internet and
I try attach image I get this message:

Warning: imagejpeg(): Unable to open '/hsphere/local/home/pcnet/
pcnet.com.ba/Arhiva01/vjezba_d/app/webroot/img/photos/eleven1j01.gif'
for writing in /hsphere/local/home/pcnet/pcnet.com.ba/Arhiva01/
vjezba_d/app/controllers/components/upload.php on line 284 Warning:
Cannot modify header information - headers already sent by (output
started at /hsphere/local/home/pcnet/pcnet.com.ba/Arhiva01/vjezba_d/
app/controllers/components/upload.php:284) in /hsphere/local/home/
pcnet/pcnet.com.ba/Arhiva01/vjezba_d/cake/libs/controller/
controller.php on line 447


Thank you!!!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Help with CakePHP URLs thru SonicWall SSL VPN

2008-05-06 Thread jonathan

Hi All,

Been using Cake for quite awhile and it is the best thing since
sliced...  well - you get the idea.  Anyway, I am setting up a super-
secure network for users of my Cake app.  The security is handled by a
SonicWall SSL-VPN 2000 appliance.  Unfortunately, it mucks with the
URL so it breaks the Cake URL workings.  Here is an example of before
and after URLs:

Before (works great):
https://www.intraviewvs.net/apps/

After (all sorts of things tank):
https://ssl01.validity.local/cgi-bin/nph-httprp/https://www.intraviewvs.net/apps/

Is there a way to set Cake to disregard or even embrace the new
"https://ssl01.validity.local/cgi-bin/nph-httprp/"; stuff that is being
tacked on in front?  Another challenge is that this link will be
different if a user connects from outside of our network, as so:
https://ssl01.intraviewsolutions.com/cgi-bin/nph-httprp/https://www.intraviewvs.net/apps/

Any tips, tricks or hints would be much appreciated.  I will be happy
to share my findings if a solution is forthcoming.

All the best,
Jonathan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Form field validation when there is no model.

2008-05-06 Thread francky06l

It reminds me this thread :

http://groups.google.com/group/cake-php/browse_thread/thread/97a22aa593af6d18/5fd8ad915fb5a2dd#5fd8ad915fb5a2dd

On May 6, 10:31 pm, mustan9 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is it possible to use Cake's built in field validation rules for data
> submitted from a form, when there is no AppModel for that controller.
>
> For example; I have a controller that performs actions on a system
> service. So it has actions like start, stop, and submit job.
>
> I'd like to display a data entry form, and perform validation on the
> fields before I use the data in the controllers action.
>
> Is this possible?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Create function library [SOLVED]

2008-05-06 Thread Marcin Domanski
Try sluggable behavior from the bakery :)

On Tue, May 6, 2008 at 10:24 PM, francky06l <[EMAIL PROTECTED]> wrote:
>
>
>
>  On May 6, 10:17 pm, "Nicolás Andrade"
>
> <[EMAIL PROTECTED]> wrote:
>  > Done in the following way:
>  >
>  > 1-In model, created function NameToUrl where special characters and spaces
>  > are stripped.
>
>
> > Anyway, I was wondering where I must put my custom functions in CakePHP to
>  > be available through the entire app.
>
>  bootstrap.php
>
>
>
>
>  >
>



-- 
Marcin Domanski
http://kabturek.info

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Form field validation when there is no model.

2008-05-06 Thread mustan9

Hi,

Is it possible to use Cake's built in field validation rules for data
submitted from a form, when there is no AppModel for that controller.

For example; I have a controller that performs actions on a system
service. So it has actions like start, stop, and submit job.

I'd like to display a data entry form, and perform validation on the
fields before I use the data in the controllers action.

Is this possible?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Create function library [SOLVED]

2008-05-06 Thread francky06l



On May 6, 10:17 pm, "Nicolás Andrade"
<[EMAIL PROTECTED]> wrote:
> Done in the following way:
>
> 1-In model, created function NameToUrl where special characters and spaces
> are stripped.

> Anyway, I was wondering where I must put my custom functions in CakePHP to
> be available through the entire app.

bootstrap.php


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Create function library [SOLVED]

2008-05-06 Thread Nicolás Andrade
Done in the following way:

1-In model, created function NameToUrl where special characters and spaces
are stripped.
2-In TABLE, added field urlName
3-In controller, methods Save and Edit, after validation, added the
following line:


$this->data['Video']['urlName'] =
$this->Video->NameToUrl($this->data['Video']['track_title']);

And it works great.

Thanks for your time.



Anyway, I was wondering where I must put my custom functions in CakePHP to
be available through the entire app.

See ya!





On Tue, May 6, 2008 at 2:03 PM, Nicolás Andrade <
[EMAIL PROTECTED]> wrote:

> No, I did not. I did not even know about it; so I'll look for it and tell
> you what I've found.
>
>
> Thanks!!
>
> n.
>
>
> On Tue, May 6, 2008 at 2:01 PM, francky06l <[EMAIL PROTECTED]> wrote:
>
>>
>> Did you try the inflector class ? inflector::humanize, or
>> inflector::underscore  . Just a hint..
>>
>> hth
>>
>> On May 6, 6:52 pm, "Nicolás Andrade"
>> <[EMAIL PROTECTED]> wrote:
>> > Hi, I'm working in a project where are shown artists and songs.
>> >
>> > The following URL shows artist info and links to different videos, using
>> > Routes:
>> >
>> > http://videos.dev/artist/jamiroquai/
>> >
>> > What I did is define the route to searchByArtistName() and then I search
>> > using name field.
>> >
>> > Problem comes with, ie, "Rage Against The Machine", or worse than that,
>> > "Guns 'n roses"
>> >
>> > I need to create /artist/rage_against_the_machine/ and
>> > /artist/guns__n_roses/ for example.
>> >
>> > So would be nice to have a function UrlToName and NameToUrl where I can
>> code
>> > the String Replacements.
>> >
>> > Finally, the question:
>> >
>> > Where it must be, to be available in most of Controllers and Models and
>> so
>> > on, in a CakePHP way?
>> >
>> > Thanks in advance!
>> >
>> > n.
>> >>
>>
>
>
> --
> Nicolás Andrade
> www.nicoandra.com.ar
> www.treintaguita.com.ar




-- 
Nicolás Andrade
www.nicoandra.com.ar
www.treintaguita.com.ar

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Sending Newsletter problems

2008-05-06 Thread mbavio

Thanks guys for your recomendations.

> On Tue, May 6, 2008 at 4:52 PM, duRqoo <[EMAIL PROTECTED]> wrote:
> >  It's really strange that your emails size is growing, but one thing
> >  i've noticed from your code is that you are sending mails to each
> >  address separately. Try using $cc or $bcc attribute, so u can send
> >  same mail to more then one address at once. So get all addresses to an
> >  array assign them to $cc or $bcc variable and execute the send method
> >  just once, maybe that will help solve your issues in case you don't
> >  have any crazy text stacking loop in mail template :).

I´m sending one by one to have some kind of control of what mails are
sended and what others arent. If you look at the code, you will notice
that if the mail sends, the corresponding row of the Queue Table is
deleted. Also, the client wants that every suscriber of the Newsletter
receives the mail as it was personal, without cc or bcc.


On May 6, 12:01 pm, "Marcin Domanski" <[EMAIL PROTECTED]> wrote:
> I don't know the answer to your problem but you can look at swift
> mailer - they have some nice ways of sending mass emails.
> I've built a swift mailer sender on top of email component  but it was
> client work so unfortunately i cant share it :/
> there was a mass mailer component at devmoz.com afair

My intention was to use the component that Cake brings in its core.
However, I will take a look at the wsift mailer.

Lastly, I wanna told to you that I´ve solved the problem, the solution
aint beauty but seems like it´s working. I change the code and now
before every sent, I do $this->Email->reset() and load all the headers
and body of the email again. In this way, the size of the mail stills
the same in every sent.

Thanks again,
mbavio
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Aaron Shafovaloff

Well, the book does harness collective intelligence and collaboration,
but I personally think wikis do that best. In summary, I like the
flexibility of interlinking (I think that's what it's called), of
evolving large pages into smaller chunks, of categorizing pages, of
discussion areas attached to each page.

I think an online book serves somewhat a different purpose and has a
different structure than a wiki. A wiki's table of contents, for one,
are going to be more topical than progressive like a book's ToC. I
personally find book.cakephp.org's table of contents disorienting.
Maybe I'm just dense.

I probably don't have a solid philosophical presentation for my
preference of a wiki. It's really just that, a preference.

On May 6, 11:44 am, AD7six <[EMAIL PROTECTED]> wrote:
> On May 6, 7:38 pm, Aaron  Shafovaloff <[EMAIL PROTECTED]> wrote:
>
> > > The answer seems to be because some people believe that a wiki is the
> > > solution to all of mankind's problems.
>
> > You are correct. :-) I think wikis best harness the power of
> > collective intelligence and collaboration for projects like
> > documentation.
>
> In what way (pending enhancements aside) does the book not harness the
> power of collective intelligence and collaboration.
>
> AD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Something on the top of CakePHP

2008-05-06 Thread Marcin Domanski

On Tue, May 6, 2008 at 7:59 PM, Mariano Iglesias
<[EMAIL PROTECTED]> wrote:
>
>  Just because. Or what, am I supposed to conf you in everytime I make a call
>  to gwoo?
You know i can't be there for you Mariano every time you need a hug ;)

>  Who says that everything that Larry, Nate, Garret, and the rest of the
>  CakePHP team has to be 100% fully disclosed?
No it doesn't  - just a question why can't it be.

> Heck, you are being told what
>  goes on in the channel and you question why is it closed?
Now i feel guilty and its all because of YOU ! ;)




-- 
Marcin Domanski
http://kabturek.info

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



RE: Something on the top of CakePHP

2008-05-06 Thread Mariano Iglesias

Just because. Or what, am I supposed to conf you in everytime I make a call
to gwoo? 

Who says that everything that Larry, Nate, Garret, and the rest of the
CakePHP team has to be 100% fully disclosed? Heck, you are being told what
goes on in the channel and you question why is it closed? So what if it's
closed? 

Instead of questioning every single thing the cake team does, contribute
something and thank everyone who's dedicating their FREE-FREAKING time to
this project.

It's easy to demand things when you are not putting the time these guys have
been.

-MI

---

CakeFest: December, 2008 - Buenos Aires, Argentina - http://es.cakefest.org

blog: http://www.MarianoIglesias.com.ar
twitter: http://twitter.com/mgiglesias


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de Marcin Domanski
Enviado el: Martes, 06 de Mayo de 2008 01:54 p.m.
Para: cake-php@googlegroups.com
Asunto: Re: Something on the top of CakePHP

>  We do less talking about what is going on in CakePHP in the dev
>  channel than you would imagine. All the talking really happens on
>  Trac, so everyone is free to listen. In the dev channel we just make
>  poke fun at Nate, PhpNut, and sometimes Mariano.

Yeah so why is it closed ? there are other options like voice for core
etc, or even showing the logs.
If its just a place for friends to chat why is it called #cakephp.dev ? ;)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Something on the top of CakePHP

2008-05-06 Thread Marcin Domanski

>  Because we're friends who happen to have the common goal of
>  contributing to the development of CakePHP.  If you want to actively
>  work on something related to the project, you can join, too.

Ok nate now im worried.. whats up with those polite responses ?;)


-- 
Marcin Domanski
http://kabturek.info

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Something on the top of CakePHP

2008-05-06 Thread nate



On May 6, 12:54 pm, "Marcin Domanski" <[EMAIL PROTECTED]> wrote:
> On Tue, May 6, 2008 at 5:51 PM, Gwoo <[EMAIL PROTECTED]> wrote:
>
> >  > > It is not related to CakePHP support which is the mission of the group.
>
> >  We do less talking about what is going on in CakePHP in the dev
> >  channel than you would imagine. All the talking really happens on
> >  Trac, so everyone is free to listen. In the dev channel we just make
> >  poke fun at Nate, PhpNut, and sometimes Mariano.
>
> Yeah so why is it closed ? there are other options like voice for core
> etc, or even showing the logs.
> If its just a place for friends to chat why is it called #cakephp.dev ? ;)
>

Because we're friends who happen to have the common goal of
contributing to the development of CakePHP.  If you want to actively
work on something related to the project, you can join, too.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread AD7six



On May 6, 7:38 pm, Aaron  Shafovaloff <[EMAIL PROTECTED]> wrote:
> > The answer seems to be because some people believe that a wiki is the
> > solution to all of mankind's problems.
>
> You are correct. :-) I think wikis best harness the power of
> collective intelligence and collaboration for projects like
> documentation.

In what way (pending enhancements aside) does the book not harness the
power of collective intelligence and collaboration.

AD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Aaron Shafovaloff

> The answer seems to be because some people believe that a wiki is the
> solution to all of mankind's problems.

You are correct. :-) I think wikis best harness the power of
collective intelligence and collaboration for projects like
documentation.

Also, it it makes sense that CakePHP documentation be under the same
license at CakePHP itself.

Not trying to ruffle feathers or thumb my nose at anyone. I want to
see CakePHP succeed.

On May 6, 8:56 am, mbavio <[EMAIL PROTECTED]> wrote:
> This forking wiki has nothing to do with the attemp to fork CakePHP,
> or has it? Seems like we are under attack!
>
> On May 6, 11:50 am, John David Anderson <[EMAIL PROTECTED]>
> wrote:
>
> > On May 6, 2008, at 8:36 AM, Marcin Domanski wrote:
>
> > >>> Hey
> >  The content is owned by the Cake Software Foundation (...)
> > >>> Can you elaborate why is that ?
> > >>> Why not use GPL ? GFDL ? Creative Commons ?
> > >>> For me it's wierd that a community contributed documentation
> > >>> cannot be
> > >>> used by the community without an approval.
>
> > >> Mostly because we don't want 17 different copies of the content out
> > >> on
> > >> the web in different forms.
> > > Why don't you want that ? wikipedia is freely available and i don't
> > > see the problem where articles are available on other sites as long as
> > > people know its from wikipedia.
>
> > There's also *one* wikipedia. How many side wikipedia efforts are
> > flourishing?
>
> > > People know that the official docs are
> > > at cakephp.org.
>
> > I disagree. Besides, even if your assertion was true, what's the point
> > in creating parallel efforts? If everyone knows where to get it from
> > the source, why would they visit other efforts? We've battled this
> > problem before, especially with CakePHP sites in other languages.
> > People *don't* know, especially when they're introduced to us through
> > a non-official channel.
>
> > >> but the content in the manual is meant to be reviewed and contributed
> > >> to in an official setting.
> > > Yes but that doesn't really mean that the content couldn't be under
> > > GPL or whatever.
>
> > I think it does. What's the point of having a license like that when
> > we only want the content coming from one place?
>
> > >> What did you want to use it for?
> > > i didnt want to use it, but lets say - an in-house company cake
> > > course.
>
> > Feel free to reference or quote from it inside your course materials,
> > just like you would any other material.
>
> > > My point is:
> > > "It's weird that a community contributed documentation cannot be used
> > > by the community without an approval."
> > > I'm love you guys and i'm ok with the cookbook, i just think its not
> > > fair that community contributed docs aren't under an open license
> > >http://www.free-culture.cc/
>
> > I think the need to eliminate confusion is greater than the need for
> > open content. I still haven't even heard of a decent use case for
> > wanting to re-publish it. And if we did, I'd imagine we'd "grant
> > permission."
>
> > -- John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Marcin Domanski

>  Aren't the PHP docs mirrored instead of duplicated and updated independently?
Yeah it was me hijacking the thread. My concern was the openness of
the docs not creating a wiki or anything.
And php.net and djangobook was an example of docs on free license.
As a general rule i like the things i write to be as open/freely
avaible as possible.
OFC it's not possible with everything (client work etc).

>  I might be grumpy,
You know you are Chris ;)

>  I just wish people would be honest with their reasons for wanting to
>  do these sort of things.
same here.




-- 
Marcin Domanski
http://kabturek.info

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Missing PaginatorHelper Method in View

2008-05-06 Thread Cheeze

On May 7, 12:37 am, Gwoo <[EMAIL PROTECTED]> wrote:
> The PaginatorHelper is added automatically when you call
> Controller::paginate(). So, since you have it wrapped in a control
> structure it is not always called. For your case, adding it to the
> helpers array would solve your issues.

Believe me, I've tried that. I put the below in app_controller.php
first and products_controller.php second to no avail.

var $helpers = array('Html', 'Form', 'Paginator');


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Ajax + JS (unobtrusive date picker)

2008-05-06 Thread Cake Fan

Working with cakephp 1.2 here.  I have a somewhat simple problem that
I can't seem to resolve with what I've found so far in the GG's..

I have a simple page that submits a "task" via AJAX.  This form
contains the unobtrusive date picker (http://bakery.cakephp.org/
articles/view/using-the-unobtrusive-date-picker-widget-in-cakephp).

-
Layout header contains the necessary JS:
link('scriptaculous/protoculous-packer.js');
echo $javascript->link('datepicker/datepicker.js');
}
?>
-
The view looks something like this [add_task.ctp]:

form(array('action' => '/Tasks/addTask'), 'post',
array('update' => 'task')); ?>

input('text', array('label' => false)); ?>
 input('Task/dateOnly', array('size' => '15',
'class' => 'w8em format-m-d-y divider-dash highlight-days-12 no-
transparency', 'label' => false));?>
 hour('Task/time'); ?>
 minute('Task/minute'); ?>
 meridian('Task/meridian'); ?>
input('category', array('label' => false)); ?>

submit('Add Task'); ?>


-

The ajax view looks like this [ajax_add_task.ctp]:

input('text', array('label' => false)); ?>
 input('Task/dateOnly', array('size' => '15',
'class' => 'w8em format-m-d-y divider-dash highlight-days-12 no-
transparency', 'label' => false));?>
 hour('Task/time'); ?>
 minute('Task/minute'); ?>
 meridian('Task/meridian'); ?>
input('category', array('label' => false)); ?>

submit('Add Task'); ?>
-

The initial page load of the above code works just fine.  The
datepicker shows up just fine and all is well.  When the form submits
(via ajax), I want it to add the task and then return the same fields
again... so the user can add many task quickly and easily.

However, when the form comes back after the ajax call, the datepicker
piece is missing.  I understand this has to do with the fact that the
the original datepicker JS isn't being executed when the we do an ajax
layout, so I probably need to use the 'onComplete' ajax option to
restart the script again.  However, I can't get the onComplete to work
at all.  It never fires off anything (I even just tried basic
alerts).

I was using the following context:
form(array('action' => '/Tasks/addTask'), 'post',
array('update' => 'task', 'onComplete' => "alert('test');")); ?>

When the ajax task completes, nothing happens (the alert doesn't show
up in the source code anywhere).

Also, I tried simply including the datepicker.js file in the ajax view
itself as well (thinking it might be executed), but no luck there
either.


Any ideas would be greatly appreciated!

- Cake Fan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Create function library

2008-05-06 Thread Nicolás Andrade
No, I did not. I did not even know about it; so I'll look for it and tell
you what I've found.


Thanks!!

n.

On Tue, May 6, 2008 at 2:01 PM, francky06l <[EMAIL PROTECTED]> wrote:

>
> Did you try the inflector class ? inflector::humanize, or
> inflector::underscore  . Just a hint..
>
> hth
>
> On May 6, 6:52 pm, "Nicolás Andrade"
> <[EMAIL PROTECTED]> wrote:
> > Hi, I'm working in a project where are shown artists and songs.
> >
> > The following URL shows artist info and links to different videos, using
> > Routes:
> >
> > http://videos.dev/artist/jamiroquai/
> >
> > What I did is define the route to searchByArtistName() and then I search
> > using name field.
> >
> > Problem comes with, ie, "Rage Against The Machine", or worse than that,
> > "Guns 'n roses"
> >
> > I need to create /artist/rage_against_the_machine/ and
> > /artist/guns__n_roses/ for example.
> >
> > So would be nice to have a function UrlToName and NameToUrl where I can
> code
> > the String Replacements.
> >
> > Finally, the question:
> >
> > Where it must be, to be available in most of Controllers and Models and
> so
> > on, in a CakePHP way?
> >
> > Thanks in advance!
> >
> > n.
> >
>


-- 
Nicolás Andrade
www.nicoandra.com.ar
www.treintaguita.com.ar

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Create function library

2008-05-06 Thread francky06l

Did you try the inflector class ? inflector::humanize, or
inflector::underscore  . Just a hint..

hth

On May 6, 6:52 pm, "Nicolás Andrade"
<[EMAIL PROTECTED]> wrote:
> Hi, I'm working in a project where are shown artists and songs.
>
> The following URL shows artist info and links to different videos, using
> Routes:
>
> http://videos.dev/artist/jamiroquai/
>
> What I did is define the route to searchByArtistName() and then I search
> using name field.
>
> Problem comes with, ie, "Rage Against The Machine", or worse than that,
> "Guns 'n roses"
>
> I need to create /artist/rage_against_the_machine/ and
> /artist/guns__n_roses/ for example.
>
> So would be nice to have a function UrlToName and NameToUrl where I can code
> the String Replacements.
>
> Finally, the question:
>
> Where it must be, to be available in most of Controllers and Models and so
> on, in a CakePHP way?
>
> Thanks in advance!
>
> n.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: requestAction inside elements creates a Stack Overflow

2008-05-06 Thread Sliv

Well, requestAction can be costly, perhaps that is what you are
running into.  You may want to try creating a method in your model
that binds the necessary associations and returns the data you want to
the controller.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Something on the top of CakePHP

2008-05-06 Thread Marcin Domanski

On Tue, May 6, 2008 at 5:51 PM, Gwoo <[EMAIL PROTECTED]> wrote:
>
>  >
>  > For me censorship is not the solution. Good thing its a mailing list
>  > and people don't have to look at it on the GGroup interface.
>
>  I do not believe in censorship either, which is why i left the thread
>  open. I was looking for some reaction and if people consider it
>  helpful then I will leave it hear. I just hope it is not noise for the
>  larger group.
It is noise but it's noise that one would rather read and have an opinion :)

>
>  >
>  > > It is not related to CakePHP support which is the mission of the group.
>  >
>  > so where can we talk about where cake is heading ? what is developed in 
> cake ?
>  > As far as i like helping people here (still i prefer #cakephp) i
>  > thought it was a general-purpose mailing list. Are there any other
>  > created for that purpose?
>  > I know there is a #cakephp.dev  - why is it password protected then?
>
>  #cakephp is the place to talk about what is developed. If you plan on
>  working on tickets then #cakephp-dev is open to those who want to
>  actively contribute.
stil some people don't hang out @ #cakephp and do on #cakephp.doc :)


>  We do less talking about what is going on in CakePHP in the dev
>  channel than you would imagine. All the talking really happens on
>  Trac, so everyone is free to listen. In the dev channel we just make
>  poke fun at Nate, PhpNut, and sometimes Mariano.
Yeah so why is it closed ? there are other options like voice for core
etc, or even showing the logs.
If its just a place for friends to chat why is it called #cakephp.dev ? ;)

>
>  >
>  > Apart from that i would agree with Tarique.
>
>  Too bad, but I hold out hope that you can change your mind.
i hope you can convince me @ Argentina ... or maybe Felix can do
something in Germany @ October (its a good time to visit Germany ;)
http://static.twoday.net/mahalanobis/images/octoberfest.jpg

-- 
Marcin Domanski
http://kabturek.info

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: requestAction inside elements creates a Stack Overflow

2008-05-06 Thread alxlevin

Ok, I've added a bindModel to just before the find call I wanted to
make on the ProfileMedia model.  This works without crashing.  Is this
a cake bug here?  As mentioned way back at the beginnning of the
thread, I'm running CakePHP 1.2.0.6311 Beta.

On May 6, 12:41 pm, alxlevin <[EMAIL PROTECTED]> wrote:
> Same result:
> PHP has encountered a Stack overflow
>
> I'm not sure if it's just my inexperience with Cake.  Given an array
> of ProfileMedias, I need to get an array of Contests.  As far as I can
> tell, this is the appropriate way of doing this.  Please let me know
> though if I'm off base here.
>
> On May 6, 12:32 pm, Sliv <[EMAIL PROTECTED]> wrote:
>
>
>
> > Have you tried commenting out the $recursion var?- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Create function library

2008-05-06 Thread Nicolás Andrade
Hi, I'm working in a project where are shown artists and songs.

The following URL shows artist info and links to different videos, using
Routes:

http://videos.dev/artist/jamiroquai/


What I did is define the route to searchByArtistName() and then I search
using name field.

Problem comes with, ie, "Rage Against The Machine", or worse than that,
"Guns 'n roses"

I need to create /artist/rage_against_the_machine/ and
/artist/guns__n_roses/ for example.



So would be nice to have a function UrlToName and NameToUrl where I can code
the String Replacements.


Finally, the question:

Where it must be, to be available in most of Controllers and Models and so
on, in a CakePHP way?


Thanks in advance!


n.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: requestAction inside elements creates a Stack Overflow

2008-05-06 Thread alxlevin

Same result:
PHP has encountered a Stack overflow

I'm not sure if it's just my inexperience with Cake.  Given an array
of ProfileMedias, I need to get an array of Contests.  As far as I can
tell, this is the appropriate way of doing this.  Please let me know
though if I'm off base here.

On May 6, 12:32 pm, Sliv <[EMAIL PROTECTED]> wrote:
> Have you tried commenting out the $recursion var?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Missing PaginatorHelper Method in View

2008-05-06 Thread Gwoo

The PaginatorHelper is added automatically when you call
Controller::paginate(). So, since you have it wrapped in a control
structure it is not always called. For your case, adding it to the
helpers array would solve your issues.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: requestAction inside elements creates a Stack Overflow

2008-05-06 Thread Sliv

Have you tried commenting out the $recursion var?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: requestAction inside elements creates a Stack Overflow

2008-05-06 Thread alxlevin

Ok, I'm pretty sure that I've got it narrowed down to not being the
environment.  I think it has something to do with the
hasAndBelongsToManyRelationship I defined for the model used in the
first element.  Please keep in mind that this exact same element does
in fact work on other pages.  I have a similar declaration in the
Contest model, and that code seems to all be working properly.  Here
is the code:

//app/plugins/profile/models/profile_media.php
var $name = 'ProfileMedia';
var $recursion = -1;

var $hasAndBelongsToMany = array(
  'Contest' =>
array('className'   => 'Contest',
'joinTable' => 'contests_profilemedias',
'foreignKey'=> 'profileMedia_id',
'fields'=> array('Contest.id', 'Contest.name',
'Contest.short_description',
'Contest.graphics_folder',
'Contest.thumbnail_filename'),
'uniq'  => true
)
);

On May 6, 9:51 am, Sliv <[EMAIL PROTECTED]> wrote:
> Well, I don't want to mislead you, but I would try doing the ol'
> "comment everything and backstep"... also try setting debug to 0 to
> see if there's any different result.  My point was just that these
> kinds of things I think are like segmentation faults where you try to
> find a problem in the code and realize it's an issue with the PHP
> compile, but I could be wrong. Often it's worth setting up a vmware
> LAMP environment to have on hand just to rule out the environment in
> such a scenario.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: SQL error when adding item using the scaffolding

2008-05-06 Thread benjam

Because it is still an issue, and has not been fixed yet.



On May 5, 2:59 pm, AD7six <[EMAIL PROTECTED]> wrote:
> benjam wrote:
> > My thinking is that it's a cake problem.
>
> Why are you resurrecting this old thread.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Something on the top of CakePHP

2008-05-06 Thread Gwoo



On May 6, 8:57 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> Someday we will meet and talk about semantics and winning debater's points
> :)

CakeFest Argentina, Dec 2-5.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Missing PaginatorHelper Method in View

2008-05-06 Thread Cheeze

On May 6, 9:43 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Tue, May 6, 2008 at 9:41 AM, Cheeze <[EMAIL PROTECTED]> wrote:
>
> >  I've tried to use my application on different servers and all gave the
> >  same result.
>
> >  Can anyone provide some advise on how I can proceed to debug this?
>
> Paste your code intohttp://bin.cakephp.org
>
> --
> Chris Hartjes
> Internet Loudmouth
> Motto for 2008: "Moving from herding elephants to handling snakes..."
> @TheKeyBoard:http://www.littlehart.net/atthekeyboard

Thanks for replying, Chris. Much appreciated.

The code for products_controller and its view are at
http://bin.cakephp.org/view/801713435

I assume the model is not important so I didn't paste it there.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Something on the top of CakePHP

2008-05-06 Thread Dr. Tarique Sani
On Tue, May 6, 2008 at 9:02 PM, Gwoo <[EMAIL PROTECTED]> wrote:

> I point you to a definition..."Communism is a socioeconomic
> structure that promotes the establishment of a classless, stateless
> society based on common ownership of the means of production.[1]".
> Now, if you had said "Altruism [2] failed" I might have listened a
> little harder to what you had to say.
>

Someday we will meet and talk about semantics and winning debater's points
:)

I object to the classless, stateless and common ownership parts as well but
elaborating here would mean being terribly off topic. So /me 0 You 1 - EOT
for me

Tarique

-- 
=
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
=

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Something on the top of CakePHP

2008-05-06 Thread Gwoo

>
> For me censorship is not the solution. Good thing its a mailing list
> and people don't have to look at it on the GGroup interface.

I do not believe in censorship either, which is why i left the thread
open. I was looking for some reaction and if people consider it
helpful then I will leave it hear. I just hope it is not noise for the
larger group.

>
> > It is not related to CakePHP support which is the mission of the group.
>
> so where can we talk about where cake is heading ? what is developed in cake ?
> As far as i like helping people here (still i prefer #cakephp) i
> thought it was a general-purpose mailing list. Are there any other
> created for that purpose?
> I know there is a #cakephp.dev  - why is it password protected then?

#cakephp is the place to talk about what is developed. If you plan on
working on tickets then #cakephp-dev is open to those who want to
actively contribute.


> it wasn't a _long_ time 
> ago:https://svn.cakephp.org/repo/whiteboard/misc/dev_meeting/Log-2005-08-...
> ie - anyone could join but only 'core' had voice. Also the logs from
> dev aren't visible too...

We do less talking about what is going on in CakePHP in the dev
channel than you would imagine. All the talking really happens on
Trac, so everyone is free to listen. In the dev channel we just make
poke fun at Nate, PhpNut, and sometimes Mariano.

>
> Apart from that i would agree with Tarique.

Too bad, but I hold out hope that you can change your mind.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Chris Hartjes

On Tue, May 6, 2008 at 11:34 AM, Marcin Domanski <[EMAIL PROTECTED]> wrote:
>  Why isn't that a problem for php docs ? djangobook.com ?

Aren't the PHP docs mirrored instead of duplicated and updated independantly?

I might be grumpy, but on this issue I feel meh.  If people want to go
and create your own CakePHP wiki and maintain it and keep it in sync
with all the changes, then who am I to stand in their way?  People
shovel sand into the ocean all the time.

If they can do a better job than the current resources, and they don't
want to contribute to the official effort, again, what can be done to
stop them?  Nothing.

I just wish people would be honest with their reasons for wanting to
do these sort of things.  The core dev group is not the little elitist
cabal that people seem to think it is.

-- 
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Marcin Domanski

[snip]
>  > Why don't you want that ? wikipedia is freely available and i don't
>  > see the problem where articles are available on other sites as long as
>  > people know its from wikipedia.
>
>  There's also *one* wikipedia. How many side wikipedia efforts are
>  flourishing?
There are sites (ex. music sites) that show artist info from wikipedia
when playing the artist song.

>
>  > People know that the official docs are
>  > at cakephp.org.
>
>  I disagree. Besides, even if your assertion was true, what's the point
>  in creating parallel efforts? If everyone knows where to get it from
>  the source, why would they visit other efforts? We've battled this
>  problem before, especially with CakePHP sites in other languages.
>  People *don't* know, especially when they're introduced to us through
>  a non-official channel.
>
>  >> but the content in the manual is meant to be reviewed and contributed
>  >> to in an official setting.
>  > Yes but that doesn't really mean that the content couldn't be under
>  > GPL or whatever.
>
>  I think it does. What's the point of having a license like that when
>  we only want the content coming from one place?
Why isn't that a problem for php docs ? djangobook.com ?

>
>  >> What did you want to use it for?
>  > i didnt want to use it, but lets say - an in-house company cake
>  > course.
>
>  Feel free to reference or quote from it inside your course materials,
>  just like you would any other material.
ok and if i would like to include whole chapters of the manual in the
course and print it for 20 employees?
And i would probably contribute back my efforts to the manual and
share the course without the community.

Another use case:
if i write something on the book and want to additionally publish it
on a blog is it possible without the CSF approval ?

>
>  > My point is:
>  > "It's weird that a community contributed documentation cannot be used
>  > by the community without an approval."
>  > I'm love you guys and i'm ok with the cookbook, i just think its not
>  > fair that community contributed docs aren't under an open license
>  > http://www.free-culture.cc/
>
>  I think the need to eliminate confusion is greater than the need for
>  open content.
Yeah so we disagree here :)



-- 
Marcin Domanski
http://kabturek.info

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Something on the top of CakePHP

2008-05-06 Thread Gwoo

>
> FWIW - I differ here - a prime motivator for writing open source is
> "scratching your own itch"

I have no problem with scratching your own itch if it also has
application to the greater community. For instance, I have been
working on an Actionscript project that I wanted to get up on Ohloh.
Ohloh did not support Actionscript or Mxml in their code analyzer.
There was a ticket that was open for over 3 months, but no one had
contributed. Since I wanted it, I setup ruby and git, checked out the
source and a few hours later contributed Actionscript and Mxml
support. This is a good example of where a selfish reason can have a
beneficial effect on the greater community. At the same time since I
had everything setup I contributed a few more patches that did not
directly affect me.

>
> > Contributors look first to help the community and
> > only in that way do they expect to be helping themselves.
>
> Communism failed! and open source is definitely as much about the
> *individual*  as the community. Open Source licenses always respect and
> acknowledge the rights of the individual developers and contributors.
> Looking first to help the community is bull!

Yes, I am idealistic, maybe to a fault. In my mind, you have ask a lot
of people to get a little. So, I ask people to be better than they
normally would be in the hopes that we can all improve. With this in
mind, I point you to a definition..."Communism is a socioeconomic
structure that promotes the establishment of a classless, stateless
society based on common ownership of the means of production.[1]".
Now, if you had said "Altruism [2] failed" I might have listened a
little harder to what you had to say.

[1] http://en.wikipedia.org/wiki/Communism
[2] http://en.wikipedia.org/wiki/Altruism
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Mass edit in CakePHP?

2008-05-06 Thread [EMAIL PROTECTED]

I recommended using ajax because you wouldn't have to access the
database as much. From the way you describe, it sounds like there will
be many records displayed at the same time on one page. Without Ajax,
each time you submitted, you would have to re-query the data from all
the records on the page instead of just the one that you saved. You
could certainly do it without ajax though.

When you ask if this can be applicable for several models, I'm not
sure what you mean. If you mean that you want multiple models on the
same page, this is easily done. If you mean you want to have the same
view for multiple models you can do this as well, but I'd suggest
creating new views for each model just to keep the code less
complicated. I don't think that you would need to define a behavior or
helper for this.

If I understand you correctly, I don't think the updateAll function
will work for your needs. UpdateAll is great if you want to update all
records with the same data (ie, you have an input field and want the
data submitted with this field to be placed in several different
records) but if you want each record to have independent data, this
won't work.

Also, If you will be often adding new fields I would go with
the_woodsman's suggestion above. Although it's possible to add
physical fields to a database, RDBMS systems like MySQL aren't really
designed to be used this way. Do some data normalization, define a new
table with the following fields: "fieldname, fieldvalue, row_id" and
create a hasMany relationship between it and your model. Whenever you
want to add a new field, insert data into this table with the field
name, value and the row record id that it is associated with. To find
all fields that have already been added, do a query on this table with
GROUP BY fieldname, you can then generate input boxes for each one in
your view and populate them with any existing data. This will be much
easier than actually changing the structure of your database whenever
you want to add a new field.

Dave

On May 6, 8:47 am, SumanRS <[EMAIL PROTECTED]> wrote:
> Thanks, this is along the lines of what I am looking for.
>
> Why AJAX though? Is it possible for me to list all rows and have an
> editable textfield for only the new field I added? If so, would
> updateAll() work as in grigri's idea?
>
> Also, if I wanted to make this applicable for several models, would I
> have to make this a Behavior (or Helper)? Is it even possible to do
> so, given the scenario I outlined?
>
> Sorry for confusing with the Excel-export idea, I was just suggesting
> that saying it sounded easier to me than writing this sort of code. I
> would like to do it in native CakePHP, if possible, especially since I
> am going to end up with several such tables soon. :)
>
> Thanks,
> SumanRS
>
> On Apr 29, 5:20 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > Hmm, I'm not sure updateAll will work in this case. It will work fine
> > if you want to update all rows with the same data but not otherwise.
> > If you want it to behave more like excel, where you can edit all
> > fields of all rows (or at least paginated rows) here's what I'd do:
>
> > 1) Select all rows in your controller
> > 2) In your view, inside a foreach($results as $result) loop generate a
> > new ajax form for each row in your results. with input fields for each
> > field in that particular row.
> > 3) here, you can do a couple things: 1) generate a separate ajax
> > button for each form that submits to an update function that saves
> > that particular row and refreshes the row's div. OR 2) to make it more
> > like excel, make the ajax button hidden (ie display none) and put in a
> > javascript function that submits the ajax button during the onChange
> > of each field in the row. sort of an "Autosave" feature.
>
> > OR
>
> > you could generate inputs for each field incremently named (ie
> > name="Model.1.someField", name="Model.1.anotherField"  name
> > ="Model.2.someField", name="Model.2.anotherField" etc) and submit all
> > data with the same button and then in your controller go through your
> > data with a foreach loop and save each one ( foreach($this-
>
> > >data["Model"] as $model){$this->Model->save($model)} )
>
> > On Apr 29, 10:53 am, grigri <[EMAIL PROTECTED]> wrote:
>
> > > $this->YourModel->updateAll(array('new_field' => 'new_value'),
> > > array('1=1'));
>
> > > Note that you'll have to quote/escape the value yourself.
>
> > > On Apr 29, 4:27 pm,SumanRS<[EMAIL PROTECTED]> wrote:
>
> > > > Hi,
>
> > > > I've been using CakePHP for creating an online version of a listing
> > > > that has long been maintained using Excel. There are several hundred
> > > > rows in this table.
>
> > > > However, one thing where the Excel UI wins is in allowing a new field
> > > > (column) to be added. After that, it is easy to update the field for
> > > > all rows. If I wanted to do this in Cake, I would have to click "Edit"
> > > > on each row and edit the value for the field for e

Re: tempdocs.cakephp.org

2008-05-06 Thread Sliv

It is my understanding that tempdocs.cakephp.org will soon be a
redirect to the cookbook, so that those who are unaware of the
completed migration will not have a dead link.  Stay tuned...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Sending Newsletter problems

2008-05-06 Thread Marcin Domanski
I don't know the answer to your problem but you can look at swift
mailer - they have some nice ways of sending mass emails.
I've built a swift mailer sender on top of email component  but it was
client work so unfortunately i cant share it :/
there was a mass mailer component at devmoz.com afair

On Tue, May 6, 2008 at 4:52 PM, duRqoo <[EMAIL PROTECTED]> wrote:
>
>  Hello, i've was solving similar functionality not so far ago, but it
>  worked without problems.
>
>  It's really strange that your emails size is growing, but one thing
>  i've noticed from your code is that you are sending mails to each
>  address separately. Try using $cc or $bcc attribute, so u can send
>  same mail to more then one address at once. So get all addresses to an
>  array assign them to $cc or $bcc variable and execute the send method
>  just once, maybe that will help solve your issues in case you don't
>  have any crazy text stacking loop in mail template :).
>
>  Note: You will have to split mail addresses to smaller array parts and
>  send those through loop anyway. Depends on mail server restrictions
>  how many CC or BCC addresses are allowed for one mail, otherwise you
>  will get 'to many recipients' error.
>
>  Cheers, hope it helps.
>  duRqoo
>
>
>  On 6. Máj, 15:55 h., mbavio <[EMAIL PROTECTED]> wrote:
>  > Hi bakers, I have a little problem and I cant fint a decent solution,
>  > so I thought that here someone would delight me with some brilliant
>  > solution...
>  >
>  > I´m sending massive mails (Newsletter) to about 300 people. After the
>  > first sent, some users complained that the mail was producing an
>  > Outlook error of memory, and they cant open the email.  After that, I
>  > tested the app sending the Newsletter to my email boxes, in a massive
>  > way. After doing that, I´ve seen that the email size increases after
>  > every sent. First I have mails of 18kb, and the last mails are about
>  > 50kb. I´m going to show my code now:
>  >
>  > function sendEmails(){
>  > set_time_limit(0);
>  > $this->edition = $this->Mail->whatNewsIs();
>  > $this->newsData = 
> $this->Mail->Newsletter->getNewsData($this->edition);
>  >
>  > $sends = $this->Mail->find('all', array('order' => 
> 'Mail.id ASC',
>  > 'limit' => $this->limit, 'restrict' => array('Mail')));
>  > $this->Email->replyTo = 'Acep News <[EMAIL 
> PROTECTED]>';
>  > $this->Email->from = "Acep News <[EMAIL PROTECTED]>";
>
> > $this->Email->sendAs = 'html';
>  > $this->Email->template = 'newsletter';
>  > $this->Email->layout = 'newsletter';
>  > $this->set('edition', $this->edition);
>  > $this->set('narticles', $this->newsData);
>  > if(!empty($sends)):
>  > foreach ($sends as $send):
>  > if ($send['Mail']['newsletter_id'] != 
> $this->edition) {
>  > 
> $this->_changeNew($send['Mail']['newsletter_id']);
>  > }
>  > $this->Email->subject = 'Newsletter 
> Edición ' . $this->edition;
>  > $this->Email->to = $send['Mail']['email'];
>  >
>  > if($this->Email->send())
>  > 
> $this->Mail->del($send['Mail']['id']);
>  >
>  > endforeach;
>  >
>  > $this->Email->reset();
>  > $this->Email->to = "[EMAIL PROTECTED]";
>
> > $this->Email->subject = "Tiempo tardado";
>  > $this->Email->from = "AcepNews <[EMAIL 
> PROTECTED]>";
>
>
> > $this->Email->template = null;
>  > $this->Email->sendAs = 'text';
>  > $content = date('d-m-Y H:i:s');
>  > $this->Email->send($content, null, null);
>  >
>  > endif;
>  > }
>  >
>  > As you can see, I´m using template and layout, and no, I havent proved
>  > yet to send the mail without the use of template and layout.
>  >
>  > Well, anybody has been in some similar situation? Any kind of help is
>  > apreciated.
>  >
>  > Thanks!
>  > mbavio
>  >
>



-- 
Marcin Domanski
http://kabturek.info

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread mbavio

This forking wiki has nothing to do with the attemp to fork CakePHP,
or has it? Seems like we are under attack!

On May 6, 11:50 am, John David Anderson <[EMAIL PROTECTED]>
wrote:
> On May 6, 2008, at 8:36 AM, Marcin Domanski wrote:
>
>
>
> >>> Hey
>  The content is owned by the Cake Software Foundation (...)
> >>> Can you elaborate why is that ?
> >>> Why not use GPL ? GFDL ? Creative Commons ?
> >>> For me it's wierd that a community contributed documentation
> >>> cannot be
> >>> used by the community without an approval.
>
> >> Mostly because we don't want 17 different copies of the content out
> >> on
> >> the web in different forms.
> > Why don't you want that ? wikipedia is freely available and i don't
> > see the problem where articles are available on other sites as long as
> > people know its from wikipedia.
>
> There's also *one* wikipedia. How many side wikipedia efforts are
> flourishing?
>
> > People know that the official docs are
> > at cakephp.org.
>
> I disagree. Besides, even if your assertion was true, what's the point
> in creating parallel efforts? If everyone knows where to get it from
> the source, why would they visit other efforts? We've battled this
> problem before, especially with CakePHP sites in other languages.
> People *don't* know, especially when they're introduced to us through
> a non-official channel.
>
> >> but the content in the manual is meant to be reviewed and contributed
> >> to in an official setting.
> > Yes but that doesn't really mean that the content couldn't be under
> > GPL or whatever.
>
> I think it does. What's the point of having a license like that when
> we only want the content coming from one place?
>
> >> What did you want to use it for?
> > i didnt want to use it, but lets say - an in-house company cake
> > course.
>
> Feel free to reference or quote from it inside your course materials,
> just like you would any other material.
>
> > My point is:
> > "It's weird that a community contributed documentation cannot be used
> > by the community without an approval."
> > I'm love you guys and i'm ok with the cookbook, i just think its not
> > fair that community contributed docs aren't under an open license
> >http://www.free-culture.cc/
>
> I think the need to eliminate confusion is greater than the need for
> open content. I still haven't even heard of a decent use case for
> wanting to re-publish it. And if we did, I'd imagine we'd "grant
> permission."
>
> -- John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Mass edit in CakePHP?

2008-05-06 Thread SumanRS

Thanks, this is along the lines of what I am looking for.

Why AJAX though? Is it possible for me to list all rows and have an
editable textfield for only the new field I added? If so, would
updateAll() work as in grigri's idea?

Also, if I wanted to make this applicable for several models, would I
have to make this a Behavior (or Helper)? Is it even possible to do
so, given the scenario I outlined?

Sorry for confusing with the Excel-export idea, I was just suggesting
that saying it sounded easier to me than writing this sort of code. I
would like to do it in native CakePHP, if possible, especially since I
am going to end up with several such tables soon. :)

Thanks,
SumanRS


On Apr 29, 5:20 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hmm, I'm not sure updateAll will work in this case. It will work fine
> if you want to update all rows with the same data but not otherwise.
> If you want it to behave more like excel, where you can edit all
> fields of all rows (or at least paginated rows) here's what I'd do:
>
> 1) Select all rows in your controller
> 2) In your view, inside a foreach($results as $result) loop generate a
> new ajax form for each row in your results. with input fields for each
> field in that particular row.
> 3) here, you can do a couple things: 1) generate a separate ajax
> button for each form that submits to an update function that saves
> that particular row and refreshes the row's div. OR 2) to make it more
> like excel, make the ajax button hidden (ie display none) and put in a
> javascript function that submits the ajax button during the onChange
> of each field in the row. sort of an "Autosave" feature.
>
> OR
>
> you could generate inputs for each field incremently named (ie
> name="Model.1.someField", name="Model.1.anotherField"  name
> ="Model.2.someField", name="Model.2.anotherField" etc) and submit all
> data with the same button and then in your controller go through your
> data with a foreach loop and save each one ( foreach($this-
>
> >data["Model"] as $model){$this->Model->save($model)} )
>
> On Apr 29, 10:53 am, grigri <[EMAIL PROTECTED]> wrote:
>
> > $this->YourModel->updateAll(array('new_field' => 'new_value'),
> > array('1=1'));
>
> > Note that you'll have to quote/escape the value yourself.
>
> > On Apr 29, 4:27 pm,SumanRS<[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > I've been using CakePHP for creating an online version of a listing
> > > that has long been maintained using Excel. There are several hundred
> > > rows in this table.
>
> > > However, one thing where the Excel UI wins is in allowing a new field
> > > (column) to be added. After that, it is easy to update the field for
> > > all rows. If I wanted to do this in Cake, I would have to click "Edit"
> > > on each row and edit the value for the field for each row.
>
> > > One way I can think of solving this is:
> > > 1. Export the CakePHP values to a CSV
> > > 2. Edit the CSV in Excel
> > > 3. Write PHP to open the edited CSV and update the fields (I've done
> > > this before)
>
> > > Is there a way to do this natively (and easily) in CakePHP?
>
> > > Thanks,
> > >SumanRS

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Sending Newsletter problems

2008-05-06 Thread duRqoo

Hello, i've was solving similar functionality not so far ago, but it
worked without problems.

It's really strange that your emails size is growing, but one thing
i've noticed from your code is that you are sending mails to each
address separately. Try using $cc or $bcc attribute, so u can send
same mail to more then one address at once. So get all addresses to an
array assign them to $cc or $bcc variable and execute the send method
just once, maybe that will help solve your issues in case you don't
have any crazy text stacking loop in mail template :).

Note: You will have to split mail addresses to smaller array parts and
send those through loop anyway. Depends on mail server restrictions
how many CC or BCC addresses are allowed for one mail, otherwise you
will get 'to many recipients' error.

Cheers, hope it helps.
duRqoo

On 6. Máj, 15:55 h., mbavio <[EMAIL PROTECTED]> wrote:
> Hi bakers, I have a little problem and I cant fint a decent solution,
> so I thought that here someone would delight me with some brilliant
> solution...
>
> I´m sending massive mails (Newsletter) to about 300 people. After the
> first sent, some users complained that the mail was producing an
> Outlook error of memory, and they cant open the email.  After that, I
> tested the app sending the Newsletter to my email boxes, in a massive
> way. After doing that, I´ve seen that the email size increases after
> every sent. First I have mails of 18kb, and the last mails are about
> 50kb. I´m going to show my code now:
>
> function sendEmails(){
> set_time_limit(0);
> $this->edition = $this->Mail->whatNewsIs();
> $this->newsData = 
> $this->Mail->Newsletter->getNewsData($this->edition);
>
> $sends = $this->Mail->find('all', array('order' => 
> 'Mail.id ASC',
> 'limit' => $this->limit, 'restrict' => array('Mail')));
> $this->Email->replyTo = 'Acep News <[EMAIL 
> PROTECTED]>';
> $this->Email->from = "Acep News <[EMAIL PROTECTED]>";
> $this->Email->sendAs = 'html';
> $this->Email->template = 'newsletter';
> $this->Email->layout = 'newsletter';
> $this->set('edition', $this->edition);
> $this->set('narticles', $this->newsData);
> if(!empty($sends)):
> foreach ($sends as $send):
> if ($send['Mail']['newsletter_id'] != 
> $this->edition) {
> 
> $this->_changeNew($send['Mail']['newsletter_id']);
> }
> $this->Email->subject = 'Newsletter Edición ' 
> . $this->edition;
> $this->Email->to = $send['Mail']['email'];
>
> if($this->Email->send())
> $this->Mail->del($send['Mail']['id']);
>
> endforeach;
>
> $this->Email->reset();
> $this->Email->to = "[EMAIL PROTECTED]";
> $this->Email->subject = "Tiempo tardado";
> $this->Email->from = "AcepNews <[EMAIL PROTECTED]>";
> $this->Email->template = null;
> $this->Email->sendAs = 'text';
> $content = date('d-m-Y H:i:s');
> $this->Email->send($content, null, null);
>
> endif;
> }
>
> As you can see, I´m using template and layout, and no, I havent proved
> yet to send the mail without the use of template and layout.
>
> Well, anybody has been in some similar situation? Any kind of help is
> apreciated.
>
> Thanks!
> mbavio
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread John David Anderson


On May 6, 2008, at 8:36 AM, Marcin Domanski wrote:

>
>>> Hey
 The content is owned by the Cake Software Foundation (...)
>>> Can you elaborate why is that ?
>>> Why not use GPL ? GFDL ? Creative Commons ?
>>> For me it's wierd that a community contributed documentation  
>>> cannot be
>>> used by the community without an approval.
>>
>> Mostly because we don't want 17 different copies of the content out  
>> on
>> the web in different forms.
> Why don't you want that ? wikipedia is freely available and i don't
> see the problem where articles are available on other sites as long as
> people know its from wikipedia.

There's also *one* wikipedia. How many side wikipedia efforts are  
flourishing?

> People know that the official docs are
> at cakephp.org.

I disagree. Besides, even if your assertion was true, what's the point  
in creating parallel efforts? If everyone knows where to get it from  
the source, why would they visit other efforts? We've battled this  
problem before, especially with CakePHP sites in other languages.  
People *don't* know, especially when they're introduced to us through  
a non-official channel.

>> but the content in the manual is meant to be reviewed and contributed
>> to in an official setting.
> Yes but that doesn't really mean that the content couldn't be under
> GPL or whatever.

I think it does. What's the point of having a license like that when  
we only want the content coming from one place?

>> What did you want to use it for?
> i didnt want to use it, but lets say - an in-house company cake  
> course.

Feel free to reference or quote from it inside your course materials,  
just like you would any other material.

> My point is:
> "It's weird that a community contributed documentation cannot be used
> by the community without an approval."
> I'm love you guys and i'm ok with the cookbook, i just think its not
> fair that community contributed docs aren't under an open license
> http://www.free-culture.cc/

I think the need to eliminate confusion is greater than the need for  
open content. I still haven't even heard of a decent use case for  
wanting to re-publish it. And if we did, I'd imagine we'd "grant  
permission."

-- John





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Marcin Domanski

>  > Hey
>  >> The content is owned by the Cake Software Foundation (...)
>  > Can you elaborate why is that ?
>  > Why not use GPL ? GFDL ? Creative Commons ?
>  > For me it's wierd that a community contributed documentation cannot be
>  > used by the community without an approval.
>
>  Mostly because we don't want 17 different copies of the content out on
>  the web in different forms.
Why don't you want that ? wikipedia is freely available and i don't
see the problem where articles are available on other sites as long as
people know its from wikipedia. People know that the official docs are
at cakephp.org.

>  but the content in the manual is meant to be reviewed and contributed
>  to in an official setting.
Yes but that doesn't really mean that the content couldn't be under
GPL or whatever.

>  What did you want to use it for?
i didnt want to use it, but lets say - an in-house company cake course.


My point is:
"It's weird that a community contributed documentation cannot be used
by the community without an approval."
I'm love you guys and i'm ok with the cookbook, i just think its not
fair that community contributed docs aren't under an open license
http://www.free-culture.cc/

greets,
-- 
Marcin Domanski
http://kabturek.info

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Sliv

Oh, there's no "fault" here, this is all on a volunteer basis.  I
would simply hope that if people have the time/ability to fork wiki's,
they would have the time/ability to join the cookbook development team
in some way and that their would be a doorway/path open for them to do
so.

> That's all my "fault" as RL got in the way recently. I'm spending my
> cake-time addressing these points/tickets.
>
> cheers,
>
> AD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread AD7six



On May 6, 2:50 pm, Sliv <[EMAIL PROTECTED]> wrote:
> I think some people are anxious to see the enhancement tickets for the
> cookbook get some kind of response, particularly the ones that give
> feedback as to the status of contributed content, versioning, etc.
> These are "wiki" type enhancements that would help resolve the issue
> where people submit something and then wonder what happened with it -
> also the issue where readers want to see how content is evolving.
> Right now it's kind of a mysterious drop box that stuff goes into but
> nobody knows quite what happens then, and readers see what appears to
> be a rather static resource unless they happen to notice a content
> change (no news/updates/new content flags), etc.
>
> All of that is a lot of work and there are a lot of enhancement
> tickets open, so I'm sure Gwoo et al. are open to developers offering
> their skills.  I would, but I'm busy (and getting close to finished)
> updating the bakery checkout (but if/when that stabilizes, guess where
> my next stop is likely to be :P)

That's all my "fault" as RL got in the way recently. I'm spending my
cake-time addressing these points/tickets.

cheers,

AD

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Sending Newsletter problems

2008-05-06 Thread mbavio

Hi bakers, I have a little problem and I cant fint a decent solution,
so I thought that here someone would delight me with some brilliant
solution...

I´m sending massive mails (Newsletter) to about 300 people. After the
first sent, some users complained that the mail was producing an
Outlook error of memory, and they cant open the email.  After that, I
tested the app sending the Newsletter to my email boxes, in a massive
way. After doing that, I´ve seen that the email size increases after
every sent. First I have mails of 18kb, and the last mails are about
50kb. I´m going to show my code now:

function sendEmails(){
set_time_limit(0);
$this->edition = $this->Mail->whatNewsIs();
$this->newsData = 
$this->Mail->Newsletter->getNewsData($this-
>edition);
$sends = $this->Mail->find('all', array('order' => 
'Mail.id ASC',
'limit' => $this->limit, 'restrict' => array('Mail')));
$this->Email->replyTo = 'Acep News <[EMAIL PROTECTED]>';
$this->Email->from = "Acep News <[EMAIL PROTECTED]>";
$this->Email->sendAs = 'html';
$this->Email->template = 'newsletter';
$this->Email->layout = 'newsletter';
$this->set('edition', $this->edition);
$this->set('narticles', $this->newsData);
if(!empty($sends)):
foreach ($sends as $send):
if ($send['Mail']['newsletter_id'] != 
$this->edition) {

$this->_changeNew($send['Mail']['newsletter_id']);
}
$this->Email->subject = 'Newsletter Edición ' . 
$this->edition;
$this->Email->to = $send['Mail']['email'];

if($this->Email->send())
$this->Mail->del($send['Mail']['id']);


endforeach;


$this->Email->reset();
$this->Email->to = "[EMAIL PROTECTED]";
$this->Email->subject = "Tiempo tardado";
$this->Email->from = "AcepNews <[EMAIL PROTECTED]>";
$this->Email->template = null;
$this->Email->sendAs = 'text';
$content = date('d-m-Y H:i:s');
$this->Email->send($content, null, null);

endif;
}


As you can see, I´m using template and layout, and no, I havent proved
yet to send the mail without the use of template and layout.

Well, anybody has been in some similar situation? Any kind of help is
apreciated.

Thanks!
mbavio
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread John David Anderson


On May 6, 2008, at 7:50 AM, the_woodsman wrote:

>
> I second the urgent need for more wiki like features in the Cook Book
> - I've made a few alterations and comments on the content, but having
> no idea if any of them were ever accepted, or indeed if the book has
> even been updated in the last week/month/year, it's hard to be
> motivated to do more.
>
> A few wiki features relating to recent changes, your changes etc (at
> least a revision log of some kind) would make all the difference, and
> might put an end to all the calls for a traditional wiki.
>
> If the source for the book was easily available it would encourage
> people to add new features, fix tickets, etc etc.
>
> Please, to all those involved in creating the cook book - don't take
> this the wrong way, If I didn't think the book was great idea I
> wouldn't have added content, or bothered posting this!

Yeah no worries. We're working on it, so please be patient as we move  
things along. Its always been a battle between working on the content  
itself, and enhancing the app...

I also need to add some things for translators so they can see if a  
page has changed since it's been translated.

-- John

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread John David Anderson


On May 6, 2008, at 7:47 AM, Sliv wrote:

>
> Just a guess, but probably for forking wiki's.

That's exactly why we don't allow that. :)

I hope you can see why that'd be a problem.

-- John

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: requestAction inside elements creates a Stack Overflow

2008-05-06 Thread Sliv

Well, I don't want to mislead you, but I would try doing the ol'
"comment everything and backstep"... also try setting debug to 0 to
see if there's any different result.  My point was just that these
kinds of things I think are like segmentation faults where you try to
find a problem in the code and realize it's an issue with the PHP
compile, but I could be wrong. Often it's worth setting up a vmware
LAMP environment to have on hand just to rule out the environment in
such a scenario.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread the_woodsman

I second the urgent need for more wiki like features in the Cook Book
- I've made a few alterations and comments on the content, but having
no idea if any of them were ever accepted, or indeed if the book has
even been updated in the last week/month/year, it's hard to be
motivated to do more.

A few wiki features relating to recent changes, your changes etc (at
least a revision log of some kind) would make all the difference, and
might put an end to all the calls for a traditional wiki.

If the source for the book was easily available it would encourage
people to add new features, fix tickets, etc etc.

Please, to all those involved in creating the cook book - don't take
this the wrong way, If I didn't think the book was great idea I
wouldn't have added content, or bothered posting this!



On May 6, 2:22 pm, "Amit Badkas" <[EMAIL PROTECTED]> wrote:
> On Tue, May 6, 2008 at 6:46 PM, Sliv <[EMAIL PROTECTED]> wrote:
>
> > I don't actually know, but contact [EMAIL PROTECTED], I am sure he (and
> > everyone) would welcome offers to help.
>
> - Did that
>
> Amit
>
> http://amitrb.wordpress.com/http://coppermine-gallery.net/http://cheesecake-photoblog.org/http://www.sanisoft.com/blog/author/amitbadkas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Sliv

Just a guess, but probably for forking wiki's.

...and I find it funny how similar saying "forking wiki's" sounds to
something good ol' Chris would say :D

> What did you want to use it for?
>
> -- John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread John David Anderson


On May 6, 2008, at 2:39 AM, Marcin Domanski wrote:

>
> Hey
>> The content is owned by the Cake Software Foundation (...)
> Can you elaborate why is that ?
> Why not use GPL ? GFDL ? Creative Commons ?
> For me it's wierd that a community contributed documentation cannot be
> used by the community without an approval.

Mostly because we don't want 17 different copies of the content out on  
the web in different forms. You're very welcome to write about cake,  
but the content in the manual is meant to be reviewed and contributed  
to in an official setting.

What did you want to use it for?

-- John

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: requestAction inside elements creates a Stack Overflow

2008-05-06 Thread alxlevin

Unfortunately I don't easily have access to another server.  However,
there are other requestAction calls working correctly even on the same
page.  Any ideas as to what I should be looking for in the server
environment?  This is obviously a critical problem.  I'd hate to
completely bypass cake in order to code around this.  And, I'm worried
it will happen again in the future.  Any help would be really
appreciated.  Thanks.

On May 5, 9:29 pm, Sliv <[EMAIL PROTECTED]> wrote:
> If you have access to a different test server environment, I would try
> that before proceeding further.  These types of problems tend to be
> related to something in the environment.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Missing PaginatorHelper Method in View

2008-05-06 Thread Chris Hartjes

On Tue, May 6, 2008 at 9:41 AM, Cheeze <[EMAIL PROTECTED]> wrote:
>
>  I've tried to use my application on different servers and all gave the
>  same result.
>
>  Can anyone provide some advise on how I can proceed to debug this?
>

Paste your code into http://bin.cakephp.org

-- 
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Missing PaginatorHelper Method in View

2008-05-06 Thread Cheeze

I've tried to use my application on different servers and all gave the
same result.

Can anyone provide some advise on how I can proceed to debug this?

Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Making Paginator first sort direction DESC

2008-05-06 Thread Tim W

Hi all,

Paginator's great, like the rest of Cake, but there's one little thing
I haven't been able to work out. By default when you click on a column
to sort it will sort ASC (ascending), but i'd like the first sort to
be DESC (descending). The options suggest this might be possible, but
I haven't worked it out. Does anyone know if this is possible?

Thanks

TIm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Amit Badkas
On Tue, May 6, 2008 at 6:46 PM, Sliv <[EMAIL PROTECTED]> wrote:

>
> I don't actually know, but contact [EMAIL PROTECTED], I am sure he (and
> everyone) would welcome offers to help.


- Did that


Amit

http://amitrb.wordpress.com/
http://coppermine-gallery.net/
http://cheesecake-photoblog.org/
http://www.sanisoft.com/blog/author/amitbadkas

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Sliv

I don't actually know, but contact [EMAIL PROTECTED], I am sure he (and
everyone) would welcome offers to help.

> - Where is the SVN for cookbook code? Would like see if I can help out with
> some patches

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: error message appear on the top of html

2008-05-06 Thread Sliv

Have you tried $this->Session->setFlash(__($message, true));


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Amit Badkas
On Tue, May 6, 2008 at 6:20 PM, Sliv <[EMAIL PROTECTED]> wrote:

>
> I think some people are anxious to see the enhancement tickets for the
> cookbook get some kind of response, particularly the ones that give
> feedback as to the status of contributed content, versioning, etc.


- Where is the SVN for cookbook code? Would like see if I can help out with
some patches

Amit

http://amitrb.wordpress.com/
http://coppermine-gallery.net/
http://cheesecake-photoblog.org/
http://www.sanisoft.com/blog/author/amitbadkas

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Paginate custom SQL queries

2008-05-06 Thread Sliv

Filip:

Others might be interested in your efforts as well, perhaps you would
be interested in posting to http://bin.cakephp.org and posting the URL
here.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



RE: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Mariano Iglesias

Getting traffic, nate. Getting traffic. How many projects try to benefit
from the popularity of another project for the sole purpose of getting some
users in, and then placing an adsense?

-MI

---

CakeFest: December, 2008 - Buenos Aires, Argentina - http://es.cakefest.org

blog: http://www.MarianoIglesias.com.ar
twitter: http://twitter.com/mgiglesias

-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de nate
Enviado el: Martes, 06 de Mayo de 2008 12:35 a.m.
Para: CakePHP
Asunto: Re: Is the documentation at book.cakephp.org open source?

Why?  Writing a documentation resource on CakePHP from scratch is
quite an undertaking.  What could possibly be your motivation for
doing such a thing?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: i want to make tow app file in the same cake installation ?? can i do that ??

2008-05-06 Thread Sliv

I think you want to read the advanced installation section at
http://book.cakephp.org

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Dynamic Report/Report Creator.

2008-05-06 Thread Sliv

Suggestion: I would probably have a look at the bake/console code  and
"borrow" some ideas...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



i want to make tow app file in the same cake installation ?? can i do that ??

2008-05-06 Thread amro . t17

hi all backers

Im building an application using cakephp
the application have an admin side and the view side or the site
files

my question is i wanna separate the admin side from the website files
but i would like also to let the tow sides or the tow application in
the same cakephp installation

in other words i have the admin side in the app file where i have to
but my files
i wanna create another app for the site files but i wanna stay in the
same cake directory

please help me in this if any one have a good solution
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Sliv

On a side note, have you folks (those wanting to fork a doc wiki)
already tried offering to Gwoo/John to help code/write the cookbook
app and have since decided to venture out on your own, or are you just
unsatisfied with the cookbook without offering to assist and wanting
to spearhead your own idea (i.e. the better mouse trap)?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Validating related models

2008-05-06 Thread Sliv

I haven't looked at it recently, but my guess would be to check the
latest revision of the saveAll method...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Sliv

I think some people are anxious to see the enhancement tickets for the
cookbook get some kind of response, particularly the ones that give
feedback as to the status of contributed content, versioning, etc.
These are "wiki" type enhancements that would help resolve the issue
where people submit something and then wonder what happened with it -
also the issue where readers want to see how content is evolving.
Right now it's kind of a mysterious drop box that stuff goes into but
nobody knows quite what happens then, and readers see what appears to
be a rather static resource unless they happen to notice a content
change (no news/updates/new content flags), etc.

All of that is a lot of work and there are a lot of enhancement
tickets open, so I'm sure Gwoo et al. are open to developers offering
their skills.  I would, but I'm busy (and getting close to finished)
updating the bakery checkout (but if/when that stabilizes, guess where
my next stop is likely to be :P)

> You know that you (and I mean you not other people) can edit/add
> content to the book?
>
> Cheers,
>
> AD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Validating related models

2008-05-06 Thread ygneo

I've finally do it like this, and It's work, but maybe there is a
better solution...

On 30 abr, 01:31, "b logica" <[EMAIL PROTECTED]> wrote:
> In the controller should be ok:
>
> if ($this->Model->OtherModel->validates())
>
> On Tue, Apr 29, 2008 at 5:50 AM,ygneo<[EMAIL PROTECTED]> wrote:
>
> >  In a previous thread:
> >  http://groups.google.com/group/cake-php/browse_thread/thread/97acdfdf...
>
> >  I was asking about validating related models.
>
> >  It seems that I have to call the validation explictly, but where? In
> >  the controller, in the beforeSave of the "parent" model??
>
> >  Any idea?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Paginate custom SQL queries

2008-05-06 Thread Filip Camerman

Hi,

I also needed to paginate custom queries and decided to make my own
pagination which turned out to be easier than I thought, after all
pagination is just adding LIMIT x,y to your query and determining x
based on your current page. I wrote some global functions for all my
pagination needs and now need about 5 lines of code per paginated
action. If the hack above doesn't help you (I couldn't use it because
I have various types of pagination on the same model) I can send my
code if you want.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: tempdocs.cakephp.org

2008-05-06 Thread Dr. Tarique Sani
On Tue, May 6, 2008 at 2:55 PM, Filip Camerman <[EMAIL PROTECTED]> wrote:

>
> it was actually handy to have everything on one page, would be nice to
> still have that as an extra.


Seek and you shall find - http://book.cakephp.org/complete/3/the-manual

:)

Tarique

-- 
=
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
=

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is Cake 1.2 ready to use in production?

2008-05-06 Thread Filip Camerman

Been using 1.2 in production since alpha, never a problem. After all,
it's all just php code and php isn't beta :)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Something on the top of CakePHP

2008-05-06 Thread Marcin Domanski

On Mon, May 5, 2008 at 8:19 PM, Gwoo <[EMAIL PROTECTED]> wrote:
>  For me, it is time to remove this thread.
For me censorship is not the solution. Good thing its a mailing list
and people don't have to look at it on the GGroup interface.

> It is not related to CakePHP support which is the mission of the group.
so where can we talk about where cake is heading ? what is developed in cake ?
As far as i like helping people here (still i prefer #cakephp) i
thought it was a general-purpose mailing list. Are there any other
created for that purpose?
I know there is a #cakephp.dev  - why is it password protected then?
it wasn't a _long_ time ago:
https://svn.cakephp.org/repo/whiteboard/misc/dev_meeting/Log-2005-08-12.txt?rev=5000
ie - anyone could join but only 'core' had voice. Also the logs from
dev aren't visible too...

Apart from that i would agree with Tarique.

-- 
Marcin Domanski
http://kabturek.info

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: tempdocs.cakephp.org

2008-05-06 Thread Filip Camerman

it was actually handy to have everything on one page, would be nice to
still have that as an extra.


On May 6, 8:18 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On Tue, May 6, 2008 at 11:41 AM, . <[EMAIL PROTECTED]> wrote:
> > what happened to tempdocs.cakephp.org?
>
> Grew up to be book.cakephp.org !
>
> T
>
>
>
> --
> =
> Cheesecake-Photoblog:http://cheesecake-photoblog.org
> PHP for E-Biz:http://sanisoft.com
> =
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Loading external Javascript in AJAX layout

2008-05-06 Thread Bartek Muracki

Thank you all, will let you know if I sorted it out.

On 6 Maj, 01:01, Daddy Cool <[EMAIL PROTECTED]> wrote:
> Might help 
> :http://groups.google.com/group/cake-php/browse_thread/thread/acd4762c...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Marcin Domanski

Hey
>  The content is owned by the Cake Software Foundation (...)
Can you elaborate why is that ?
Why not use GPL ? GFDL ? Creative Commons ?
For me it's wierd that a community contributed documentation cannot be
used by the community without an approval.


-- 
Marcin Domanski
http://kabturek.info

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Dynamic Report/Report Creator.

2008-05-06 Thread laeffe

Hi all.
I'm trying to create a dynamical report creator, or what you could
call it.

What I need is some way of specifying which models and it's related
ones i want, and then creating a table with the data in it. My first
experiment included using the bindable behavior's restrict function
and later on using pr() to resent it. Quite primitive but it proves
the point anyway.

Any way, has anyone done something similar or has another idea of
approach?

//Laeffe
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Re-saving user re-hashes password

2008-05-06 Thread drumdance

NEVER MIND! About two seconds after I posted this I realized that *of
course* you won't want to be able to load orig passwords into the
form. I cam up with a scheme in which password fields are disabled and
empty unless you click a link to change them, in which case the
password validation is the same as when creating an account.

-dd

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread AD7six



On May 6, 4:59 am, Aaron  Shafovaloff <[EMAIL PROTECTED]> wrote:
> Thanks for the clarification. I'll just start from scratch.

You know that you (and I mean you not other people) can edit/add
content to the book?

Cheers,

AD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Stephen Orr

The answer seems to be because some people believe that a wiki is the
solution to all of mankind's problems. I'd rather see people
contributing to the main docs personally, since it was launched the
Book has really helped me get answers faster (there's still some
things I need to refer to the API for but that'll change as time goes
by).

Steve



On May 6, 4:34 am, nate <[EMAIL PROTECTED]> wrote:
> Why?  Writing a documentation resource on CakePHP from scratch is
> quite an undertaking.  What could possibly be your motivation for
> doing such a thing?
>
> On May 5, 10:59 pm, Aaron  Shafovaloff <[EMAIL PROTECTED]> wrote:
>
> > Thanks for the clarification. I'll just start from scratch.
>
> > On May 5, 8:56 pm, Gwoo <[EMAIL PROTECTED]> wrote:
>
> > > The book is open. Anyone is free to contribute.
>
> > > The content is owned by the Cake Software Foundation and contributed
> > > by loyal members of the CakePHP community who value collaboration and
> > > central location for information and resources related to the CakePHP
> > > project. Therefore, you cannot reproduce, distribute, or prepare
> > > derivative works based on its content for any purpose, without the
> > > permission of the Cake Software Foundation.
>
> > > Bake on.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---