Re: Problem with accessing cake application

2006-05-11 Thread calzone
If this is your machine, you may want to consider installing cake under /Library/WebServer/Documents/ or modifying /etc/httpd/httpd.conf to point Document Root directly at either your cake folder or cake's webroot. --~--~-~--~~~---~--~~ You received this message

Re: beforeFilter

2006-05-11 Thread calzone
Just to be clear, I created a file named app_controller.php and put it in my app folder, so it's at the same level as my model, view, and controller folders. The first thing I tried was using a class inside app_controller.php. I soon realized I had no idea what it should be called. I tried

www.designwebgraphic.com - for all PHP hunters!..

2006-05-11 Thread DesignWebGraphic.Com
Hey guys, Look at this website: www.designwebgraphic.com - such an excellent way to represent on the web!.. WOW... A web design company on the block with ultimate and unique designs. http://www.designwebgraphic.com - Mitul Bhavsar (Web Designer). [EMAIL PROTECTED] +91-9825095314

application variables?

2006-05-11 Thread calzone
Are there any kind of plans to introduce something along the lines of Application Variables? Way back in the day, I used to build asp sites and I found lots of use for application vars and global.asa. Today, I can't stand asp(x) and really love php, but I find myself missing application

Re: Problem with accessing cake application

2006-05-11 Thread BoBB
I was actually thinking about setting up a virtual host to deal with the problem. But just pointing the document root at it might be easier.On 5/10/06, calzone [EMAIL PROTECTED] wrote:If this is your machine, you may want to consider installing cake under /Library/WebServer/Documents/ or

Re: application variables?

2006-05-11 Thread RosSoft
What are application variables? A persistent variable common to all the requests? You can do it in php through shmem, but you can have problems of race conditions, it needs semaphores,etc. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: application variables?

2006-05-11 Thread calzone
Nice. I had no idea about shmem. Just took a quick look and it seems to be about what I was thinking about. Yes, in asp, there was this command called application.lock, or some such, during which you could update the application variables if you needed to avoid race conditions. However, I tend

Accessing other models inside a model

2006-05-11 Thread Gonçalo Marrafa
Hi. Can i access other models from within a given model? My idea is to create a model for a view and then override the save() method to save the data to the appropriate tables. Example: Say we have two tables: a, with fields id and name, and b, with fields id, name and a_id. We also have a

Re: Record locking at the model level

2006-05-11 Thread calzone
Right. Silly me, I mixed up the two when in fact they are incompatible. They do share innodb however. I apologize for that. Sorry, I can't be very helpful in this regard. I would, however, have high hopes for a couple custom queries. I _think_ it would be something like this:

Re: Getting Bake.php to work

2006-05-11 Thread Mika
Ok, a bit more info. You need to put the path to your php.exe file in your PATH environment. Once you do that, open a cmd window and go to the /cake/scripts directory. Once there just type php bake.php. --~--~-~--~~~---~--~~ You received this message because

Re: Session issue

2006-05-11 Thread AD7six
[EMAIL PROTECTED] wrote: Ok, that sounds good to me but since I'm using the default CakePHP template (for now) how can I specify a favicon path? Create /view/layouts/default.thtml (or copy the one from inside the Cake folder) and change this line in your layout to be an absolute path: link

Session weirdness with IE

2006-05-11 Thread Langdon Stevenson
Looking back through the archive there seems to be issues with IE and sessions. I have worked through suggested solutions with no luck. My problem: Using Firefox I can log in to my application successfully and session data is set and retrieved without any problem. However switch to IE and

Re: Session weirdness with IE

2006-05-11 Thread AD7six
Don´t feel lonely Langdon ;), I don´t know what info you have already tried out. For myself, a long time ago, the problem turned out to be having a _ in the URL - apparently IE doesn´t work well with none alphanumeric characters in URLs. What OS are you running? You´ll probably find that this

Re: Using DBG debugger in phpEclipse with cake application

2006-05-11 Thread Pepepaco
I followed the steps outlined on http://www.plog4u.org/index.php/Using_PHPEclipse_:_Installation_:_Installing_the_DBG_Debugger. But it didn't work until I wrote [EMAIL PROTECTED]:10001 on the Debug configuration, Arguments tab, Program Arguments edit box.

Cake Nightly 10_05 problems

2006-05-11 Thread Dusty
Hello, I am getting errors from initial install of the cake_nightly builds. These same errors do not occur from the current stable version posted a few days ago. My configuration/file permissions are exactly the same. Can some please give me some adivce as to what is wrong ?? Warning:

Re: Session weirdness with IE

2006-05-11 Thread Langdon Stevenson
OH MY GOD!!! I read your post and glanced at the URL of my application. There staring me in the face was an underscore... Yesterday I moved the project to a different development server that (for some stupid reason) had an underscore in the name: dev_2. I removed the underscore and now it

Re: Getting Bake.php to work

2006-05-11 Thread David Spitzley
[EMAIL PROTECTED] 05/11/06 6:04 AM Ok, a bit more info. You need to put the path to your php.exe file in your PATH environment. Once you do that, open a cmd window and go to the /cake/scripts directory. Once there just type php bake.php. -

Re: Using DBG debugger in phpEclipse with cake application

2006-05-11 Thread RosSoft
When I click in debug icon, it automatically calls my root cake url and appends [EMAIL PROTECTED]:10001 Then I put the real url that I want to debug If I put the url with DBGSESSID at firefox it works also --~--~-~--~~~---~--~~ You received this message because

liens cachés réservés à l'administrateur

2006-05-11 Thread manaboko
Bonjour à tous, je suis un débutant à cakePHP et j'aimerais savoir comment est-ce qu'on peut cacher des éléments (par exemples des liens vers des pages reservées à l'administrateur du site)? Lorsque l'utilsateur entre dans le site, il y a une page d'accès(login/password), et si l'utilisateur

Re: How to let form have more fields than model

2006-05-11 Thread GregL
Thanks for the replies. What I learned, though, is that you can have extra fields in the data and save() won't error out, it just puts in what matches the DB and ignores what doesn't. It's useful in my case, but I wonder if it's actually a bug -- you won't get an error if you misspel a field for

Single field, multiple validation errors

2006-05-11 Thread GregL
My sign-up form can have two errors associated to the Username: leaving it blank is an error, and choosing an existing name is a different error. The way I discovered I could deal with this is ?php echo $html-tagErrorMsg('User/UserName', 'Username is required.br') ? ?php echo

Re: Record locking at the model level

2006-05-11 Thread calzone
Are you looking to lock the record for more than just an instant in time? Do you mean you need to protect records as if you were checking out code until the user checks it back in (for instance a person is editing the contents of an article that someone else would otherwise also have permission

Re: Session issue

2006-05-11 Thread [EMAIL PROTECTED]
THANKS! Problem solved! ;) --~--~-~--~~~---~--~~ 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

Re: Cake Nightly 10_05 problems

2006-05-11 Thread Larry E. Masters aka PhpNut
It looks like you are trying to use the trunk version of the 2.0 code which does not work.-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut * @accesspublic*/ --~--~-~--~~~---~--~~ You received this message

Re: Cake Nightly 10_05 problems

2006-05-11 Thread Dusty
Larry, Yep, thats it thanks !! So what is the 2.x.x.x. build for ?? --dusty --~--~-~--~~~---~--~~ 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: Cake Nightly 10_05 problems

2006-05-11 Thread Larry E. Masters aka PhpNut
It is for our 2.0 branch when we start working in it.I am removing the build now so others do not get confused.-- /*** @author Larry E. Masters* @var string $userName* @param string $realName * @returns string aka PhpNut* @accesspublic*/ Larry,Yep, thats it thanks !!So what is the 2.x.x.x. build

Re: Cake Nightly 10_05 problems

2006-05-11 Thread Samuel DeVore
It seems to me that you did not update the contents of your app/core folder? in particular the inflector.php file in core/On 5/11/06, Dusty [EMAIL PROTECTED] wrote:Larry,I was wrong, there is still a problem.As I said in my first post everything works with the stable build.Here is my

Helpers not available in my layout

2006-05-11 Thread Jason Lee
I'm a bit confused as to why my helpers are no longer available to my layout. I've asked a couple times on the IRC channel, but I've not been able to stay around long enough to work through the issue, so here I am. :) Here's part of my app/app_controller.php: 1 ?php 2

redirect() and plugins

2006-05-11 Thread Gonçalo Marrafa
Hi. I'm having some trouble with Controller::redirect() and the use of plugins. How can i redirect to another plugin? Is it possible? Say i'm in index action in FooController in plugin foo (www.example.com/foo). If i want to redirect to bar plugin i'll try $this-redirect('/bar'). Instead of

Re: Single field, multiple validation errors

2006-05-11 Thread Mika
To clarify, once using the advanced validation, you can add the validation needed to the model even if the field is not in the table. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

Bake.php problem

2006-05-11 Thread hydra12
I'm using Windows XP Pro SP2 with XAMPP. I've added c:\web\xampp\php to my path. I went to c:\web\xampp\htdocs\apps\cake\cake\scripts and typed php bake.php. Here's what I get: Fatal error: Call to undefined function env() in C:\web\xampp\htdocs\apps\cake\cake\config\paths.php on line 185.

Re: Bake.php problem

2006-05-11 Thread hydra12
Nevermind. I thought I had the newest cake, but I was running rc6. It works now. --~--~-~--~~~---~--~~ 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

Updating HABTM relationships

2006-05-11 Thread panyasan
This is related to http://groups.google.ch/group/cake-php/browse_frm/thread/7f26efd9e871ddf1 I have two models, References and Folders: class Reference extends AppModel { var $name = Reference; /** * associations **/ var $hasAndBelongsToMany = Folder; /** *

Cake for the Newbies

2006-05-11 Thread Garth Braithwaite
I was working on Graham's bookmark tutorial at http://grahambird.co.uk/cake/tutorials/scaffolding.php and I keep getting the same error. I think I am missing something. I downloaded the stable release and unpacked in on my desktop and then uploaded to my hosted server. I set up the database

Re: liens cachés réservés à l'administrateur

2006-05-11 Thread RosSoft
Please ask in english. --~--~-~--~~~---~--~~ 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

Re: Cake for the Newbies

2006-05-11 Thread John Anderson
On May 11, 2006, at 1:48 PM, Garth Braithwaite wrote: I was working on Graham's bookmark tutorial at http://grahambird.co.uk/cake/tutorials/scaffolding.php and I keep getting the same error. I think I am missing something. I downloaded the stable release and unpacked in on my desktop and

Re: Cake Nightly 10_05 problems

2006-05-11 Thread Dusty
Larry, Thanks, you were correct, I was overwriting the new /app/config/inflector.php with the old one. --thanx --dusty --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

Re: Cake for the Newbies

2006-05-11 Thread Garth Braithwaite
Awesome - exactly what I needed. I love this group - so quick and so right. --~--~-~--~~~---~--~~ 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

Wiki Search

2006-05-11 Thread John Zimmerman [gmail]
I have been trying to use the search function on wiki.cakephp.orgHas anyone else had trouble with this?It seems that no matter what I search for there are no results. Thanks,-John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Help me out with the conceptualization here please.

2006-05-11 Thread modmans2ndcoming
I was looking over the manual while I am also going over the blog tutorial. In the blog tutorial, the model is extremely simple, however, in the manual the section on the model is extremely complex and covers a lot of built in functions. Are all those functions for the model or are they made

Re: Help me out with the conceptualization here please.

2006-05-11 Thread John Anderson
On May 11, 2006, at 3:33 PM, modmans2ndcoming wrote: In the blog tutorial, the model is extremely simple, however, in the manual the section on the model is extremely complex and covers a lot of built in functions. Are all those functions for the model or are they made available to the

Re: Help me out with the conceptualization here please.

2006-05-11 Thread modmans2ndcoming
It does. My model classes are classes that relate to a table in my database. I automatically get all those cool functions to use in my controller for fetching and saving data, plus any other functions I want to create, though most folks doing CRUD probably do not need to create anything unless

Question about an example in teh manual

2006-05-11 Thread modmans2ndcoming
I was looking over the portion of the manual that deals with the model and the example given shows a model relating to a blog database. My question is why do they implement the hid and unhide in the model and not the controller? Shouldn't hide and unhide be a function that you would want to put

Re: Question about an example in teh manual

2006-05-11 Thread John Anderson
You might want to read up a bit on MVC patterned programming. It might give you a better idea of how things work together. The Wikipedia article is a decent one, I think. Controllers manipulate logic (often using instantiations of Model classes) and hand that data to a view. Since models

CakeAMFPHP a model that uses belongsTo and/or hasMany

2006-05-11 Thread Vixiom
Don't know if this is a bug or if I'm messing something up but when using Cakeamfphp and a simple model with no relationships it returns recordSets as expected, however if you have a model that uses belongsTo and/or hasMany it doesn't return a recordSet. Actually if you use hasMany it only

creating a selectTag from an enum in the model

2006-05-11 Thread calzone
I could have sworn I saw this covered at some point, but now I can't find it here, in the wiki, the api, or the manual. I have a model with a db table, say cars, and one of my columns is an enum, say, type('coupe','sedan','wagon','truck'). I'm trying to build a selectTag in my view that is

Re: rdAuth? Users? ACL?

2006-05-11 Thread tom
It looks like they are at least starting to address this issue: http://manual.cakephp.org/chapter/19 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: rdAuth? Users? ACL?

2006-05-11 Thread calzone
You beat me to it! I was very excited to see this chapter in the manual magically appear. I'm very grateful to see this addition and I think it will really help a lot of us just getting started. So come on, where's the confetti guys? Jeesh, talk about a low key announcement.

Re: rdAuth? Users? ACL?

2006-05-11 Thread John Anderson
On May 11, 2006, at 5:11 PM, tom wrote: But they need to add at least something about hashing... Yeah I wrote it yesterday because of everyone's comments. I hope it clears things up a bit. Its meant to be very simple - It isn't meant as a security article (I'm not going to mention

Re: rdAuth? Users? ACL?

2006-05-11 Thread John Anderson
*throws confetti* http://manual.cakephp.org/chapter/19 ;o) I was gonna wait till someone proofed it, but no one has bothered me about major problems with it. -- John On May 11, 2006, at 5:15 PM, calzone wrote: You beat me to it! I was very excited to see this chapter in the manual

Re: rdAuth? Users? ACL?

2006-05-11 Thread tom
I'm trying it out right now, and so far... in the last code sample, $this-checkAccess(); should probably be $this-checkSession(); Also, the login page is throwing an error because the variable 'error' is not defined, but this might be a PHP mode problem.

Re: rdAuth? Users? ACL?

2006-05-11 Thread tom
Also, urls on the Manual page are changing... they should probably be static. --~--~-~--~~~---~--~~ 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

Screencasts lack audio

2006-05-11 Thread Brenton Simpson
Am I the only one with this problem? --~--~-~--~~~---~--~~ 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

Re: Screencasts lack audio

2006-05-11 Thread Larry E. Masters aka PhpNut
The 2 screencast on the site have no sound at the moment.I will be create a few with sound over the next few days-- /*** @author Larry E. Masters* @var string $userName* @param string $realName * @returns string aka PhpNut* @accesspublic*/On 5/11/06, Brenton Simpson [EMAIL PROTECTED] wrote: Am I

Re: Wiki Search

2006-05-11 Thread calzone
Some people have reported in previous posts that it seems to be broken. However, following their advice to use google, i'll confirm good results can be had by prepending the words 'cake wiki' (no quotes) before any search string. --~--~-~--~~~---~--~~ You

Re: liens cachés réservés à l'administrateur

2006-05-11 Thread calzone
I don't know French, but it sounds like he's just getting into Cake and looking for an authentication scheme (sounds familiar). and more or less confirming that using google translate, I'd say I'm ready to take a trip to Paris!... google-translation: Hello with all, I am initial with

Re: What kind of code is appropriate for a view?

2006-05-11 Thread calzone
could you explain the parent::beforeFilter() line does? yes, I know this is one of those things that is probably covered in an oop guide somewhere, but I can't search punctuation marks (::). --~--~-~--~~~---~--~~ You received this message because you are

Re: What kind of code is appropriate for a view?

2006-05-11 Thread [EMAIL PROTECTED]
I am no expert on OOP, but I think that just says take the parent beforeFilter method and insert it's code here as well as do this. Kind of like a tieback. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: How to let form have more fields than model

2006-05-11 Thread [EMAIL PROTECTED]
What I have done is actually call them 'Misc/field' for the form. Then, the stuff that would be saved in the record and matches I make 'Model/fieldX'. So, then I just set my $misc variable and the $data variable in the controller of the result of the form.

Re: What kind of code is appropriate for a view?

2006-05-11 Thread Mika
Also the php4 version of the scope operator docs is here http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

Re: What kind of code is appropriate for a view?

2006-05-11 Thread calzone
nice. that makes a lot of sense. 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

Re: What kind of code is appropriate for a view?

2006-05-11 Thread Mika
Anytime :) I find that most of the time, questions like that have always been answered better than I could ever answer them. The trick is knowing where to look for them :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Screencasts lack audio

2006-05-11 Thread jburns131
Beautiful work PhpNut, very happy to see the docs and vids come together. That's one thing that makes me very excited about this project. Constant updates. Every time I come back to the site there's more content to help me on my way. Keep up the good work :-)