Re: Sad Question

2007-11-17 Thread nate
Alright, Alright, I'll install IIS7 this week, I promise. On Nov 17, 6:17 pm, Baz <[EMAIL PROTECTED]> wrote: > I assumed he was trying to use PHP under IIS. > > On Nov 17, 2007 5:06 PM, Wayne Fay <[EMAIL PROTECTED]> wrote: > > > > > I run Apache plus Cake and Mysql on Windows all the time. And se

Hit logging in Cake

2007-11-17 Thread Rick
Hi all. I have a simple (I hope) question. I want to add some hit logging to my site. I created a 'Log' table, controller, view etc, but the question is how do I assure that a new Log record is created and saved on every page load. I was thinking about putting it at the end of the default.thtm

Latest additions to 1.2

2007-11-17 Thread Gwoo
Several people voiced opinions about plugins and in an effort to make them more flexible we added the functionality to access models across plugins and the main application in the current 1.2 branch. Use the dot notation "Plugin.Model" to access models in the plugin and "Model" to access the model

Re: Sad Question

2007-11-17 Thread Baz
I assumed he was trying to use PHP under IIS. On Nov 17, 2007 5:06 PM, Wayne Fay <[EMAIL PROTECTED]> wrote: > > I run Apache plus Cake and Mysql on Windows all the time. And servers > are generally Apache on Linux. I change the config file at the start > of a new project, sync the rest over durin

Re: Sad Question

2007-11-17 Thread Wayne Fay
I run Apache plus Cake and Mysql on Windows all the time. And servers are generally Apache on Linux. I change the config file at the start of a new project, sync the rest over during development, and everything just works. Wayne On 11/17/07, Baz <[EMAIL PROTECTED]> wrote: > I say slap WAMP on th

Re: Sad Question

2007-11-17 Thread Baz
I say slap WAMP on there and call it a day :D. Sorry dude, it does suck. On Nov 17, 2007 2:19 PM, Christopher E. Franklin, Sr. < [EMAIL PROTECTED]> wrote: > > Hi, John. Thanks for the reply and I totally agree with you on this > one but, the descision was made based on an idiot in Indiana who >

Re: Auth component -- can use empty login function?

2007-11-17 Thread Dodger
Perhaps not a bug, but on error I'd like to go to the site index (/), as my login form is on all pages. Currently, the user is redirected to the loginAction, it seems, or maybe it's the HTTP referrer (would have to check the code). D. Dodger wrote: > > I have this working now, I believe. How

Re: Issue on IIS

2007-11-17 Thread Christopher E. Franklin, Sr.
Same problems here with IIS buddy, cake just was not meant for IIS not matter what anyone else says On Oct 12, 10:21 am, patcoll <[EMAIL PROTECTED]> wrote: > I'm having some problems with simple page dispatching on IIS. After > circumventing the BASE_URL routing, which doesn't work on this IIS >

Re: Sad Question

2007-11-17 Thread Christopher E. Franklin, Sr.
Hi, John. Thanks for the reply and I totally agree with you on this one but, the descision was made based on an idiot in Indiana who already signed and payed 2.5 million to Microsoft to come in and revamp our whole communications network from Great Plains accounting servers to all TV channel and n

Re: Auth component -- can use empty login function?

2007-11-17 Thread Dodger
Hi francky06l, I do need authentication, that line is just temporary to allow access to test the login process. I've had to change it since because of another bug mentioned in my second message. Code is now (temporarily): Security::setHash('md5'); $this->Auth->loginRedirect = '/';

Re: Sad Question

2007-11-17 Thread Christopher E. Franklin, Sr.
To be honest, I just copied everything over the first time and forgot about the tmp dir. After seeing that the Session component was not being loaded from my copy of app_controller, I deleted the cache in the tmp dir and double checked my core.php to make sure I had the Env thing uncommented. Unf

Re: Auth component -- can use empty login function?

2007-11-17 Thread Dodger
I have this working now, I believe. However, on error, I am still being redirected to /users/login. Seems to be mentioned here (along with other bugs): http://groups.google.com/group/cake-php/browse_thread/thread/9026125f87c173f2/6b28fe4632b5a24c?hl=en&lnk=gst&q=auth#6b28fe4632b5a24c Still not

Re: Auth component -- can use empty login function?

2007-11-17 Thread francky06l
I wounder why to use Auth if you do not need any authentication. Now allowing everything and be redirected to login ..is strange. You can set the login function for Auth to be null (never tried this), or any function of your choice .. What is the "rest" if no authentication ? cheers On Nov 17

Auth component -- can use empty login function?

2007-11-17 Thread Dodger
Hi, It was, at one stage, possible to use an empty login function and for the Auth component to do the rest -- is this still so? I have this in my app_controller beforeFilter(): $this->Auth->allow('*'); $this->Auth->loginRedirect = '/'; And an empty login() function in my users_contro

Re: Bake suggestion

2007-11-17 Thread Baz
I think I know what he's talking about. I recently wrote a post on this at: http://www.webdevelopment2.com/ (but it's scheduled for Monday, so it's not out yet :) ) Um...you don't Google much do you? "cakePHP bake" http://cakebaker.42dh.com/tags/bake/ The only thing you REALLY have to step thro

Re: ajax multiple div update

2007-11-17 Thread Luigi
It wasn't a question of version number. The div had to be present in the old and in the new page. I was trying to update the div "first" in my pages/home.ctp with controller/test.ctp It didn't work until I add div "first" definition to my controller/test.ctp Hope it helps someone On Nov 16, 20

Re: Bake suggestion

2007-11-17 Thread Chris Hartjes
On Nov 17, 2007 6:11 AM, RichardAtHome <[EMAIL PROTECTED]> wrote: > > > When it comes to baking the app, I have to run the bake script 60 > times to build the app (30 for the controllers, 30 for the views). You > can guess how tedious this becomes during the course of a day... > Perhaps I'm misun

Re: Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object

2007-11-17 Thread dandreta
Any suggestion? I have been a lot of time trying to solve the problem but I don´t know because the warning happens and I do not find a solution.Please,help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" g

Re: Using models with plugins in CakePHP 1.2

2007-11-17 Thread Aaron Shafovaloff
I'd have to agree with some folks here---it'd be great if plugins could "plugin" into the existing application and have access to the main app's models, etc. Perhaps plugins could be split into two types? One of the reasons Wordpress is so popular is its plugin system (which tap into the larger a

Re: controller action in beforeSave() ?

2007-11-17 Thread francky06l
Maybe if($this->action == 'activate') .. On Nov 17, 4:54 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > i am CakePHP newbie and I have problem. In my register user area(model > User) I used beforeValidate, beforeSave, and afterSave functions. Body > of this functions I need only with

controller action in beforeSave() ?

2007-11-17 Thread [EMAIL PROTECTED]
Hi, i am CakePHP newbie and I have problem. In my register user area(model User) I used beforeValidate, beforeSave, and afterSave functions. Body of this functions I need only with action: register. For other actions I don't need them, but when i use other actions they are used. I tried: if (!iss

Re: Aliases in paginate()

2007-11-17 Thread [EMAIL PROTECTED]
for same purposes you can use TrueFieldBehavior. It allow to declare witch fields you need to add during fetch. var $actsAs = array( 'TrueField' => array ( 'subj_id' => "concat(subject,' (',id,')')", 'subj_body' => "concat('

Re: AuthComponent problems when using with Admin Routing

2007-11-17 Thread glassy
Thanks! A) worked of course, pretty simple workaround. I'll use that. B) didn't seem to work for me. On Nov 17, 7:17 pm, Marcin Domanski aka kabturek <[EMAIL PROTECTED]> wrote: > hmm you can > A) make an empty action admin_login to redirect > B) spcify 'admin' => false in the login url in the au

Re: Beginner: How to access several tables on one page?

2007-11-17 Thread [EMAIL PROTECTED]
If you have a controller that presents a view for each table you can call your controllers an present them in the app/views/pages/home.thtml in this way requestAction("controller/action/param1/param2", array('return')); ?> If your controller action does not have a view and it is just a function

Re: AuthComponent problems when using with Admin Routing

2007-11-17 Thread Marcin Domanski aka kabturek
hmm you can A) make an empty action admin_login to redirect B) spcify 'admin' => false in the login url in the auth component (not tested but should work) hth, kabturek On Nov 16, 7:34 pm, glassy <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm starting to use AuthComponent and I'm also using Admin R

Re: Cstom patameters with pagination

2007-11-17 Thread ianh
Tell your options array in your view what params you want to pass. This is a code fragment from my applications: params['pass']); ?> options($options); ?> HTH, Ian On Nov 16, 3:13 pm, Charlie van de Kerkhof <[EMAIL PROTECTED]> wrote: > Hi, > I know there is a lot about pagination on this group,

Bake suggestion

2007-11-17 Thread RichardAtHome
I'm posting this here to get some feedback from the community before I post a ticket: Bake is great! but for me it's missing a critical bit of functionality: A 'Bake All' My current project has about 30 tables in. During the development stage I've been customising the bake view templates to give

Re: Sad Question

2007-11-17 Thread RichardAtHome
How did you port the code over? Did you copy the whole web folder over in one go? This doesn't work (unless both systems are 100% identical). You will get error all over the place because you copied over the cache from the old system and cake (quite rightly) gets confused (files are no- longer w

Re: ajaxHelper::observeField - observes text field onBlur, not onChange

2007-11-17 Thread senser
I can't understand why every time I start a new discussion here (writing the first post) the post is submiited twice. That happens every time and I press "Submit" button just once .. On Nov 17, 1:00 pm, senser <[EMAIL PROTECTED]> wrote: > Hi, > I have a form where users must selec

ajaxHelper::observeField - observes text field onBlur, not onChange

2007-11-17 Thread senser
Hi, I have a form where users must select from over 11000 records in list_box. I'm using ajax to observe text field and update select to reduce high load when loading page (If I populate list box with 11K records page renders very slow). So the problem is that $ajax->observeField() triggers not on

ajaxHelper::observeField - observes text field onBlur, not onChange

2007-11-17 Thread senser
Hi, I have a form where users must select from over 11000 records in list_box. I'm using ajax to observe text field and update select to reduce high load when loading page (If I populate list box with 11K records page renders very slow). So the problem is that $ajax->observeField() triggers not on

Re: mod rewrite or .htaccess issue

2007-11-17 Thread laeffe
Hi, I hade big problems trying to use mod_rewrite with apache in my home dir when i tried to setup cake. But i solved it by adding RewriteBase to more or less all of the .htaccess files. Did somthing like this: (in all .htaccess) RewriteBase /~username/the/folder/that/this-file-is/in/ If you a

Re: Cake Schema issue ?

2007-11-17 Thread FoxMaSk
with cakephp 1.1.x.x : is it normal to allocate a so big memory size to use bake ? at the beginning i used 16M but i had to grow up memory limit to 200M ! for finnally see no controller generated as requested :( D:\wamp\www_cakephp_1.1\cake\scripts>dir ..\..\app\controllers Répertoire de D:\wam