Two Cake applications sharing img/files directory

2006-06-08 Thread dudus

Hello,

I'm nearly finsihed with writing a medium sized page and the according
content magagement system. Both of them 100% cake. What I have not
thought about so far was, where to put images/files I upload through
the CMS that should obviously be available for display on the main
website. Any suggestions? Outside of both application in an upload
folder, inside one of the applications and configure the url in the
other?

Regards,

Thomas


--~--~-~--~~~---~--~~
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: Who's coming from ASP .net to Cake ?

2006-06-08 Thread Mika

I'm not sure what you find so tedious in that code considering that it
would be pretty much exactly the same in ASP.NET. Just substitute
Control.Text = blah for the $this-set commands :)


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Don't load all models at startup

2006-06-08 Thread Gonçalo Marrafa

Hi.

Is there a way of not loading all models automatically at the bootstrap?

As far as i can tell by looking at the code, all models are automatically
loaded in the bootstrap process. I can see the advantages of this, since
we don't have to care about loading them ourselves.

The thing is that in the app i'm building i will have over 200 models! At
each page request i will use half-a-dozen at most and, nevertheless, all
200 will be loaded!

Perhaps only the models used by the requested controller should be loaded
no? Is there something i'm missing?

Thanks in advance.

-- 
Gonçalo Marrafa [EMAIL PROTECTED]

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Make the $html-input tag also render errors when there's one.

2006-06-08 Thread [EMAIL PROTECTED]

I just wisht the $html-input() can also render error messages so we
don't have to type twice in generating forms.

It should be flag to be on or off so those who don't want the feature
can turn it off.


--~--~-~--~~~---~--~~
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: othAuth -- Where put files?

2006-06-08 Thread AD7six

Helpers are helpers ;)

http://manual.cakephp.org/chapter/9

See Using your Custom Helper

Cheers,

AD7six


--~--~-~--~~~---~--~~
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: Make the $html-input tag also render errors when there's one.

2006-06-08 Thread [EMAIL PROTECTED]

:-) Great idea. I'll do that and will also embed the error message in
the model so I only have to edit it there not in the html form.


--~--~-~--~~~---~--~~
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: Models and multiple tables

2006-06-08 Thread AD7six

Hi Sicapitan

What case/problem are you considering...?

You need a model file to define each of your models (Person.php,
Address.php, Order.php, OrderLine.php) so that Cake knows which models
exist. How else would cake know ...? Appart from looking for which
models are defined - to know their general characteristis and which DB
tables etc to look for -  cake doesn´t do much with the model files by
default.

If you wanted to display all of your models in a file tree (don't
understand why) that's not going to be a problem on Cake's side of the
fence. Can you clarify what you mean?

Cheers,

AD7six


--~--~-~--~~~---~--~~
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: File Not Found When Trying To Scaffold

2006-06-08 Thread AD7six

what does the error message say, and does the file exist?

Cheers,

AD7six


--~--~-~--~~~---~--~~
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: popular framework?

2006-06-08 Thread AD7six

Hi Mika,

There are only 3 ;), and if you are running in a production type setup,
there is only one that counts and it´s the one in your webroot.

http://manual.cakephp.org/chapter/3 (section Production Setup or
Alternative Installation Options)

Cheers,

AD7six


--~--~-~--~~~---~--~~
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: Don't load all models at startup

2006-06-08 Thread Felix Geisendörfer




Hi Gonalo,

I've looked at the code and I think I can confirm this behavior, of all
Model files being included, so I kind of support
this request. But may I ask what the heck you are working on?? 200
Models? That sounds just straight out crazy,
not even big systems like drupal/typo3/mamob/etc. do have that many
tables. I can hardly see why anybody would
use more then ~70 tables in a project (and that's kinda big already).
But maybe I've just never seen a project as big,
so sorry for my curiosity ... ; ).

Felix Geisendrfer aka the_undefined
--
http://www.thinkingphp.org
http://www.fg-webdesign.de



Gonalo Marrafa schrieb:

  Hi.

Is there a way of not loading all models automatically at the bootstrap?

As far as i can tell by looking at the code, all models are automatically
loaded in the bootstrap process. I can see the advantages of this, since
we don't have to care about loading them ourselves.

The thing is that in the app i'm building i will have over 200 models! At
each page request i will use half-a-dozen at most and, nevertheless, all
200 will be loaded!

Perhaps only the models used by the requested controller should be loaded
no? Is there something i'm missing?

Thanks in advance.

  


--~--~-~--~~~---~--~~
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: Don't load all models at startup

2006-06-08 Thread Gonçalo Marrafa

On Thu, 08 Jun 2006 13:12:08 +0200
Felix Geisendörfer [EMAIL PROTECTED] wrote:

 But may I ask what the heck you are working on?? 200 
 Models? That sounds just straight out crazy

We're (re)building a university's integrated information system. Our
current database has 237 tables, although some of them are many-to-many
relation join tables.

-- 
Gonçalo Marrafa [EMAIL PROTECTED]

--~--~-~--~~~---~--~~
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: File Not Found When Trying To Scaffold

2006-06-08 Thread AD7six

Hi theMaab,

Having read your message again,

If you are getting a standard 404 - File not found error message, you
probably need to either enable mod_rewrite or switch to using cake
pretty urls. If this is the case there are instructions at
http://manual.cakephp.org/chapter/3 section 4 .

If you are getting a cake error (an actual web page that says Missing
controller You are seeing this error because controller AsdfController
could not be found. or something similar) What is the error message.

Cheers,

AD7six


--~--~-~--~~~---~--~~
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: Models and multiple tables

2006-06-08 Thread sicapitan

just seemed a bit excessive to have 1,000,000 files for 1,000,000 tables


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Problems with TestSuite

2006-06-08 Thread [EMAIL PROTECTED]

Hi there,

I'm using TestSuite 1.0.0.5 (althout it says 1.0.0.0 in the browserm
but I downloaded it from http://cakeforge.org/projects/testsuite/)
together with CakePHP 1.1.3.2967 but cannot really get it to work.

In http://localhost/www/, there is my application running and when I
call http://localhost/www/test/index.php I get the following error that
might be related to the problems I have in general with the TestSuite:
Notice: Use of undefined constant CORE_PATH - assumed 'CORE_PATH' in
/Applications/MAMP/htdocs/www/cake/config/paths.php on line 44

When calling a simple test I've made
(http://localhost/www/app/webroot/test/index.php?case=models%2Fuser.test.phpapp=true)
the following returns:
Notice: Use of undefined constant CORE_PATH - assumed 'CORE_PATH' in
/Applications/MAMP/htdocs/www/cake/config/paths.php on line 44

Fatal error: Call to undefined function loadModelTest() in
/Applications/MAMP/htdocs/www/app/tests/app/cases/models/user.test.php
on line 3

Is it possible that 1.0.0.5 does not really work together with the
realease of CakePHP I'm using? And why is the TestSuite not part of
CakePHP?

Thanks,
  Dirk


--~--~-~--~~~---~--~~
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: Models and multiple tables

2006-06-08 Thread sicapitan

ill read that cheers :)


--~--~-~--~~~---~--~~
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: Who's coming from ASP .net to Cake ?

2006-06-08 Thread nate

As far as generateList( ), again: you could use afterFind to create the
concatentation as a virtual field.  With respect to your afterFind
problem, I assume that not all operations require all virtual fields,
so for the parts that don't, simply wrap them in:

if (isset($results[$i]['Model']['field1']) 
isset($results[$i]['Model']['field2'])) {
$results[$i]['Model']['new_field'] =
$results[$i]['Model']['field1'] . ' ' .
$results[$i]['Model']['field2'];
}

The other option would be to do a SELECT CONCAT(...) as field in your
field list.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



TestSuite: where is loadModelTest?

2006-06-08 Thread [EMAIL PROTECTED]

Hi again,

I currently got around the bugs I described before (even I really would
like to have them fixed officially), but now got stuck with how to use
the test code I got from bake:
?php

loadModelTest();

class UserTestCase extends UnitTestCase
{
var $object = null;

function setUp()
{
$this-object = new User();
}

function tearDown()
{
unset($this-object);
}

function testMyfunction()
{
$a = $this-object-test();
$this-assertEqual( abcf, $a );
}
}
?

loadModelTest() is not found (can't blame PHP, as even Google cannot
find it), but when I just leave it out, the class User is not found.
Telling the TestSuite how to use it via var $uses = array(...) is not
working.

So, what's the offical way? I currently find it very disturbing, that
the TestSuite is something external that is so badly integrated into
the current CakePHP release. Any plans on changing that?

Thanks,
  Dirk


--~--~-~--~~~---~--~~
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: TestSuite: where is loadModelTest?

2006-06-08 Thread Larry E. Masters aka PhpNut
It is not badly integrated as I am the one who wrote it. -- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @accesspublic
*/On 6/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:Hi again,I currently got around the bugs I described before (even I really would
like to have them fixed officially), but now got stuck with how to usethe test code I got from bake:?phploadModelTest();class UserTestCase extends UnitTestCase{var $object = null;
function setUp(){$this-object = new User();}function tearDown(){unset($this-object);}
function testMyfunction(){$a = $this-object-test();$this-assertEqual( abcf, $a );}}?loadModelTest() is not found (can't blame PHP, as even Google cannot
find it), but when I just leave it out, the class User is not found.Telling the TestSuite how to use it via var $uses = array(...) is notworking.So, what's the offical way? I currently find it very disturbing, that
the TestSuite is something external that is so badly integrated intothe current CakePHP release. Any plans on changing that?Thanks,Dirk
--~--~-~--~~~---~--~~
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: popular framework?

2006-06-08 Thread nate

Actually, I lied.  Based on a comparison of the number of users in
Symfony's forum to the number in ours, we have 80% more active users,
and are on track to double them in the next month or two.


--~--~-~--~~~---~--~~
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: TestSuite: where is loadModelTest?

2006-06-08 Thread [EMAIL PROTECTED]

Hi Larry,

 It is not badly integrated as I am the one who wrote it.

Sorry, I didn't mean to accuse anyone.

The thing is: I needed to install it after an extra download, although
testing should be a *very important* part of the whole development
process.

The only available documentation is
http://wiki.cakephp.org/tutorials:testing_cake_apps. Do you have
anything else available right now? Because currently it is not working
out of the box:
http://groups.google.com/group/cake-php/browse_thread/thread/008815708bcb1c8b

Maybe I fixed it in a wrong way, but then it would be great if you
could provide me with the correct fix.

Thanks,
  Dirk


--~--~-~--~~~---~--~~
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: DboSource::showLog and ajax.

2006-06-08 Thread josh robb

nate,

Thanks for that - that works great! I've got one more related question
for the group.

I've had to make a small change to DboSource::showLog() to add a div
id=sqllog /div wrapper to the whole thing. (Guess I could have
added an id= to the table on reflection). This allows me to hide the
query results by default and have them shown using a little control
pannel I create using CSS.

Two questions:

1. Is there a better way to do this without modifying the core libs?
if not then...
2. Would this be useful to anyone else? or does it seem like a good
idea? Probibally the nicest thing would be to have something like
$cakeDebug for the sql log - then people could do what they want with
it. 

j.


--~--~-~--~~~---~--~~
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: Models and multiple tables

2006-06-08 Thread nate

sicapitan wrote:
 just seemed a bit excessive to have 1,000,000 files for 1,000,000 tables

Have you ever been to an airport in the US, and seen that big glass
container that shows all the things you're not allowed to bring on an
airplane?  Well, at the John Wayne Airport in Orange County,
California, one of the things in the container is a leaf blower
(http://www.hardwareworld.com/files/pi/bM/F/TVE3.jpg).

The point of all this is that if you have an application that actually
needs a million tables, it's sort of like having a job that requires
you to bring a leaf blower on an airplane: you really need to stop and
rethink a few things.

That said, I'm currently in the process of writing an add-on to an
application that has 663 tables.  Yes, some of them are a bit
redundant, and fortunately I don't have to use all of them, but I did
try once, and a few things struck me:

(1) Since PHP is such a kick-ass language, and since Cake is such a
kick-ass framework, it took me about 5 minutes to put together a script
that generated model files for all 663 tables (some of them were join
tables, so I had to go back and delete those).

(2) Since the client's production server has APC installed, loading
600+ models had surprisingly little impact on performance (probably
because most of them were empty shell classes).

In conclusion, stop complaining.  Having to have one whole file for
every table you want to use in an application is a pathetically small
price to pay when you consider that the majority of the time, this is
just about the best way out there to structure any application, let
alone a PHP application.


--~--~-~--~~~---~--~~
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: DboSource::showLog and ajax.

2006-06-08 Thread nate

We're working on making the debug settings slightly more flexible for
Cake 2.0.  Adding an id to the table is also a reasonably good idea.
If you go to https://trac.cakephp.org, you can submit an enhancement
ticket for it.


--~--~-~--~~~---~--~~
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: Don't load all models at startup

2006-06-08 Thread nate

http://groups.google.com/group/cake-php/msg/0ea232e941449914

I'm guessing the performance part is your biggest concern here, so just
read the part of the message after (2).


--~--~-~--~~~---~--~~
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: DboSource::showLog and ajax.

2006-06-08 Thread josh robb

Cool - I'll do that - after thinking about it I'd prefer that the
query log got included with $cakeDebug - or maybe a seperate variable.

j.

On 6/8/06, nate [EMAIL PROTECTED] wrote:

 We're working on making the debug settings slightly more flexible for
 Cake 2.0.  Adding an id to the table is also a reasonably good idea.
 If you go to https://trac.cakephp.org, you can submit an enhancement
 ticket for it.


 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



NO 1 website for IT Jobs

2006-06-08 Thread Smith




Hello and Hi
Today, I tell you another Best 
Website for finding the best job.
Please check this link and enjoy 
your dream job.

http://www.it-jse.com

Special thing about this website 
is, they are presenting direct links to jobs. 
They are using only Direct 
Employers and not using Staffing Companies, Contract firms, Agencies, 
recruiters.
I have checked this website
Warm 
regards
Bruce 
Smith
--~--~-~--~~~---~--~~
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: DboSource::showLog and ajax.

2006-06-08 Thread nate

Just kidding, forget about it.  I already added the table id thing.  It
should show up in the nightlies in the next few days.

If you want to keep debug mode on, but not show the query dump, just
set DEBUG to 1.


--~--~-~--~~~---~--~~
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: Problems with DocumentRoot on Mac

2006-06-08 Thread [EMAIL PROTECTED]

So I think I finally got Cake working on a Mac.  Here's what I did:
 - reinstall OS X 10.4  get all updates
 - install MySQL 5 from www.mysql.com
 - install php5 from www.entropy.ch
 - install TinkerTool from http://www.bresink.de/osx/TinkerTool.html to
show hidden files (you'll need this to view hidden files otherwise
you'll lose your .htaccess file which is very bad!)
 - download latest CakePHP  extract
 - delete everything in /Library/WebServer/Documents
 - copy all Cake files  folders (app/, cake/, vendors/, index.php,
VERSION.txt, and .htaccess) to /Library/WebServer/Documents
 - edit httpd.conf so it says AllowOverride ALL in the DocumentRoot's
Directory section
 - recursively allow read  write access to app/tmp folder  all its
subfolders (do this by doing Get Info on tmp folder)
 - http://localhost should now load the Cake welcome page with all its
images  layout
 - the 15 minute blog tutorial (http://manual.cakephp.org/chapter/18)
then worked just fine

Hopefully this post can be a reference for others in the future - if
someone wants to steal this text for docs or a wiki, be my guest!


--~--~-~--~~~---~--~~
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: Problems with DocumentRoot on Mac

2006-06-08 Thread scott lewis


On 8-Jun-06, at 12:44 PM, [EMAIL PROTECTED] wrote:


 So I think I finally got Cake working on a Mac.  Here's what I did:
  - reinstall OS X 10.4  get all updates
  - install MySQL 5 from www.mysql.com
  - install php5 from www.entropy.ch
  - install TinkerTool from http://www.bresink.de/osx/ 
 TinkerTool.html to
 show hidden files (you'll need this to view hidden files otherwise
 you'll lose your .htaccess file which is very bad!)
  - download latest CakePHP  extract
  - delete everything in /Library/WebServer/Documents
  - copy all Cake files  folders (app/, cake/, vendors/, index.php,
 VERSION.txt, and .htaccess) to /Library/WebServer/Documents
  - edit httpd.conf so it says AllowOverride ALL in the  
 DocumentRoot's
 Directory section
  - recursively allow read  write access to app/tmp folder  all its
 subfolders (do this by doing Get Info on tmp folder)
  - http://localhost should now load the Cake welcome page with all its
 images  layout
  - the 15 minute blog tutorial (http://manual.cakephp.org/chapter/18)
 then worked just fine

 Hopefully this post can be a reference for others in the future - if
 someone wants to steal this text for docs or a wiki, be my guest!

You really want to get familiar with Terminal (/Applications/ 
Utilities/Terminal.app). It will greatly simplify things compared to  
having to move files around in the Finder. (Plus, you don't have to  
deal with messing up your finder windows -- I prefer my home  
directory to at least look clean.) Four lines of typing is much  
simpler than bouncing around a bunch of Finder windows. And when you  
start factoring in other tools such as version control or managing  
multiple projects on your machine, the GUI complexity skyrockets  
while the CLI remains fairly constant.

To do everything from 'download Cake' onwards is just this:

rm -r /Library/WebServer/Documents/*
svn export 'https://svn.cakephp.org/repo/trunk/cake/1.x.x.x' Library/ 
WebServer/Documents
chmod -R a+rw Library/WebServer/Documents/app/tmp
EDITOR /etc/httpd/httpd.conf

where EDITOR is mate/bbedit/edit/see/vi/emacs/pico depending on  
whether you prefer TextMate, BBEdit, TextWrangler, SubEthaEdit, vi,  
emacs, or pico.


For myself, I use a custom-built PHP, Fast-CGI and Lighttpd to run my  
apps locally, and Capistrano to push them out to the server. Each app  
gets it's own port number on my machine and it's own domain (or  
subdomain) on the actual server. And I've got a Rakefile for each  
project that gives me a quick set of useful shortcuts. Add in a  
skeleton application in version control and starting a new project is  
just a matter of:

svk sync //mirror/cake
svk smerge //mirror/cake //local/numa/skeleton/trunk -m syncing cake
svk cp //local/numa/skeleton //local/numa/current/project-name -m  
creating project-name project
svk co //local/numa/current/project-name
cd project-name
mate config/lighttpd.conf config/deploy.rb
[alter a few settings in the config files]
rake server:start
mate trunk
mysqladmin -uroot -p create project-name
echo GRANT ALL ON project-name.*TO 'project-name'@'localhost'  
IDENTIFIED BY 'password'; | mysql -uroot -p project-name

I should probably get around to wrapping all that in a shell script,  
but I don't type it enough for it to actually bug me. :) Basically,  
that just:

updates my local copy of the CakePHP trunk
copies any changes in trunk to my skeleton project
makes a copy of the skeleton project in source control
checks out the new project
opens the Lighttpd and Capistrano config files for editing
creates a new TextMate Project for the project's trunk
creates the database
creates the db user

I generally copy the database.php.default file in the Finder and edit  
in the new DB settings by hand. Again, I should probably automate  
that, but old habits die hard. :)


I'm trying to convince you that the command line is a really useful  
tool (on *nix machines at least) and will save you time. Plus, if you  
ever have anyone looking at your screen, typing three words and  
having a nice long capistrano or svk progress transcript flow past  
can be rather impressive. :)

s.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Web host doesn't use AllowOverride

2006-06-08 Thread [EMAIL PROTECTED]

My web host (netfirms.com) apparently doesn't use the AllowOverride
setting in the Directory section of httpd.conf.  Is there any way I
can get around this to still use Cake on their server?


--~--~-~--~~~---~--~~
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: Layout Help

2006-06-08 Thread Garth Braithwaite

IT makes perfect senses.  Question number two is solved.  On question
one I figured that was the answer, but I guess my real question is how
do I retrieve the title of the blog post from the database in the
controller before I use $this-pageTitle = $PostTitle;?   I know how to
do this using php, but I am guessing there is a cleaner way to do in
the cake php.


--~--~-~--~~~---~--~~
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 host doesn't use AllowOverride

2006-06-08 Thread Zach Cox
Is there anything special you have to do? Or does Cake figure it out for you?Thanks,ZachOn 6/8/06, nate 
[EMAIL PROTECTED] wrote:You can use Cake with or without mod_rewrite (AllowOverride) enabled.


--~--~-~--~~~---~--~~
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 host doesn't use AllowOverride

2006-06-08 Thread RosSoft

If you don't have mod_rewrite, uncomment define('BASE_URL' from
app/config/core.php


--~--~-~--~~~---~--~~
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 host doesn't use AllowOverride

2006-06-08 Thread Zach Cox
They said they have mod_rewrite but there's no AllowOverride in httpd.conf and they won't put it in. Will commenting that line out still work?On 6/8/06, 
RosSoft [EMAIL PROTECTED] wrote:
If you don't have mod_rewrite, uncomment define('BASE_URL' fromapp/config/core.php
--~--~-~--~~~---~--~~
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: how to use an image as input button in the cake's way ?

2006-06-08 Thread Daneel

Do you mean something like this?
https://trac.cakephp.org/ticket/770


--~--~-~--~~~---~--~~
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: File Not Found When Trying To Scaffold

2006-06-08 Thread theMaab

Hello AD7six,

I'm running Apache on Windows (with WAMP).  I did a quick test and
mod_rewrite is not working, I didn't think it did in windows.

But, I did have Cake up and running w/ WAMP before.  And I didn't have
to do anything special to get it working then.  That is why I assumed
something else was wrong.

When trying to goto:
http://localhost:/onthetee/fees/ (my controller and model is called
fees/fee)

I get the message in my browser:
The requested URL /onthetee/fees was not found on this server.

Thanks for your help, really appreciated,
theMaab


--~--~-~--~~~---~--~~
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: File Not Found When Trying To Scaffold

2006-06-08 Thread theMaab

BTW, the error is a 404 Not Found in browser title, but does not say
404 in the body


--~--~-~--~~~---~--~~
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: Don't load all models at startup

2006-06-08 Thread [EMAIL PROTECTED]

nate wrote:
 I'm guessing the performance part is your biggest concern here, so just
 read the part of the message after (2).

You got it! However small the performance impact is, i still think it
would make much more sense to only load needed models. In a server
serving over 7000 users, with peak rates of hundreds of simultaneous
users, even with code accelarators, the server load certainly impacts.
And, for what i can see, it's not that big of a change, so...

Regards.


--~--~-~--~~~---~--~~
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: othAuth -- Where put files?

2006-06-08 Thread pat

If I had been using phpcake for 3 months it would probably have been
clear to me where it should go, but its been about 3 weeks so you'll
need to bear with the n00b questions for the time being.

thanks Oth for making this available.

Pat.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Videos not working...Plugin?

2006-06-08 Thread clenard

Hey guys,

  I've been trying to see the Videos on the site but I keep getting
errors without any Plugin messages, etc. Is there a Plugin I should try
to download or something?

I love the fact that there's videos associated with this Framework and
would love to check them out! :-)

Thanks,

Clint


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Cake for Intranet development

2006-06-08 Thread Leandro Ardissone

Hi,

I'm near to start a new project, a company management tool, and I'm
interested to know about speed and stability of Cake for a robust
intranet application instead of do everything from scratch and
customized.

The intranet have around 300 continous users and the application will
have many requests at the same time.

What do you think?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



updating a record

2006-06-08 Thread monty

Hi to all cake bakers,
I am using session based authentication and I want to update a record
based
on information supplied on a form submission.

If i use the standard save function, the record will be saved based on
the id of the record i supply
update some record WHERE ID = $ID

The problem is that I want to update a record based on the id and the
session_id
update some recored WHERE ID = $ID and client_id = $SESSION_ID

This ensures that each client can only update their own records in a
table based on the session id.

Seeing as how there is no update method in cake, how do i do this?

Cheers.


--~--~-~--~~~---~--~~
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 for Intranet development

2006-06-08 Thread Samuel DeVore
It really depends on what you are talking about with modules, probably the cake equivalent to what most people are referring to with modules. Would be the plug in notion. Where one can have mostly self contained functionality that may be shared among multiple 'applications' I believe there are some examples to be found in the 
cakeforge.org site. And there is some documentation in the release notes as well. There is also some information in the manual, oddly enough in the section entitled 'Plugins' 
http://manual.cakephp.org/chapter/21If this was not what you are talking about let us know how you are thinking about modules and we can help steer you to the CakePHP construct.There are also 'Helpers' - common functionality to extend and enhance views
'Components' - common functionality to extend and enhance controllersand coming soon I think'Behaviours' - same thing but with models in mind.Sam DOn 6/8/06, 
Leandro Ardissone [EMAIL PROTECTED] wrote:
great, thanks nate..and what about of upgradability..I mean, the creation of quick-to-install modules to upgrade easily oncethe server is in production.bc I see that the structure of Cake doesn't allow modules in an easy
way.. which is your suggestion in this case? elements maybe?thanks

--~--~-~--~~~---~--~~
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 for Intranet development

2006-06-08 Thread Samuel DeVore
I have to apologize it seems that the manual section on plugins is empty, sorrySam DOn 6/8/06, Samuel DeVore 
[EMAIL PROTECTED] wrote:It really depends on what you are talking about with modules, probably the cake equivalent to what most people are referring to with modules. Would be the plug in notion. Where one can have mostly self contained functionality that may be shared among multiple 'applications' I believe there are some examples to be found in the 
cakeforge.org site. And there is some documentation in the release notes as well. There is also some information in the manual, oddly enough in the section entitled 'Plugins' 

http://manual.cakephp.org/chapter/21If this was not what you are talking about let us know how you are thinking about modules and we can help steer you to the CakePHP construct.There are also 'Helpers' - common functionality to extend and enhance views
'Components' - common functionality to extend and enhance controllersand coming soon I think'Behaviours' - same thing but with models in mind.Sam D
On 6/8/06, 
Leandro Ardissone [EMAIL PROTECTED] wrote:

great, thanks nate..and what about of upgradability..I mean, the creation of quick-to-install modules to upgrade easily oncethe server is in production.bc I see that the structure of Cake doesn't allow modules in an easy
way.. which is your suggestion in this case? elements maybe?thanks




--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---