Re: Latest Releases not available for download

2007-10-22 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I don't see *any* files available.  Strange.  They're probably working
on fixing the problem.

Andy Pearson wrote:
 Hey,
 
 I was planning to download the latest version and get started with a
 new project, unfortunately the download pages do not have anything
 available to download.
 
 The page is here: http://cakeforge.org/frs/?group_id=23release_id=340
 
 Sorry if this has already been raised.
 
 Andy
 
 
  

- --
Darian Anthony Patrick, GWAS, GSSP-Java, ZCE
Principal, Application Development
Criticode LLC
(215) 240-6566 Office
(866) 789-2992 Facsimile
Web:   http://criticode.com
Email: [EMAIL PROTECTED]
JID:   [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-

iD8DBQFHHLNoKpzEXPWA4IcRArnHAJ9NJJsJ5/+qzM0ZCMXXuTmXZ/YaJgCfQRRH
IjiFLzLUZhxNp+4FuYZzfNg=
=NFf8
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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: Cake Recipes cancelled

2007-03-11 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sonic Baker wrote:
 How much of the book was actually written? History of cake and all that
 stuff aside, of the technical content that was written, would it be of
 use to the community or in educating new potential bakers. It seems to
 me from reading this thread that all parties put a great deal of work
 into this and it seems a shame that this work may go to waste. So the
 publishing deal went sour! I have no knowledge on publishing commercial
 books etc but rather than waste the efforts involved, would there be
 anything to say for releasing at least the approved content and allow
 the community to benefit from it. The subversion book comes to mind,
 with a 'Donate' link on each page. They may not amount to millions but
 at least if donations could be shared between all parties wouldn't
 everyone benefit?

+1 on this idea.  Fabio has put in the effort, and many of us have been
waiting with baited breath to read it.

- --
Darian Anthony Patrick
Principal, Application Development
Criticode LLC
(215) 240-6566 Office
(866) 789-2992 Facsimile
Web:   http://criticode.com
Email: [EMAIL PROTECTED]
JID:   [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF9BHwKpzEXPWA4IcRAgQ2AKCLRaX65xTVZsauvgV/0ScsR1E24ACfTdaC
bYaQIaJOU+eha91bUc+5tNc=
=tfsv
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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: Cake Recipes cancelled

2007-03-08 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Is a core CakePHP developer proposing an alternate?

Larry E. Masters aka PhpNut wrote:
 It is true, the book deal between the Cake Software Foundation, Fabio
 Cevasco, and Peachpit Press has been cancelled. This decision was
 unanimously reached by all members of the CSF as well as other members
 of the community who where involved in peer review.
 
 In short, we were dissatisfied with the direction the project was
 taking, and the inadequate way in which the framework was being represented.
 
 However, this absolutely does not mean that there will be no CakePHP book.
 
 -- 
 /**
 * @author Larry E. Masters
 * @var string $userName
 * @param string $realName
 * @returns string aka PhpNut
 * @access  public
 */
 
  

- --
Darian Anthony Patrick
Principal, Application Development
Criticode LLC
(215) 240-6566 Office
(866) 789-2992 Facsimile
Web:   http://criticode.com
Email: [EMAIL PROTECTED]
JID:   [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF8Cj1KpzEXPWA4IcRAlWGAJ9ZqwFwGRNHHYu3xNP0TADq6aOETQCdFbpb
l/AHkvfLkTXPXh2Y0D8ohKU=
=dYhU
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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: What editor do you use for CakePHP?

2007-02-13 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Wow, Mylar seems really nice.

I really like Eclipse for Java development.

Mylar and PDT with xdebug support
(http://sb2.info/better-solutions/tools/xdebug-support-for-eclipse-php-ide/),
 are compelling reasons to re-evaluate baking in Eclipse.

Having one IDE for all of my coding would be lovely.  And a free one at
that!

jinhr wrote:
 I use: Eclipse as environment + PDT (http://www.eclipse.org/php/) as
 PHP editor + Subclipse for version control + Mylar  Trac for task
 management.
 
 The best things for such solution is 1) It is totally free 2) It runs
 on linux or windows. 3)source code version is under control from ONE
 repository.
 
 
  

- --
Darian Anthony Patrick
Principal, Application Development
Criticode LLC
(215) 240-6566 Office
(866) 789-2992 Facsimile
Web:   http://criticode.com
Email: [EMAIL PROTECTED]
JID:   [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF0eUWKpzEXPWA4IcRAleXAJ44eHK8Fq1Kb7f5T9e0LK/I0pbFiACcCImN
ZHGBE2OQhEz+/TBzH4oqyVI=
=syja
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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
-~--~~~~--~~--~--~---



RFC: model autoloading

2007-02-12 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Good day all,

We've been using some code internally for about a year now that
autoloads models.

It handles MySQL 4 and 5 right now, and works by looking at the foreign
key relations/constraints defined in the database schema, and creates
appropriate CakePHP models.

This code works fine, and works well, but it lacks some features that
I'd like to see:
- - ability to define validation and callbacks on generated models
- - ability to write them to the filesystem (this overlaps with Bake)
after first autoload
- - support for PostgreSQL

I'm considering releasing this code to the Bakery, but I first wanted to
gauge community interest.

Is runtime model autoloading something that you would use?

- --
Darian Anthony Patrick
Principal, Application Development
Criticode LLC
(215) 240-6566 Office
(866) 789-2992 Facsimile
Web:   http://criticode.com
Email: [EMAIL PROTECTED]
JID:   [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF0H8bKpzEXPWA4IcRAvqdAJ9fMwNQ55WdKHKuikq3u23MaZCRAQCeKRRa
H8LpYn5V+wZxcXgXURxUeIQ=
=6E9O
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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: Does Cake have the ./script/console similar to ruby on rails

2007-02-12 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'd be interested in helping out with this.

Chris Hartjes wrote:
 On 2/8/07, nate [EMAIL PROTECTED] wrote:
 Well yeah, you can do the interactive mode in PHP, but we should
 probably have a wrapper for doing Cake-specific stuff.  Not to echo
 John or anything, but any takers on getting that one started up?

 
 I know I will probably regret this...but I think I'm interested in
 seeing if this can be done.
 

- --
Darian Anthony Patrick
Principal, Application Development
Criticode LLC
(215) 240-6566 Office
(866) 789-2992 Facsimile
Web:   http://criticode.com
Email: [EMAIL PROTECTED]
JID:   [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF0Ky2KpzEXPWA4IcRAocnAJ44XMV46Bno+Ggji9mNFOlME5w+CACcDq/D
IHmlPbI74Bp0PTr0vMCj9QE=
=VyQm
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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: Enterprise features with cakephp

2007-02-08 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

alew3 wrote:
 - is there any continuous integration/automatted build and test
 solution that works with cakephp / svn?

There currently is no mature PHP-specific CI server like CruiseControl
is to Java.

I started writing one but haven't gotten very far.

Others have mentioned using ant for build management.  I prefer phing
for PHP projects.

 - is there support for database migrations (like rails)

I'd really like to see intelligent schema diff'ing in this space to make
it really easy for developers to work with databases.  This is not at
all something that has to with CakePHP specifically.  Just a general
comment.

 - what is the best text editor for using with cake (linux or windows)

I like Komodo IDE 4.0 with xdebug and kcachegrind.

- --
Darian Anthony Patrick
Principal, Application Development
Criticode LLC
(215) 240-6566 Office
(866) 789-2992 Facsimile
Web:   http://criticode.com
Email: [EMAIL PROTECTED]
JID:   [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFy/doKpzEXPWA4IcRAvPNAJ4jGk93W4jyYJvj6UxvgCCeHawD1QCbBW1U
2KVXOn7uCqwUQ4wKB/Q45vc=
=e/p4
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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: JOB: PHP Code Reviewer

2007-02-03 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey Dennis,

Are you still looking for a (Cake)PHP Code Reviewer?

Darian

Dennis S. Hennen wrote:
 
 Job Opportunity:
 
 Senior level PHP programmer to do code reviews of on-going project.
 You will review our existing code base as well as new code and make
 recommendations to increase the quality and reusability in our code.
 
 Must have extensive experience with MVC paradigm. Applicants with
 with CakePHP experience are highly desired.
 
 Must be self starter and be able to work independently.
 
 Will require up to 5-10 hours per week. This work is expected to last
 for approximately 8 weeks.
 
 
  

- --
Darian Anthony Patrick
Principal, Application Development
Criticode LLC
(215) 240-6566 Office
(866) 789-2992 Facsimile
Web:   http://criticode.com
Email: [EMAIL PROTECTED]
JID:   [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFxQDNKpzEXPWA4IcRApEVAJ9BOfiFwWP+tYCAMibFjS5BnhRNRgCfV9FJ
4bck747cGg+NkJbCaRYDFJw=
=gcud
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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: CakePHP Roadmap

2006-12-06 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

However, there exist cases where CakePHP could be used to create a
front-end for a database being populated by a separate, and wholly
unmodifiable application that makes use of native database locking.

nate wrote:
 The way I see it, this is all a part of framework-level support for
 transactions.
 
 
  

- --
Darian Anthony Patrick
Principal, Application Development
Criticode LLC
(215) 240-6566 Office
(866) 789-2992 Facsimile
Web:   http://criticode.com
Email: [EMAIL PROTECTED]
JID:   [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFd1k9KpzEXPWA4IcRAhKRAJ9cI0aBNT1AhQB5U2iVCx2jfgiZngCfYx3D
MTnGzIR02T3jJza76D3mIZ4=
=d+s1
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
Cake PHP 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: Cake session error

2006-12-01 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

It's probably because of that Warning being printed, which causes the
headers to be sent before the session cookie may is set.  See if you can
resolve that warning.

Darian

[EMAIL PROTECTED] wrote:
 Sorry - issue resolved - seems like there was a corruption during the
 uploading - however I am still getting loads of warning messages:
 
 Warning: overload() was unable to locate class 'loginckeck' in
 /home/ulsadmin/public_html/cake/basics.php on line 74
 
 Warning: session_start() [function.session-start]: Cannot send session
 cookie - headers already sent by (output started at
 /home/ulsadmin/public_html/cake/basics.php:74) in
 /home/ulsadmin/public_html/cake/libs/session.php on line 132
 
 Warning: session_start() [function.session-start]: Cannot send session
 cache limiter - headers already sent (output started at
 /home/ulsadmin/public_html/cake/basics.php:74) in
 /home/ulsadmin/public_html/cake/libs/session.php on line 132
 
 Warning: Cannot modify header information - headers already sent by
 (output started at /home/ulsadmin/public_html/cake/basics.php:74) in
 /home/ulsadmin/public_html/cake/libs/session.php on line 133
 
 
 Anyone know what these mean?
 
 Thanks
 
 On Dec 1, 6:36 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi, I have been creating a cakePHP app on my localhost using php5, and
 it works fine, however, I have just uploaded it to a server running
 php4 and I get the error: Fatal error: Class cakesession: Cannot
 inherit from undefined class object in
 /home/ulsadmin/public_html/cake/libs/session.php on line 48 - This is
 really bugging me - any help would be great - thanks
 
 
  

- --
Darian Anthony Patrick [EMAIL PROTECTED]
Criticode LLC
http://criticode.com
(215) 240-6566 Office
(866) 789-2992 Facsimile
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFcJHuKpzEXPWA4IcRAly9AJoDrLI+Y5SRu4BjlqhXyHTYLTbF1ACbBLef
yOeXNEmlqZXrwp2C7CjZvTw=
=MS7V
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
Cake PHP 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: pages controller

2006-12-01 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

You need to create your own app/controllers/pages_controller.php, and
retrieve (from your model(s)) and pass (to your view, namely home)
data appropriately.

Darian

mschwer wrote:
 Is it possible to get SQL results in the app/views/pages/home.thtml
 page?
 
 And if it's possible How to do it.
 
 greetz
 Michael
 
 
  

- --
Darian Anthony Patrick [EMAIL PROTECTED]
Criticode LLC
http://criticode.com
(215) 240-6566 Office
(866) 789-2992 Facsimile
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFcJJFKpzEXPWA4IcRAmiyAJ9Up277ApFBA0WznWp8iokTHpVDwQCghmsn
LsNfQII3cnh1s/fMTA0vFKo=
=UFCO
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
Cake PHP 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: pages controller

2006-12-01 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yes, that means you need to build it on your own.  But you aren't
overwriting the standard pages_controller.php, per se.  That is, you
aren't placing your pages_controller.php in the same place on the
filesystem as the standard pages_controller.php.  You are placing yours
in app/controllers/pages_controller.php.  In fact, you can copy the
standard pages_controller.php to that location, and use it as a starting
point.

Darian

mschwer wrote:
 By all means, that i have to build it on my own and therefore to
 overwrite the standard pages_controller.
 
 Sorry just started with cakePHP.
 
 
  

- --
Darian Anthony Patrick [EMAIL PROTECTED]
Criticode LLC
http://criticode.com
(215) 240-6566 Office
(866) 789-2992 Facsimile
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFcKstKpzEXPWA4IcRAjjFAJ9cqYDEcXiqYu2xDChKlNwC8RMTVQCcCQir
Y0EPQCU5hEkAVYIwsQDC+ys=
=bwQ8
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
Cake PHP 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: Running CakePHP Apps As CLI Apps

2006-11-30 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chris,

This is certainly possible.

The simplest way is actually outlined on Felix's site:
http://www.thinkingphp.org/2006/08/15/the-ultimate-cakephp-bootstrap-technique/

Based on what Felix describes in that post, I typically do the following:

?php

$_GET['url'] = 'favicon.ico';
require_once('app'.DIRECTORY_SEPARATOR.'webroot'.DIRECTORY_SEPARATOR.'index.php');
loadController(null);

?

That gets cake included into your script.  From there you would require
and instantiate your Controller, and go about business as usual, making
sure that you're not depending on data being passed as it would in a web
app, unless you are going to set $_GET and $_POST appropriately
yourself, or manually pass input to your Controller action invocations.

For instance, here's a snippet of how I use CakePHP inside of phing to
handle some build tasks that actually live inside of a Controller.  Note
that init_acl and init_auth are the names of the actions/methods defined
in my BuildController (and I store BuildController in my app/vendors
directory rather than app/controllers):

target name=include_cake
php expression=
define('DEBUG', 0);
$_GET['url'] = 'favicon.ico';
require_once('app'.DIRECTORY_SEPARATOR.'webroot'.DIRECTORY_SEPARATOR.'index.php');
loadController(null);
/
/target

target name=inst_bc depends=include_cake
php expression=
vendor('build_controller');
/
/target

target name=init_acl depends=inst_bc
php expression=
$build_controller = new BuildController();
$build_controller-_initComponents();
$build_controller-constructClasses();
$build_controller-beforeFilter();
$build_controller-init_acl();
/
/target

target name=init_auth depends=inst_bc
php expression=
$build_controller = new BuildController();
$build_controller-_initComponents();
$build_controller-constructClasses();
$build_controller-beforeFilter();
$build_controller-init_auth();
/
/target

Darian

Chris Hartjes wrote:
 I've been using Felix's awesome Google Analytics model to create some
 reports on the forum sites my employer owns.  However, I'm wondering
 if it's even possible to create a CakePHP app that can be run as a CLI
 app as a cron job...
 
 Any thoughts on how to accomplish this?
 

- --
Darian Anthony Patrick [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFbwifKpzEXPWA4IcRAgOoAJ49XST2GVKn7VjvKJV7tCHNLET4wgCghiTj
iI68aRvCtQm6MZwVygo9YoI=
=Drkp
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
Cake PHP 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: Running CakePHP Apps As CLI Apps

2006-11-30 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

nate wrote:
 I guess they could be used with cron, but CLI utilities is exactly what
 Bake Tasks are for.
 

Interesting, so a Bake task would take the place of the example that I
submitted in this thread?

- --
Darian Anthony Patrick [EMAIL PROTECTED]
Criticode LLC
http://criticode.com
(215) 240-6566 Office
(866) 789-2992 Facsimile
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFbzEWKpzEXPWA4IcRApDWAKCKzS4jbDUdL06KSSoig2ShJDr+bACcDz6s
Q/WdwtUZ6EmmMQZBVn2DWGg=
=N24t
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
Cake PHP 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
-~--~~~~--~~--~--~---



Anyone have pagination working in 1.2.xx?

2006-11-08 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Just curious?  I'm having a bit of trouble, but I'm not sure if it's
because the code is just not ready, or if I'm doing something wrong.

Thanks,

Darian
- --
Darian Anthony Patrick [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFUnV1KpzEXPWA4IcRAmHfAJ47TWcVpDvcGYPO/NqJhQLnjmoVWACcCMil
MPMUwt8spkRIFy7bUeaV+JQ=
=a3ln
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
Cake PHP 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
-~--~~~~--~~--~--~---



A process question for core developers: how are fixes to 1.x.x.x ported to 1.2.x.x

2006-11-08 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

...since 1.2.x.x. is sort of a moving target.

In the case of a bugs being found and fixed in 1.x.x.x after 1.2.x.x
branched, how are you handling porting those fixes to 1.2.x.x in light
of the fact that the pertinent code may have been refactored or
restructured in 1.2.x.x, with the same issue possibly remaining?

- --
Darian Anthony Patrick [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFUpK4KpzEXPWA4IcRAovSAJ4yhMx7fF/soPDJOShwoKXFfXduVgCfX2eM
/XAKo5ng8X0lXP3gEw6NesA=
=CsM0
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
Cake PHP 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: CakePHP Prototype JQuery

2006-11-05 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bingo,

I attempted to use jQuery and Prototype together, and ran into the same
issue that's noted in the URL your mentioned.

I was unable to resolve the conflicts, and decided that I didn't really
like Prototype that much, and realized that coding equivalent
functionality to that for which I had using Prototype was not very
difficult at all using jQuery, and was actually quite enjoyable.

There currently is no AJAX helper based on jQuery, but there has been
talk of creating an AJAX/JavaScript helper, with pluggable architecture,
that would support the use of Prototype or jQuery (and perhaps others).
 I think it's release is quite far out though.

Darian

bingo wrote:
 Hi,
 
 Right now I am using CakePHP and Prototype and my development is going
 great. But I would like to swtich to JQuery but at the same time don't
 want to give up Prototype as CakePHP AjaxHelper is based on Prototype.
 
 Initially I thought, that it should not matter if I include both
 prototype and jquery. But later I realized that including both of them
 causes some name conflict and ajax functionality fails to work. .I
 tried to option mentioned on JQuery but nothing is working..
 
 http://jquery.com/docs/PrototypeAndJQuery/
 
 So I have following questions
 1. Is there any ajaxhelper based on JQuery
 2. Did anyone got prototype and Jquery working together
 
 Regards,
 bingo
 
 
  

- --
Darian Anthony Patrick [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFThjuKpzEXPWA4IcRAtlRAJ9y9EtVvoSqejThMwWey0h4QI3NAwCfcSXF
038ByLXczYSfycm3YpBJuPo=
=i7AC
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
Cake PHP 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: CakePHP Prototype JQuery

2006-11-05 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bingo,

I don't believe you have to make changes to RequestHandler --
$this-RequestHandler-isAjax() will still work, as it checks that he
request was made via an XMLHttpRequest.

As for the existing $this-ajax-link(), I believe something like the
following might work (placed in your view):

?php
echo $javascript-codeBlock(
$('#anClickMe')
.click(
function()
{
$('#dvReplaceMe').load(
'/your/request/url/1',
null,
null
);
}
);
);
?

This example assumes a link with an id of 'anClickMe' and a div with an
id 'dvReplaceMe'.

Someone please correct me if I'm wrong, or suggest a more streamlined
approach -- I'm rather new to jQuery.

Darian

bingo wrote:
 Hi Darian,
 
 Can you provide some example on how did you get JQuery working...I am
 actually interested in knowing how you can replace ajax-link with
 JQuery code...and what changes will I have to make in the controller
 and in the RequestHandler component, if I have to, to get jquery
 working
 
 Regards,
 bingo
 
 On Nov 5, 12:01 pm, Darian Anthony Patrick
 [EMAIL PROTECTED] wrote:
 Bingo,
 
 I attempted to use jQuery and Prototype together, and ran into the same
 issue that's noted in the URL your mentioned.
 
 I was unable to resolve the conflicts, and decided that I didn't really
 like Prototype that much, and realized that coding equivalent
 functionality to that for which I had using Prototype was not very
 difficult at all using jQuery, and was actually quite enjoyable.
 
 There currently is no AJAX helper based on jQuery, but there has been
 talk of creating an AJAX/JavaScript helper, with pluggable architecture,
 that would support the use of Prototype or jQuery (and perhaps others).
  I think it's release is quite far out though.
 
 Darian
 
 
 
 bingo wrote:
 Hi,
 Right now I am using CakePHP and Prototype and my development is going
 great. But I would like to swtich to JQuery but at the same time don't
 want to give up Prototype as CakePHP AjaxHelper is based on Prototype.
 Initially I thought, that it should not matter if I include both
 prototype and jquery. But later I realized that including both of them
 causes some name conflict and ajax functionality fails to work. .I
 tried to option mentioned on JQuery but nothing is working..
 http://jquery.com/docs/PrototypeAndJQuery/
 So I have following questions
 1. Is there any ajaxhelper based on JQuery
 2. Did anyone got prototype and Jquery working together
 Regards,
 bingo- --
 Darian Anthony Patrick [EMAIL PROTECTED]

 

- --
Darian Anthony Patrick [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFTiVtKpzEXPWA4IcRAsIbAJwOXJPZ9y/qbDgJDppHJZ/se4HpqwCfRR/Q
3yl8TTYq4CKluhc4Xl2/zCw=
=iIxQ
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
Cake PHP 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: dateTimeOptionTag Select

2006-10-20 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

-MM-DD hh:mm I believe Jeff.

Jeff wrote:
 I've tried the 18-12-2006 format.. but I'm only getting the correct
 month to be selected.
 
 
  

- --
Darian Anthony Patrick [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFOUyFKpzEXPWA4IcRAs3/AKCBmy8vgeXIfbumyx8t9V3HETtNQwCaAxX3
U6XHmB2iCL8xXIYPR7AK8yw=
=mB2h
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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
-~--~~~~--~~--~--~---



Re: Cake debugging and testing

2006-10-10 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nate,

Are there more in-depth examples of unit testing controller actions?

I'm speaking specifically about using direct calls on the action methods
(which I'm not doing right now), rather than using the HTTP request
instantiation capabilities of Simpletest (which I _am_ doing right now).

Darian

nate wrote:
 You can set breakpoints in your Cake application in an IDE like Zend.
 I still do it sometimes.  Also, if you download and install Cake's unit
 test suite off of CakeForge, Bake will generate unit test files for
 your controllers and models when you bake them, and the interface for
 testing apps makes it quite easy.
 
 
  

- --
Darian Anthony Patrick [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFK79bKpzEXPWA4IcRAu6iAJ9+Sr04tW3LTXrJPzFemaXDH6UnagCeNVjd
LG7POORw4xBsaK31Wii4QIs=
=qeq6
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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
-~--~~~~--~~--~--~---



Re: Cake debugging and testing

2006-10-10 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Awesome.  Thank you.

Calls to render() and flash() inside of the controller action don't
screw this up?

nate wrote:
 Here's an example:
 /app/tests/app/cases/controllers/comments_controller.test.php:
 
 require CONTROLLERS . 'comments_controller.php';
 
 class CommentsControllerTestCase extends UnitTestCase {
 
   function setUp() {
   $this-comments = new CommentsController();
   $this-comments-constructClasses();
   }
 
   function testCommentsIndexData() {
   $this-comments-index(2);
   $this-assertTrue(!empty($this-comments-_viewVars));
   
 $this-assertTrue(isset($this-comments-_viewVars['comments']));
   }
 }
 
 Note that you need to have the test suite installed per the tutorial on
 the wiki.
 
 
  

- --
Darian Anthony Patrick [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFK+HRKpzEXPWA4IcRAuEEAJ40nCdjNWv+TNiki03ARqPVFsUBawCaAjBc
/84bCnM5SjZjFfuhWMp+PH8=
=uwGi
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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
-~--~~~~--~~--~--~---



Re: Web Application authentication

2006-09-15 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Zend has a small business discount program that covers Zend Guard:
http://www.zend.com/store/software/zend_small_business_program

Jon Bennett wrote:
 First post!
 
 welcome!
 
 Okay, what about this:
 Make a key file on the client server with an expiration date encoded in the
 key.
 Have your program check the key's expiration date every time it runs
 When the key expires, call a page on your site to get a new key with a new
 expiration date.
 That way, their site only calls yours once a month. Just don't make the key
 encoding obvious!
 
 also like it.
 
 could you not Zend Guard just this part of the app, and bury it so
 it's not obvious.
 
 jb
 

- --
Darian Anthony Patrick [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFCsKtKpzEXPWA4IcRAqrNAJ0V96CkRzPL+D0HKNoOoNIXIt80RwCfa1GB
wMM3by8agR9G1qeDOBDCLZg=
=zG6/
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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
-~--~~~~--~~--~--~---



Re: Web Application authentication

2006-09-14 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

[EMAIL PROTECTED] wrote:
 I have this brilliant idea and wanted to confirm it's brilliance.  In
 looking at the Paypal IPN I notice they use fgets and fputs to send
 HTML posts.  I had forgotten about this since starting CakePHP, but am
 renewed by the possibilities.
 
 What I am thinking is that each time I install my application that I
 give it a unique serial number stored as a globally defined variable.
 Then, when the application is first called (and it can cache the result
 for a time period) it would make a fput \ fget to my server running a
 CakePHP verification application.  I would have tables of the uniqueids
 and be able to keep them in good standing or not good standing.  If not
 in good standing, the return would effectively disable the application
 from running.
 
 Does this seem workable?  What are possible hiccups (other than
 sometimes the fputs and fgets may not work so I would have to work in
 some kind of grace mechanism.
 
 The reason I am thinking this is the one time cost of $300 seems crazy
 to people, but if I could set them up on monthly payments and still
 install the application I think I would get more people.  So, this
 verification application would serve to disable the program if at
 anytime they stopped payment.
 
 Or conversly, would it be better to make a method that I could run via
 an URL that would immediately disable their application.  Something
 whereby I would have to login to an account that I have on all
 installations, run it, and disable their program until they paid.  Is
 this more logical?
 

Are you Zend Guard'ing the source code for the application?  What's to
keep a customer from removing the code that implements the software
lysine deficiency on their end?

I considered this factor several years ago when I implemented a payment
system in Perl that did some creation of XML data before sending info to
the credit card processor.  My answer to the question was to move a
large portion of the application code to my server, which I then called
via XML-RPC, and which I released and installed on the client's server
once the client paid (which they did).

This way, the client could not remove the call-home functionality
because calling-home was the only way the app could function properly.

This however, added another layer through which semi-sensitive data had
to travel (not credit card numbers, but unique identifiers that related
customers to items they selected for purchase).  It also created a
dependency on the stability of my systems, which is okay if one can
ensure that stability.

There is debate as to the utility and legality (in certain instances) of
software lysine deficiencies.  IANAL, obviously, but perhaps you can get
away with it as long as it's noted in your license agreement that you
reserve the right to disable application functionality for non-payment.

This sort of scheme seems more feasible, and poses less of a security
vulnerability, than having an account on each installation which you
must login to to disable the application.

Good luck,

Darian

- --
Darian Anthony Patrick [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFCYFyKpzEXPWA4IcRAtWXAJoCLhrueskAu7nTD/sz62f31TdjeACdG/Xt
DubparcuuggCqKwp8oLHrGY=
=DlnC
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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
-~--~~~~--~~--~--~---



Re: Calling Cake from within another web app.

2006-07-30 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Good information to get you started:
http://www.thinkingphp.org/category/drupal/

Samuel DeVore wrote:
 did you try searching
 
 http://www.google.com/search?q=cakephp+and+drupalstart=0ie=utf-8oe=utf-8client=firefoxrls=org.mozilla:en-US:unofficial
 http://www.google.com/search?q=cakephp+and+drupalstart=0ie=utf-8oe=utf-8client=firefoxrls=org.mozilla:en-US:unofficial
 
 On 7/29/06, *Kuma_Pageworks* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
 
 So this project that I'm working on has basically become a CMS.  So
 instead of building an entirely new CMS from the ground up, I was
 thinking that I would just hack an open-source one and add new
 functionality with Cake.  My question is: Can you call Cake from inside
 another app, like a CMS (Drupal, for example)?  It seems to me it would
 just be a matter of getting the URLs right when passing information
 back and forth between the two.  Views would be called inside the CMS
 wrapper, and you'd keep the functionality of Cake.
 
 Thoughts?
 
 
 
 
  

- --
Darian Anthony Patrick [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEzOZzKpzEXPWA4IcRAkOwAJ9tBsv1Dds6r4XvulMXwXW5EcZSOwCggqTd
dby4+k8wNqusZQUcGIjM0R8=
=g+zS
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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
-~--~~~~--~~--~--~---



Lighttpd rewrite config for Cake

2006-07-16 Thread Darian Anthony Patrick

Hey Chris,

I'm unfamiliar with rewriting in lighty. Can you post your rewrite config?

Thanks!

--
Darian Anthony Patrick [EMAIL PROTECTED]
-Original Message-
From: Chris Lamb [EMAIL PROTECTED]
Date: Sunday, Jul 16, 2006 4:35 pm
Subject: Re: Using cake to serve files

Don't forget that using PHP to serve up lots of files is very slow.. if
you're using Lighttpd, check out:

http://blog.lighttpd.net/articles/2006/07/02/x-sendfile

Lamby


On Sat, 15 Jul 2006 01:41:20 -0700
georgeL [EMAIL PROTECTED] wrote:

 
 Other file serving php scripts do this by putting the files somewhere
 else on your system outside of the webroot.
 
 
  


-- 
 Chris Lamb, Cambridgeshire, UK  [EMAIL PROTECTED]
  WWW: www.chris-lamb.co.uk GPG: 0x634F9A20



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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
-~--~~~~--~~--~--~---



Re: Subdomains as Controllers

2006-07-11 Thread Darian Anthony Patrick

This looks like a job for Apache's mod_rewrite to me. There is a good tutorial 
at http://httpd.apache.org in the documentation section for your (target) 
version of Apache. This info, combined with the app/webroot/.htaccess that 
ships with CakePHP, should get you going.

Good luck,

Darian
--
Darian Anthony Patrick [EMAIL PROTECTED]
-Original Message-
From: Quad4 [EMAIL PROTECTED]
Date: Tuesday, Jul 11, 2006 10:28 am
Subject: Subdomains as Controllers

Hi.

I have next standard app structure:
http://domain.com/controller1/action/
http://domain.com/controller2/action/
http://domain.com/controller3/action/

How I can do next trick with Cake?
http://controller1.domain.com/action/
http://controller2.com/action/
http://controller3.com/

Thanx a lot.






--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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
-~--~~~~--~~--~--~---



Re: CakePHP Built-in Webservices?

2006-07-03 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Gwoo,

What do you mean by a way to manage the code?  Could you elaborate a
bit.  Specifically in terms of SOAP.

Darian

gwoo wrote:
 Webservices are currently setup to give you a way to manage the code.
 Basically, it is an advanced routing system
 
 So, using our favorite blog example:
 
 http://example.com/rss/posts/view
 would look for the rss_view() method in the PostsController
 the view would be located in /posts/rss/view.thtml
 
 http://example.com/xml/posts/read
 would look for the xml_read() method in the PostsController
 the view would be located in /posts/xml/read.thtml
 
 available webservices:
 rss
 xml
 rest
 soap
 xmlrpc
 
 Datasources are the works for 1.2. This will provide native support  
 for webservices CRUD. For now, using NuSoap as suggested along with  
 the routes would be a good solution.
 
 
  

- --
Darian Anthony Patrick [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEqX2xKpzEXPWA4IcRAvaPAJ4/ulG0TqprFbouJ27xgW3hdgQq/wCgipZ+
ZASauggHhUqknT9p5Ujnz4w=
=DzjR
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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
-~--~~~~--~~--~--~---



Re: Cakebased bot ?

2006-06-16 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Olivvv,

The first question could be answered by using an external script which
makes an HTTP request to your Cake application, invoked from cron.

Cake could also, in theory, be used as a generalized application
development framework, when coupled with a daemon that handles
time-based action invocation, vaguely similar to POE in Perl.

I believe the second question could be answered by using generally
available PHP classes, or core or extensions fuctions which handle HTML,
or text parsing.

All in all, it sounds quite feasible.

And fun.

Best,

Darian

Olivier Percebois-Garve wrote:
 Hi
 I got a proposal for a job and I'm trying to figure out how difficult it 
 is and how long it would take.
 
 The job is to make a bot that connects to an external url, logs in, 
 catch somewhere on the page the number in front of the string treffer,
 save it and then start again with another url.
 
 So I have several questions:
 
 Can cake run code without a query (every night for instance) ?
 Can cake (or something else) open external urls and walk through the DOM 
 of the opened page ?
 
 Olivvv
 
 
 
 
  

- --
Darian Anthony Patrick [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEkykzKpzEXPWA4IcRAlmyAJkBGwozs+TmY9yyAzSdz1Cxp4p7TQCfUD3g
kDSnz3povRiK5jLO5jpxzPU=
=YEGc
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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
-~--~~~~--~~--~--~---



Re: rdAuth? Users? ACL?

2006-05-07 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tom,

I'm using beforeFilter in my app/app_controller.php to check for
existence of a valid_login entry in my cake session.

That valid_login entry gets set from my
app/controllers/users_controller.  When a user tries to hit a protected
section of my application (which is all parts of my app),
app_controller's beforeFilter redirects them to /users/login unless that
valid_login entry exists in my cake session.

This /users/login action is where I present a form requesting username
and password, when there is no post data, or verify the posted username
and password as valid.

I'm making use of http://www.openwall.com/phpass/ for password hashing.

Hope this helps,

Darian

tom wrote:
 Hi,
 
 I'm very experienced with PHP and somewhat experienced with CakePHP.
 I'm interested in building a simple app, but one of the things that I'm
 not sure how to do is user authentication. Is there a best practice for
 this? It seems like some people use rdAuth, which might be broken, and
 some use Access Control Manager, which is definitely broken, and some
 build their own with dbACL, but there's no documentation for that (or
 for the other two options.) Is there a good way to go about this?
 
 Thanks,
 
 Tom
 
 
  

- --
Darian Anthony Patrick [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEXriTKpzEXPWA4IcRAtAuAJ0fuXGywiBP4ws8+GVftFME2uWZ/gCeN/FI
KqrD1vJe30zRNFLcFmfFnyA=
=C2tO
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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
-~--~~~~--~~--~--~---



Re: some ACL stuff

2006-04-12 Thread Darian Anthony Patrick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In an application not at all like a blog, I do both, as (to keep with
your blog example) not all of my user's are allowed to modify their own
blog posts, but I still need to determine whether a blog post belongs to
the current user in order to facilitate UI changes.

[EMAIL PROTECTED] wrote:
 would it be bad form to mix ACL with a specific access check - to go
 back to the blog example, which I know is a bit too simple to be
 appropriate, but - would it be wrong to set say all children of the
 'members' ARO group had 'read' access to the blogs ACO group, adn then
 check if the logged in user matched the blog post author ID, or is it
 better practice to add an ACO for the blog post and match it to the
 author's ARO with READ/WRITE/UPDATE/DELETE access
 
 
  

- --
Darian Anthony Patrick [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEPXkJKpzEXPWA4IcRAllJAJ4rGrRvHp3MsqerSmqUyq78WHlx3gCeK6mU
+1JInGRPqgF5l1e5x7Mnq1g=
=3Qzo
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP 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
-~--~~~~--~~--~--~---