Re: Cake admin

2006-06-05 Thread John Zimmerman [gmail]
In your admin_*() functions you will need to change the $this->layout class variable to the name of the new layout.i.e$this->layout = 'adminlayout';(not the lack of .thtml at the end). In one of the apps I am working on the user authentication is role based.  I use the same layout for all user

Re: Cake admin

2006-06-05 Thread Ect0pLaSm
> but the simpler way is to uncomment the admin route in the > app/config/routes.php > > then, you can functions like admin_edit{} , admin_delete{} > their views are the same: admin_edit.thtml and admin_delete.thtml > the url should be: /admin/yourcontroller/edit and > /admin/yourcontroller/d

tagErrorMsg doesn't display

2006-06-05 Thread Mike
I'm using Cake 1.0.1.2708 on PHP 4.3.11 I'm having trouble getting form validation to show errors. Basic example: model: class Quote extends AppModel { var $name = 'Quote'; var $validate = array( 'start_date'=>VALID_NOT_EMPTY, 'finish_date'=>VALID_NOT_EMPTY); } con

Re: dashes instead of underscores

2006-06-05 Thread Samuel DeVore
Actually I bet you can accomplish this task in the config/bootstrap.php fileOn 6/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi All,I'm brand new to the group and to CakePHP, but from what I have readand seen, it looks very promising.  I'm working on a shopping cartsystem (yeah, another one

dashes instead of underscores

2006-06-05 Thread [EMAIL PROTECTED]
Hi All, I'm brand new to the group and to CakePHP, but from what I have read and seen, it looks very promising. I'm working on a shopping cart system (yeah, another one!) and i would like all the file names in the web directory to utilize dashes, rather than underscores. I know that I could appr

Re: ajax autocomplete.

2006-06-05 Thread Jules
Jf wrote: > > > > Hope it helps someone else. > > > > > Yes me ! :-) Great !! It works now for me. Just to add some "cherry" on top of the cake : It is possible to modify the classname of the generated div. So if you do not want ot have class="autocomplete" in the generated form simply do : au

Testing Controllers with SimpleTest

2006-06-05 Thread Sonic
Hi there, I really want to get into test driven developement with cake. At present I use SimpleTest to unit test my models and Selenium to Acceptance test my application. Using Selenium, I can kind of indirectly tests my Controllers but not properly (unless I'm not using it correctly). I like Sel

Re: Baking Day

2006-06-05 Thread majna
Great idea, but there's things to do before play. --~--~-~--~~~---~--~~ 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

Re: $html->checkbox('model/field') is always checked in preloaded model (cake-2967)

2006-06-05 Thread [EMAIL PROTECTED]
hi check if this thread http://groups.google.com/group/cake-php/browse_thread/thread/83225a086a0c11c3/fc5bac6d5c504bc7?q=checkbox&rnum=15#fc5bac6d5c504bc7 helps you out I think its related to the fact that the tagValue methods expects a $this->data that it never gets because $data must be repl

Re: Trouble with DocumentRoot

2006-06-05 Thread [EMAIL PROTECTED]
OK I think I got it - forgot to change the for the DocumentRoot. Woops! :) --~--~-~--~~~---~--~~ 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 unsub

Trouble with DocumentRoot

2006-06-05 Thread [EMAIL PROTECTED]
Hi all - I'm new to CakePHP and having troubles. I'm on Linux and installed XAMPP for Linux (http://www.apachefriends.org/en/xampp-linux.html). Then I downloaded & extracted the latest stable Cake release. It created a cake_1.1.3.2967 directory with directories like app, cake, & vendor in it.

Re: Problem with validation

2006-06-05 Thread ggtsu
Feeling pretty stupid. Mispelled one of my validation functions, so it got run as a regular expression instead. It's all working now. Thanks though --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. T

Re: Problem with validation

2006-06-05 Thread nate
You might want to make sure those constants are in caps. I.e.: VALID_EMAIL, VALID_NOT_EMPTY. If you're trying to do them in lowercase, PHP won't recognize them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: Cake admin

2006-06-05 Thread DJ Spark
but the simpler way is to uncomment the admin route in the app/config/routes.php then, you can functions like admin_edit{} , admin_delete{} their views are the same: admin_edit.thtml and admin_delete.thtml the url should be: /admin/yourcontroller/edit and /admin/yourcontroller/delete is th

NO 1 website for IT Jobs

2006-06-05 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 Staffin

Re: Cake admin

2006-06-05 Thread Olivier Percebois-Garve
There is othAuth too. De La Groove wrote: > you can use rdAuth component from gwoo, www.rd11.com, and change access > to admin functions, check the rdBloggery application from that website > > happy baking > > > > > > --~--~-~--~~~---~--~~ You received this me

Re: Cake admin

2006-06-05 Thread De La Groove
you can use rdAuth component from gwoo, www.rd11.com, and change access to admin functions, check the rdBloggery application from that website happy baking --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP"

Re: Problem with validation

2006-06-05 Thread ggtsu
BTW, I'm only using cake's predefined regex's (valid_not_empty, valid_email, etc...) --~--~-~--~~~---~--~~ 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 T

Cake admin

2006-06-05 Thread Ect0pLaSm
Pleace help me. I need create admin part of cake site. How to right do this? Pleace note step by step. --~--~-~--~~~---~--~~ 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@

Problem with validation

2006-06-05 Thread ggtsu
I've been trying to implement the data validation scheme at http://wiki.cakephp.org/tutorials:advanced_validation, but I always seem to get this error: preg_match(): Delimiter must not be alphanumeric or backslash in C:\web\htdocs\cake\app\app_model.php on line 88. Any ideas? --~--~-~--

Re: Can I use Cake with a web host?

2006-06-05 Thread John David Anderson
Just copy the files to your webroot. Its not any more difficult than that. If you're using mod_rewrite (which makes for nice URLs), you might have a few gotchas (like making sure AllowOverride is set to All, and making sure mod_rewrite is loaded), but its really not too much harder than do

Re: Can I use Cake with a web host?

2006-06-05 Thread [EMAIL PROTECTED]
Sweet! Are there any tutorials out there for what to upload to your web host and where to upload things? Also, are there tutorials for installing locally to a dev machine (Windows, Linux, Mac)? --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Using Peterned's whatever:hover

2006-06-05 Thread Olivier Percebois-Garve
I know its not the answer you are looking for, but have you also considered using the suckerfish script ? olivvv Reggie Johnson wrote: > Does anybody have an example on how to use Peterned's 'whatever:hover' > technique (http://www.xs4all.nl/~peterned/csshover.html) with Cake? It > adds the ab

Re: Can I use Cake with a web host?

2006-06-05 Thread RosSoft
You only need to upload files to your webhost. It will run with php4 and 5, and apache with/without mod_rewrite also works with IIS server...So..use it! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" gro

Re: Using Peterned's whatever:hover

2006-06-05 Thread jeko
I recommend against the .htc method, in favor of applying a css class name using JavaScript. Like this: function elHover() { if (document.getElementById("navItem")) { var hoverEl = document.getElementById("navItem"); hoverEl.onmouseover=function() {

Can I use Cake with a web host?

2006-06-05 Thread [EMAIL PROTECTED]
Hi all, CakePHP looks yummy! I'd really like to use it but I'm concerned about using it on a web host (www.netfirms.com). To "install" Cake do I just need to upload some files to my web server? Or would it require a more complex install by the web hosting company? I ran into this problem with

using findAllThreaded output in views.

2006-06-05 Thread josh robb
I'm having trouble figuring out how to show the nested [children] arrays in a view. Has anyone who's done this care to share what the trick is? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To p

Re: Using Peterned's whatever:hover

2006-06-05 Thread nate
That URL (/css/csshover.htc) should work, assuming your site is located at the root of the domain (i.e. not in a subfolder). Your best bet when referencing external files in CSS is to use relative paths, i.e. ../folder/file. This should work for anything in webroot. Also, in Windows XP SP2, HTC

Using Peterned's whatever:hover

2006-06-05 Thread Reggie Johnson
Does anybody have an example on how to use Peterned's 'whatever:hover' technique (http://www.xs4all.nl/~peterned/csshover.html) with Cake? It adds the ability to accept a CSS ':hover' to items in Internet Explorer (in addition to the 'a' which is already supported). It is useful for making popup

Strange beforeValidate() behaviour

2006-06-05 Thread davide
I'm getting a strange behaviour using the beforeValidate() callback. The goal is to trim the required (VALID_NOT_EMPTY) fields before passing the the cake validation. It's strange 'cause it seems that if I put all correct data I get the $this->data variable full of datas, otherwise if I leave a fi

Re: Anyone using Acl in Sql Server database?

2006-06-05 Thread pat
(Bump). Am desperate.. --~--~-~--~~~---~--~~ 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: The right way to set a default value for a model

2006-06-05 Thread [EMAIL PROTECTED]
Thanks for the replies. I guess the controller option is best as the value is a default presented to the user that they can then change. Sarah --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To po

Re: The right way to set a default value for a model

2006-06-05 Thread Felix Geisendoerfer
You could also use a beforeSave() function in your Model, manipulating the $this->data stuff before every save automatically.On 6/5/06, Michael Grunewalder <[EMAIL PROTECTED]> wrote: I think you can setup the default values like this:$this->data[model][field]=valuee.g:$this->data['members']['membe

$html->checkbox('model/field') is always checked in preloaded model (cake-2967)

2006-06-05 Thread EvgenP
Hello! i have found that line 271 helpers/html.php: $value = $db->boolean($value); always return true. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-ph

www.liveinforum.com

2006-06-05 Thread hotty_sarah
Hello Friend You are invited to join www.liveinforum.com There you can discuss / post on various topics like Fun, Jokes, Interesting True Facts, Movies, Music, Writing Skills, English Writing, Personal stories like Love, Romance, Breakup, Image & Photo Sharing, Video Clips, Entertainment, Chi