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

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

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

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

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

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

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

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

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

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.

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

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

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

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

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]

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

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

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

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

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

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

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,

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

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

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

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

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

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

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/

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

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,

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

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

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

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

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

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

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

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

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,

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

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

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

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