Re: MySQL version to install

2009-04-14 Thread Martin Westin
It should not matter to PHP which version you go with as long as it is a "stable" release. I have never had any problems with any of the official releases of MySQL for Mac OS X (except for that thing with the socket when Leopard was released). I still run 5.0.xx here but that is just because I hav

Re: Preferred way to delete with conditions?

2009-04-14 Thread Martin Westin
You were right of-course. I don't know what I messed up when I first tried using deleteAll but it works as I expect it now with callbacks and all. thanks Martin On Apr 14, 7:15 pm, Martin Westin wrote: > Hm... thought I had... > I'll give it another try. > > On Apr 14, 2:01 pm, grigri wrote: >

Re: Getting kicked out by auth when displaying blobs

2009-04-14 Thread Rufus
This is true I hope, I am using prepared statements with mysqli so they should be getting cached as far as I can tell from the documentation. Is a database not a file anyway? On Apr 15, 12:33 pm, Sidney wrote: > Without discussing the pros/cons of whether to use blobs in the 1st > place, one p

Re: Auth components

2009-04-14 Thread gimmebucks
Thanks to Gonzalo Servat & brian. problem solved. On Apr 12, 3:04 pm, Gonzalo Servat wrote: > On Sun, Apr 12, 2009 at 3:52 AM, gimmebucks wrote: > > > I want the system to display : > > "You are not authorized to access that location." > > > But not > > "You are not authorized to access that lo

Re: How to add jquery script?

2009-04-14 Thread Miles J
Its $javascript->link(), not the $html. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to ca

How to add jquery script?

2009-04-14 Thread d1ve blu3
Hallow,, I want to ask how to add some javascript (jquery)? Because I used this Javascript('jquery-1.3.2.min.js');?> Javascript('jquery.datepick.js');?> In views/layout/default.ctp but this error keep showing *Warning* (512) : Method HtmlHelper::Javascript does not exist [*CORE\cake\libs\view\hel

Re: Getting kicked out by auth when displaying blobs

2009-04-14 Thread Sidney
Without discussing the pros/cons of whether to use blobs in the 1st place, one point to note is that with caching, the binary data will get served from the file system in most cases anyway. On Apr 15, 9:08 am, Rufus wrote: > The images are from 4-20k max and it seems pretty darn speedy. Also > t

Re: One view to bind them all?

2009-04-14 Thread Joseph Roberts
Thanks, Brian. That is exactly what I needed. On Apr 13, 1:40 pm, brian wrote: > On Mon, Apr 13, 2009 at 2:06 PM, Joseph Roberts > > > > wrote: > > > Greetings fellow bakers, > > > I need help with a development project where I work at a rescue > > mission. I am creating a volunteer management

A newbie questions about URLs

2009-04-14 Thread Beedge
I have uploaded cake to a testing folder on my domain hbit.ie to play around with it and see what I can do. I have called my testing folder.. wait for it 'cake' :) Can someone tell me if this is right.. the url http://hbit.ie/cake/ shows the installation is ok. but if i leave out the traili

Re: Getting kicked out by auth when displaying blobs

2009-04-14 Thread Rufus
The images are from 4-20k max and it seems pretty darn speedy. Also the web app is just a management portal for an advertising widget, so it will only be used by 3 or 4 people at any one time. So I think nobody can argue that it is not ok to store it as a blob in this situation? On Apr 15, 2:04 

Re: Run an action with out a view? Is it possible?

2009-04-14 Thread Mark (Germany)
oh, i just relized that this was your first point here^^ my mistake, overread that one On 15 Apr., 00:44, "Mark (Germany)" wrote: > you forgot one: > > $this->redirect() > > as it always ends with exit() anyway > > but the proper way without redirect would be: > > $this->autoRender = false (any

Re: Run an action with out a view? Is it possible?

2009-04-14 Thread Mark (Germany)
you forgot one: $this->redirect() as it always ends with exit() anyway but the proper way without redirect would be: $this->autoRender = false (anywhere inside that method in the controller) On 15 Apr., 00:08, Miles J wrote: > You can either do the following: > > - Have the delete action r

Re: Run an action with out a view? Is it possible?

2009-04-14 Thread Miles J
You can either do the following: - Have the delete action redirect once the logic is finished - Put $this->autoRender = false; at the top of the action - Put an exit() at the end of the action I personally would do the 1st or 2nd. --~--~-~--~~~---~--~~ You receive

Re: What hosting service do you use?

2009-04-14 Thread Miles J
I use Dreamhost and MT. Both work well but the MT DV server took a lot of configuration to get cake working. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-

Re: What hosting service do you use?

2009-04-14 Thread nurvzy
I use downtown host. www.downtownhost.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Run an action with out a view? Is it possible?

2009-04-14 Thread jsundquist
Has anyone come up with a solution where I don't need to have an empty view for some actions? For example I have a delete function that I call. Which its stupid that I need to have an empty view with nothing in it when calling this function. Is there anyway around this? This goes the same for wh

ACL for some fields

2009-04-14 Thread koko
Hello all bakers, I've used ACL many times before, but with a new site I have a problem that can be solved manually but I want to do it in ACL way (if any). Let's say I have a posts table, in posts table there is 'id', 'title', 'body' and 'notes', I want to give the user only the ability to writ

CakePHP and the Quickbooks SDKs

2009-04-14 Thread rgreenphotodesign
Has anyone played around with CakePHP and the Quickbooks SDK's? To me for an actual storefront, these don't look like good solutions unless you use their Online products. Any opinions? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Contain and extra sql queries

2009-04-14 Thread Miles J
I mean, you cant ALWAYS use joins to get all data with 1 query. CakePHP is limited in that use. Else do it yourself and write a manual query. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post t

Re: jQuery UI Datepicker not working

2009-04-14 Thread Miles J
When your calling datepicker(), shouldnt it be on ready when the page loads? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscri

Re: jQuery UI Datepicker not working

2009-04-14 Thread cpeele
Hello. Yeah, tried that. It shows that it is throwing an error when it tries to call the Javascript function. There's got to be something wrong with my paths to the js and css files. Does anything stick out? Thanks On Apr 14, 3:08 pm, Marcin Domanski wrote: > Hey, > getfirebug.com and look at

Re: jQuery UI Datepicker not working

2009-04-14 Thread Marcin Domanski
Hey, getfirebug.com and look at the console/parse output HTH, -- Marcin Domanski http://kabturek.info On Tue, Apr 14, 2009 at 19:44, cpeele wrote: > > > Hey guys, > > I'm running CakePHP 1.2 and am trying to use the jQuery UI Datepicker > but I'm running into some problems. > Actually, nothing

Help with Ajax form and CSS Styling

2009-04-14 Thread mklappen
Hi I'm having some trouble with a form that I have styled in my CSS but when it's loaded from an Ajax call it's not picking up the CSS styles view.ctp: used for viewing entries in my DB, I have "edit" links that link to specific actions in my contoller that allows users to update/edit DB entries.

Re: "$javascript->codeBlock" Question

2009-04-14 Thread Celso
I found the solution using cacheEvents(); Like this: function adicionarLegenda($legendas){ $this->Javascript->cacheEvents(); foreach ( $legendas as $id => $texto ) { $this->Javascript->event($id, "mouseover", "legenda('".$texto.

Re: Getting "5 Related" Books via multiple Genres (HABTM ) from within Book view() and without requestAction

2009-04-14 Thread Mike Cook
Thanks brian. I checked those out and after a few attempts I got it workingthat is until I tried to add a 'contain'. If I try to bring in some more data with the contain then the whole thing returns nothing. If I comment out the 'group' then I get data again, although this is the wrong data.

Re: app location/name

2009-04-14 Thread fourwhitedots
i feel lame, but how do i use the -app param? On Apr 14, 10:49 am, Gwoo wrote: > cd mysitename > > or use the -app param --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send e

jQuery UI Datepicker not working

2009-04-14 Thread cpeele
Hey guys, I'm running CakePHP 1.2 and am trying to use the jQuery UI Datepicker but I'm running into some problems. Actually, nothing happens. Here are the paths to the necessary jQuery files: Javscript files: htdocs\TeamPlayer\app\webroot\js CSS files: htdocs\TeamPlayer\app\webroot\css\smoot

Re: app location/name

2009-04-14 Thread Gwoo
cd mysitename or use the -app param --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-

MySQL version to install

2009-04-14 Thread Bob Albert
I'm going to build a new server and I'm wondering which version of MySQL i should install 5 or 5.1? I'm going to install on a Dual G5 Power Mac running Leopard's version of PHP 5 and Apache 2. Does it mater to PHP or even Cake if MySQL is version 5 or 5.1? I would assume I'd want the most

Re: easy way to find out if onetomany record is used (before deleting it)?

2009-04-14 Thread qwanta
Thanks, that's what I was looking for, I have not used behaviors yet. While researching beforeDelete I came across the hasAny() function which also helps. My current way of doing things also displays a list of all the records ("books") that belongTo the record that has been attempted to be delete

textBox autocomplete Help Help Plz

2009-04-14 Thread khurram
hello! i am new in cakephp. can any body give me simple and easy example of how to make text box of form auto complete.means if i type book name then it displays the hint of books that typed. kindly any body help me i have to complete my project. thanks to regards, khurram --~--~-~--~--

Re: Preferred way to delete with conditions?

2009-04-14 Thread Martin Westin
Hm... thought I had... I'll give it another try. On Apr 14, 2:01 pm, grigri wrote: > Looking at the signature for `deleteAll` should answer your question: > > > function deleteAll($conditions, $cascade = true, $callbacks = false) > > In the version of cake I'm using, it does say in the comment

app location/name

2009-04-14 Thread fourwhitedots
i am new to cake, and just started my first 'bake'. While begining, i was asked the name of my app. So i typed in the name, and now i have the following structure: app cake mysitename (which looks exatcly like app, but with AppController and AppModel extended) vendors the problem is when i try to

Re: Getting kicked out by auth when displaying blobs

2009-04-14 Thread brian
On Tue, Apr 14, 2009 at 3:45 AM, burzum wrote: > > You should use the MediaView class (see API documentation) to send or > display the file data. I hadn't thought of that. I suppose it would need to be overloaded, though, to deal with data from the DB. > And files should not be stored in a data

Freelancer Wanted

2009-04-14 Thread Tim
First off - This is not a cake project. I am posting here because I respect the cake community and I would like to offer this work to someone in this community first. So please refrain from the "post somewhere else" replies. Here is the site in question: https://www.brevardcounty.com/directory/me

Re: Help for ajax update form field

2009-04-14 Thread Franco Tampieri
Great Arvind , well I'll try this as soon as possible :) Definitely you have considered two fields: - AlbumNametext - albumNameMsg Where the last if no text insered still fill with the phrase in red: Please enter album name Very good, I'll notice u if the solution is good or not :) But if someo

Re: can't see anything

2009-04-14 Thread Christian Leskowsky
You'll also be needing to turn on mod_rewrite. http://book.cakephp.org/view/37/Apache-and-mod_rewrite-and-htaccess http://book.cakephp.org/view/32/Installation On Tue, Apr 14, 2009 at 11:05 AM, Christian Leskowsky < christian.leskow...@gmail.com> wrote: > Did you set "AllowOverrides" to "All" i

Re: easy way to find out if onetomany record is used (before deleting it)?

2009-04-14 Thread Richard
Depending on your database, you may be able to use constraints on the foreign keys of your database ("ON DELETE RESTRICT"), however that's a responsive check rather than pro-active. In your situation, you may find creating a behavior would be beneficial. The behavior would run the checks on the bef

Re: What hosting service do you use?

2009-04-14 Thread pklauzinski
I have had a dedicated server with Liquid Web (http:// www.liquidweb.com/?RID=bmchosting) for over two years now and I have been extremely impressed with both server performance and customer support. They do all types of hosting too, not just dedicated, and they're prices are not bad either. :) O

Re: can't see anything

2009-04-14 Thread Christian Leskowsky
Did you set "AllowOverrides" to "All" in your http.conf? On Tue, Apr 14, 2009 at 10:42 AM, mcphisto wrote: > > Hi, > I just baked my first application on cake 1.2. > With the bake console I did all the configuration. So now I've on the > first page this: Sweet, "App" got Baked by CakePHP!. > The

can't see anything

2009-04-14 Thread mcphisto
Hi, I just baked my first application on cake 1.2. With the bake console I did all the configuration. So now I've on the first page this: Sweet, "App" got Baked by CakePHP!. The problem is that if I go 127.0.0.1/categories, it doesn't find nothing. I configured gverything so that my app is on c:\p

easy way to find out if onetomany record is used (before deleting it)?

2009-04-14 Thread qwanta
In the case where If I have a one to many relationship like Authors- >Books and I would like to delete an author - but only if this author has no books - is there a buiilt-in way to check? I find that I run into this situation a lot (every time a table has a foreign key), and at the moment manual

Re: Help for ajax update form field

2009-04-14 Thread Arvind
Use $ajax->observeField method of ajax helper. Here is an example: observeField("AlbumNametext",array ('url'=>'checkAlbumName','update'=>'albumNameMsg','loading'=>"Element.show ('loaderIDCheck')",'loaded'=>"Element.hide ('loaderIDCheck')",'before'=> "if($('AlbumNametext').value ==

Re: What do you develop in (ide, text editor, etc.)?

2009-04-14 Thread Baz L
TextMate when at home... Notepad++ (Portable) when on the road. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this

"$javascript->codeBlock" Question

2009-04-14 Thread Celso
How is the right way? $script = $javascript->event($id, "mouseover", "legenda('". $texto."')", false). $javascript->event($id, "mouseout", "UnTip()", false); echo $javascript->codeBlock($script,null); --~--~-~--~~~---~--~~ You received

Re: What do you develop in (ide, text editor, etc.)?

2009-04-14 Thread Arvind
EditPlus. Dreamweaver (rarely, for designing purpose only). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this grou

Re: What do you develop in (ide, text editor, etc.)?

2009-04-14 Thread Celso
Eclipse with PhpEclipse http://www.phpeclipse.com/ On 14 abr, 06:06, BlueC wrote: > Agreed, Komodo Edit is just perfect in my eyes. It hits the sweet spot > between editor and full blown IDE. I don't need an IDE but I do need > advanced editing capabilities and Komodo Edit hits the nail on the >

Help for ajax update form field

2009-04-14 Thread Dr.Dran
Hi! I'm a newbe, I try to make my new application with cake, there is a simple shopping cart. I have in particular two field that one is the quantoty and one is the price. My problem is that I want when i fill the quantity field the price field change his value that was a simple product of the

Re: Multiple login page using Auth

2009-04-14 Thread den
Im not sure what exactly do you mean, but i think i had a semilar problem. I need a login page where the email adress is checked in a first step. if the adress exists in the user table, promt for a password and log the user in. if not, show a register form. for this i made a lot of handwork and on

Re: What do you develop in (ide, text editor, etc.)?

2009-04-14 Thread BlueC
Agreed, Komodo Edit is just perfect in my eyes. It hits the sweet spot between editor and full blown IDE. I don't need an IDE but I do need advanced editing capabilities and Komodo Edit hits the nail on the head. I edit under Linux and the only other real (free) alternative seems to be Eclipse whi

Help: ckaek 1.2 --> vews ajax

2009-04-14 Thread Dr.Dran
Hi! I'm a newbe, I try to make my new application with cake, there is a simple shopping cart. I have in particular two field that one is the quantoty and one is the price. My problem is that I want when i fill the quantity field the price field change his value that was a simple product of the

Re: What do you develop in (ide, text editor, etc.)?

2009-04-14 Thread Martin Atukunda
textwrangler On Sat, Feb 28, 2009 at 11:14 PM, adam wrote: > > I'm using Eclipse with PDT, but Dreamweaver for making layouts. > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this

Re: Model config for table with no ID

2009-04-14 Thread Arvind
Well i think you should have no problem using $this->model->find() method even if you don't have a PK field as per cakephp 1.2.x (not sure about previous versions). If still don't work try $this->model- >primaryKey="fieldname" to make virtual primary key and see what happen. On Apr 10, 7:45 am, m

Re: problem with Cakephp session in Jake

2009-04-14 Thread Celso
I have the same problem, I hope that Jake again be developed --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this gro

CakeSession error with memcache

2009-04-14 Thread marco.rizze...@gmail.com
Hi I try to use memcache for save sessions in a CakePHP application. I install memcache,all works fine also the php sessions. Now in my CakePHP application I set in core.php this: Configure::write('Session.save', 'php'); Now I try to use the Session component in my application but I get

Re: Using ajax without helper

2009-04-14 Thread rgreenphotodesign
You will have to write out all the needed Javascript yourself. Stick what you need in script tags in your view. On Apr 13, 11:45 am, josue crispim wrote: > Hi > > How to use ajax without helper of cakephp ? > > thanks --~--~-~--~~~---~--~~ You received this messag

Re: Extending the time helper

2009-04-14 Thread rgreenphotodesign
You can copy the helper from cake/liibs/views/helpers into app/views/ helpers. Then make what ever changes you want. This keeps the core intact. On Apr 13, 4:04 pm, Miles J wrote: > Whats the best and easiest way to do this? Currently the time helper > is in 24 hour format, I want 12. Should I

Re: Prefix routing behavior is not OK

2009-04-14 Thread Johnny
I found this article to be usefull regarding prefix routing: http://www.pagebakers.nl/2008/12/04/cakephp-router-and-prefixes/ It shows how you can get the right urls for paginator, links and forms using cake's prefix functionality. On Apr 12, 11:05 pm, Hazem Mohamed wrote: > Hi, > I'm using ca

Re: Preferred way to delete with conditions?

2009-04-14 Thread grigri
Looking at the signature for `deleteAll` should answer your question: > function deleteAll($conditions, $cascade = true, $callbacks = false) In the version of cake I'm using, it does say in the comments that $callbacks is "not being used", but a quick view of the code shows that it is. If you e

Re: Contain and extra sql queries

2009-04-14 Thread Dieter_be
Well, it's not containable's job to do caching. have a look at Model->cacheQueries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To un

Preferred way to delete with conditions?

2009-04-14 Thread Martin Westin
Hi, I frequently need to verify that deleting a record is allowed. I was wondering how others handle this kind of "conditional delete"? When finding I can very simply add on an extra condition to check that some field matches my requirement. Using the common Blog-analogy it might be finding only

Re: User registration - Email verification using tokens

2009-04-14 Thread Martin Westin
I use a similar method to Edward's (or so i imagine after a quick glance). I have the "ticketing" side of things put into a general-purpose model: http://bin.cakephp.org/saved/44956 In your case you would need the following logical steps. Where are you getting into trouble? - Display registratio

Re: Model Lazy Load -- Or How to prevent the controller open a database connection automatically.

2009-04-14 Thread Aivaras
You define dontUseModels, but you are checking for dontUserModels, are you sure this code is working as expected? :) Cheers, Faifas 2009/4/14 Dérico Filho > > I solved. > > I put this in one of application controllers... although it can be put > also in app_controller.php >var $dontUse

Re: Using home.ctp

2009-04-14 Thread Aivaras
You can simply create a new controller/model and parse your data there. Create a view so that everything would be ready. You should also take a look at routes.php which can be found at cake/app/core/routes.php and change routing to your desired place. Hope you find this handy, Faifas On Tue, Ap

Re: Dependent in Associations is not working.

2009-04-14 Thread Braindead
How do you delete the user? You have to set the cascade parameter of the del funtion to true. Otherwise related blog posts won't be deleted. http://book.cakephp.org/view/516/Deleting-Data --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Query question

2009-04-14 Thread Richard
You could possibly do a UNION query? If you need to know which table they came from, add a hard-coded value to the field list ('TableA' as which_table). SELECT id, firstname, lastname FROM tableA where email = 'a...@b.com' UNION SELECT id, firstname, lastname FROM tableB where email = 'a...@b.com'

Contain and extra sql queries

2009-04-14 Thread Toutankharton
Hi ! i have a little problem with de containable behaviour. In the sql log, i see that cakephp is doing too many queries than it should do : 13 SELECT `Chef`.`id`, `Chef`.`name`, `Chef`.`prenom` FROM `ressources` AS `Chef` WHERE `Chef`.`id` = 11 1 0 14 SELECT `C

Re: What do you develop in (ide, text editor, etc.)?

2009-04-14 Thread Richard
Something I've not seen in the list that I use, and that's Aptana Studio, which is built on top of Eclipse. On Tue, Apr 14, 2009 at 8:23 AM, refused wrote: > > Another vote for Komodo IDE/Edit > > - Fast (I've tried a lot and it's definitely up there) > - Cross platform > - Doesn't use java (n

Re: Getting kicked out by auth when displaying blobs

2009-04-14 Thread burzum
You should use the MediaView class (see API documentation) to send or display the file data. And files should not be stored in a database in the case of a web app. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: What do you develop in (ide, text editor, etc.)?

2009-04-14 Thread refused
Another vote for Komodo IDE/Edit - Fast (I've tried a lot and it's definitely up there) - Cross platform - Doesn't use java (nothing against java, just most apps seem sluggish on any system I've used) - Great addon/macro/snippet system (addons similar to Firefox) That said, will be interested to

Dependent in Associations is not working.

2009-04-14 Thread kaushik
It is user model: class User extends AppModel { var $name = 'User'; var $primaryKey = 'userId'; var $displayField = 'userName'; var $hasMany = array( 'Blog' => array( 'className' => 'Blog', 'foreignKey' => 'blogId', 'dependent' => tru