Re: Tools for merging directories

2008-06-06 Thread David Zentgraf
Oh, of course, deleting them in the Finder shouldn't be too hard. I was too fixated on the CLI. I'll try it when I get home. On 6/6/08, Grant Cox [EMAIL PROTECTED] wrote: I was about to reply with something glib - since all you want to do is list all files in the folder (recursively), select

Re: a bit confused (n00b warning)

2008-06-06 Thread winter
Thanks Joel, That sounds nice. I guess maybe I'm not being so clear and perhaps I am missing something. I'm trying to make a form to fill the join table. You see, a unit(apartment) has many items. For example Apartment A has 5 glasses and Apartment B has 10 glasses. Using plain PHP, I'd query

Re: Where to put new functions

2008-06-06 Thread dr. Hannibal Lecter
Yeah, oops.. wasn't thinking back there.. Yes, if this is going to be used only in views, then a helper is more appropriate. I also made a mind typo, it's not ~/app/bootstrap.php but ~/app/config/ bootstrap.php Sorry ;-) On Jun 5, 3:38 pm, Bob Mattax [EMAIL PROTECTED] wrote: Is that *really*

Re: $html-image paths

2008-06-06 Thread leo
After some digging in the api and trac, I found an enhancement, by Nate I think, that makes it very simple: If you pass the name of a file, it assumes it's in 'img' If you pass path/file it assumes it's in sub-directory 'path' of 'img' Best of all, if you pass /path/file it assumes it's in

newbie syntax question for cake 1.2 RC1

2008-06-06 Thread .
Hi I just switched from cake 1.2.6311 to cake 1.2.7125 (RC1) what is the new syntax for this command? $this-Category-findByName(array('name' ='LIKE %'.$parent.'%', 'parent_id'=null)); I want to find all categories where the name is like %parent% and the parent_id is null Thanks

Re: newbie syntax question for cake 1.2 RC1

2008-06-06 Thread grigri
$this-Category-find('all', array( 'conditions' = array( 'name LIKE' = '%'.$parent.'%', 'parent_id' = null ) )); On Jun 6, 10:26 am, . [EMAIL PROTECTED] wrote: Hi I just switched from cake 1.2.6311 to cake 1.2.7125 (RC1) what is the new syntax for this command?

Re: newbie syntax question for cake 1.2 RC1

2008-06-06 Thread leo
Not aware that the syntax has changed. It would break a lot of apps if it had. I would do a plain vanilla findAll in that situation - I don't thing you can pass any more than a value to findBy and it would only return the first record anyway. On 6 Juny, 11:26, . [EMAIL PROTECTED] wrote: Hi I

Hey, essayez Flock

2008-06-06 Thread [EMAIL PROTECTED]
Hello,Salut,Je souhaite te parler de Flock. J'utilise Flock comme navigateur internet, et j'adore ce qu'il m'apporte à l'usage sur internet. Flock est un navigateur web social qui connecte les gens, photos, videos and site internet que je préfère. Jetez-y un œil, je pense que vous pourrez

Re: Hey, essayez Flock

2008-06-06 Thread leo
I hope it handles charsets better than you do. On 6 Juny, 12:13, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello,Salut,Je souhaite te parler de Flock. J'utilise Flock comme navigateur internet, et j'adore ce qu'il m'apporte à l'usage sur internet. Flock est un navigateur web social qui

View this page CakePHP In The Wild

2008-06-06 Thread Smelly_Eddie
Click on http://groups.google.com/group/cake-php/web/cakephp-in-the-wild - or copy paste it into your browser's address bar if that doesn't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To

Re: Auth component : UsersController could not be found

2008-06-06 Thread Greg
Hi teum, I too had a lot of problems trying to get this work using anything other the standard users controller. I'm using 1.2 and I found that this works: In app controller: ?php class AppController extends Controller { var $helpers = array('javascript'); var $components =

What is the best Image Upload / Thumbnail package for CakePHP?

2008-06-06 Thread Smelly_Eddie
I have now tried several upload components and have been largely disappointed with all. I thought for sure there would be a holy-wow this rocks type component out there already. What upload component do you use to resize and manage photos associated with model items' i.e. Products? Thanks in

Re: HABTM / left outer join

2008-06-06 Thread Smelly_Eddie
YOu can always use $this-Language-sql('select myfields from `languages` left join `packages` on id=id') (obvioously not complete) and build your own query to return the nested results. If that doesnt answer than I guess I dont understanf the question. Dropboxes are pretty standard and you should

Re: Session destroy and reinitialize in same action

2008-06-06 Thread Smelly_Eddie
$this-Session-del('user'); $this-Session-setFlash('You have logged out'); On Jun 5, 5:03 pm, floob [EMAIL PROTECTED] wrote: I may be missing some key concept about how Sessions work in general, so if this problem is inevitable everywhere, do please help me learn why. The situation is, in an

Ajax Pagination 'Freaks' in IE, any ideas?

2008-06-06 Thread Smelly_Eddie
I use the pagination component in 1.1 written by Andy Dawson. Everything works great in FF, but running under IE, the page gets thrown into a never ending update cycle, and keeps reverting to defaults. In other words, after you change the sort order, or results per page, it begins to reload

Re: Proper debugging of CakePHP

2008-06-06 Thread Chowsapal
Apache handles the mod_rewrite stuff. As soon as PHP is called, you will be able to trace the code. On Jun 5, 11:21 pm, Sake [EMAIL PROTECTED] wrote: Does it deal well with the mod_rewrite stuff? On Jun 5, 10:56 pm, Chowsapal [EMAIL PROTECTED] wrote: I use xdebug for php with vim, but

Routing

2008-06-06 Thread Turnquist, Jonah
What I want: /scripts/id to route to /scripts/viewid Simple. What I have: Router::connect('/scripts/*', array('controller' = 'scripts', 'action' = 'view')); This works for urls such as /scripts/2 But /scripts/2fsdfsdfe will also work as /scripts/2 which it shout not Also now /scripts/ with

How do I redirect from an element

2008-06-06 Thread Shahzad
I have an element search.ctp, it has a simple text box and a search button. When ever I press the search button and try to redirect (from my controller action), It displays the redirected page with in the element. What am I doing wrong? How do I redirect the whole page? Thank you

Re: Tools for merging directories

2008-06-06 Thread Kim F
I use piston for my vendor branching needs, really works perfectly. http://piston.rubyforge.org/ On Jun 6, 8:25 am, David Zentgraf [EMAIL PROTECTED] wrote: Oh, of course, deleting them in the Finder shouldn't be too hard. I was too fixated on the CLI. I'll try it when I get home. On 6/6/08,

Help Me Please

2008-06-06 Thread dealbest
I have 3 tables... On of them is a joint table... Member, MemberRole, Role :) Member= Member_id, name, address... MemberRole= Member_id, Role_id, password, login... Role= Role Id, Type This is a typical relationship... My relationship works find and I can assign a role to each

Updating Inserting both

2008-06-06 Thread deeps
I am having a Mail table which is having a status field which will tell whether it is read or unread. when a person receive a new mail, status is 0 now in my read mail function i have written this $read_mail = $this-Mail-findById($mail_id); $read_mail['Mail']['status'] = 1; $this-Mail-id =

Update from 1.2 beta to rc leads to huge perfomance drop

2008-06-06 Thread Hermann Wacker
Hello everyone, I'm trying to write a enterprise resource planning Software wirth cake. My model system is therefore very large and complex (about 25 tables atm but this will grow to ~40). I heard that cake gets slow if it has to handle a lot of linked models. This makes perfectly sense so I'm

Re: CakePHP with PBX System.. Is it doable?

2008-06-06 Thread Gonzalo Servat
On Fri, Jun 6, 2008 at 1:49 AM, Reza Muhammad [EMAIL PROTECTED] wrote: Hi, Actually, they haven't purchased the PBX system yet. I have the position to choose which PBX system i want to use since my concern is compatibility on Unix-based environment. I've looked at Asterisk, but was lost.

Re: What is the best Image Upload / Thumbnail package for CakePHP?

2008-06-06 Thread the_woodsman
RE thumbs, I've always been very impressed with phpThumb. And I believe someone added some CakePHP helpers for it in the Bakery. As for file uploads, there's various things in the Bakery to look at - in fact, there's so many I find it difficult to decide on one, and usually roll my own. On

Re: Routing

2008-06-06 Thread Chris Hartjes
On Fri, Jun 6, 2008 at 2:25 AM, Turnquist, Jonah [EMAIL PROTECTED] wrote: grrr I'm starting to consider going back to codeigniter... they allowed for regular expressions... Have you never heard of google? Found this in under 5 seconds by searching for regular expressions cake routing

Re: Routing

2008-06-06 Thread AD7six
On Jun 6, 8:25 am, Turnquist, Jonah [EMAIL PROTECTED] wrote: What I want: /scripts/id to route to /scripts/viewid Simple.  What I have: Router::connect('/scripts/*', array('controller' = 'scripts', 'action' = 'view')); This works for urls such as /scripts/2 But /scripts/2fsdfsdfe

Full HABTM example

2008-06-06 Thread TommyBlue
Hi everybody, i'm very confused about saving and editing HABTM relationship and probably a full example in the manual could help... I've correctly created the models and MySQL tables. My relationship is: an Employment has and belongs to many Employees. I've inserted some data in the database by

Custom model functions not being recognised

2008-06-06 Thread palam
The problem is that custom model functions are not getting called from my controller. $this-Model-findById() works, but $this-Model- getCitiesListForCentreType() (for example) doesn't work and the query literally becomes getCitiesListForCentreType I have setup a bare bones version on my server :

Re: Proper debugging of CakePHP

2008-06-06 Thread Sake
ok, so do I run the debugger on the index.php file? How does it work? On Jun 6, 9:00 am, Chowsapal [EMAIL PROTECTED] wrote: Apache handles the mod_rewrite stuff.  As soon as PHP is called, you will be able to trace the code. On Jun 5, 11:21 pm, Sake [EMAIL PROTECTED] wrote: Does it deal

One Model .. Three Sites ... How?

2008-06-06 Thread NickH
Hi, I asked this question before but didn't get a response. I'm still stuck with how best to do this. I have one database which needs to be accessed by three different sites using Cake. The Model will be the same but Controllers and Views etc will be different. What's the best way to implement

Model Validation help

2008-06-06 Thread Turnquist, Jonah
Ok, so i've been experimenting with model validation. It all seems very cool, except I am seeing some holes. From the tutorial this is what I have in the controller: http://bin.cakephp.org/view/2080892837 Problem: What if data is sent through that should NOT be stored in table? How do I stop

Re: Proper debugging of CakePHP

2008-06-06 Thread Chris Hartjes
On Fri, Jun 6, 2008 at 9:43 AM, Sake [EMAIL PROTECTED] wrote: ok, so do I run the debugger on the index.php file? How does it work? You're going off-topic from Cake and into the Land of Debugging. Please use Google or your other favourite search engine to find info on how to use XDebug or any

Re: Admin section without using admin routing

2008-06-06 Thread James K
The easiest approach would be to do like aranworld suggested and just write different controllers for admins. Your controllers don't have to be 1:1 with models. I write controllers based on logical grouping of functionality as opposed to the literal base model - this also gives you more

Re: Model Validation help

2008-06-06 Thread Daniel Hofstetter
Hi Jonah, Problem: What if data is sent through that should NOT be stored in table? How do I stop that? For example, say I had a column named do_not_store_data_here in the table. For some reason I do not want any data stored there. I can't think of any particular cases where I would

Re: What is the best Image Upload / Thumbnail package for CakePHP?

2008-06-06 Thread leo
You could always write your own. It's pretty straightforward and if you come up with something special, you can share it in the bakery ;) I usually create them on the fly as the requirement for each site can be very different. But a fragment I use to resize a photo to fit a box is: function

Re: One Model .. Three Sites ... How?

2008-06-06 Thread Daniel Hofstetter
Hi Nick, I have one database which needs to be accessed by three different sites using Cake. The Model will be the same but Controllers and Views etc will be different. What's the best way to implement this, other than copying Model code three times? You could store your model in a

Re: One Model .. Three Sites ... How?

2008-06-06 Thread NickH
Ah, wasn't aware of how the bootstrap.php file can be used. That looks like what I need. Thanks, NickH --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Mailqueue handling .. or instantiating a component from a model

2008-06-06 Thread stefanski
I'm writing messages into my db's messages-table from different controllers throughout my app using various functions of my Message model. Depending on the user's notification settings, these messages should be sent by email to the user as well and therefore written to a mailqueue-table. I think

Re: What is the best Image Upload / Thumbnail package for CakePHP?

2008-06-06 Thread stefanski
For a more general aproach regarding different requirements, I think it makes more sense to split the tasks. For uploading i use this http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/ which i modified to a behaviour because I see it more on the model- side (happy to share code if

Re: Update from 1.2 beta to rc leads to huge perfomance drop

2008-06-06 Thread bgmill
On Jun 6, 1:36 pm, Hermann Wacker [EMAIL PROTECTED] wrote: Hello everyone, snip Are you using APC by any chance? if so, there is a ticket on trac about an issue: https://trac.cakephp.org/ticket/4855 -- Ben --~--~-~--~~~---~--~~ You received this message because

Re: What is the best Image Upload / Thumbnail package for CakePHP?

2008-06-06 Thread aranworld
I agree with stefanski that it makes sense to put a lot of this into the model/behavior zone. I like to think of an imagefile as a piece of data, that I just happen to store in the filesystem rather than the database. But as far as uploaders go, there are some limitations with PHP that will

Re: translating months for a select

2008-06-06 Thread b logica
On Wed, Jun 4, 2008 at 9:27 AM, Adriano Varoli Piazza [EMAIL PROTECTED] wrote: On 3 jun, 17:07, mbavio [EMAIL PROTECTED] wrote: Add this line to your app_controller: $os = env('OS'); if (!empty ($os) strpos($os, 'Windows') !== false) { setlocale(LC_ALL, 'Spanish (Argentina)');}

Re: What is the best Image Upload / Thumbnail package for CakePHP?

2008-06-06 Thread Guillaume
What do you think of Attachment aka attm? http://cakeforge.org/projects/attm/ It deals with the upload part and the multi-size display part too... On 6 juin, 17:38, aranworld [EMAIL PROTECTED] wrote: I agree with stefanski that it makes sense to put a lot of this into the model/behavior

Re: How do I redirect from an element

2008-06-06 Thread b logica
One doesn't redirect from an element. I think what you mean is that you have a form submit button and that clicking it results in some new layout elements being added asynchronously to the search div. Do you have some javascript code attached to the form to get the results using XHR / AJAX? If

Re: Help Me Please

2008-06-06 Thread b logica
That's not going to work. In fact, if you figured out a way to get Cake to make it work, I'd file a ticket to say that it was a bug, not a feature. A join table should have only fields which are foreign keys to other tables. Its sole purpose is to join records between 2 or more tables, nothing

Re: Custom model functions not being recognised

2008-06-06 Thread palam
I should add that it works okay on my localhost. It's a problem only on the server. Palaniappan C. On Jun 6, 4:50 pm, palam [EMAIL PROTECTED] wrote: The problem is that custom model functions are not getting called from my controller. $this-Model-findById() works, but

find('list') in view - noob problem

2008-06-06 Thread Rich
I'm having a problem reading data in my view from my controller. this is in my controller: $user = $this-Profile-Users-find('list'); $this-set(compact('users'); in my view I need to use a hidden control to pass this data on to the next controller but I can't get the value to display in the

Best Upgrade Path

2008-06-06 Thread theandystratton
Hey all, I'm new to Cake, and have been playing with it the past few weeks. I've been using a beta copy of 1.2 and want to upgrade to the release that just posted. Is there an Upgrade/Update tutorial or best practice out there anyone can recommend? I haven't found anything with my initial

Re: Admin section without using admin routing

2008-06-06 Thread zw
Thanks for the help. When I attempted it, I was using the same names for both the admin and standard controllers, so maybe there was a conflict. I'll try to name them differently and see if that works. For now, what I currently do is what omarh mentioned and is just have one admin controller,

Re: What is the best Image Upload / Thumbnail package for CakePHP?

2008-06-06 Thread mbavio
AD7six upload behavior is the best tool thast you will find for this. Cheers, mbavio On Jun 6, 1:39 pm, Guillaume [EMAIL PROTECTED] wrote: What do you think of Attachment aka attm?http://cakeforge.org/projects/attm/ It deals with the upload part and the multi-size display part too... On 6

Re: Best Upgrade Path

2008-06-06 Thread Chris Hartjes
On Fri, Jun 6, 2008 at 11:52 AM, theandystratton [EMAIL PROTECTED] wrote: We're also thinking about standardizing this for all of our sites eventually, and will definitely want to create a safe, clean, upgrade process as Cake's development continues. The best way I have found to handle this

Re: find('list') in view - noob problem

2008-06-06 Thread b logica
On Fri, Jun 6, 2008 at 11:36 AM, Rich [EMAIL PROTECTED] wrote: I'm having a problem reading data in my view from my controller. this is in my controller: $user = $this-Profile-Users-find('list'); $this-set(compact('users'); in my view I need to use a hidden control to pass this data on

Re: UTF8 vs Dreamweaver

2008-06-06 Thread markfm
Nothing wrong with Dreamweaver. I've used it myself. To encode in UTF8, click Modify -- Page Properties -- Document Encoding. Select UTF-8 (Unicode) and click Reload. This is how I do it in Dreamweaver MX. Your version might be different. I prefer Zend Studio 5.5/Zend Studio - Eclipse.

Re: find('list') in view - noob problem

2008-06-06 Thread Rich
I was actually following what cake baked for me but it did create the list for me which was not what i wanted to do. Every time I try to change the type of find to something else . . i still don't get the data. . . kinda lost here. On Jun 6, 1:28 pm, b logica [EMAIL PROTECTED] wrote: On Fri,

Re: Best Upgrade Path

2008-06-06 Thread Samuel DeVore
Generally what I do for production is have all my cake core files out of my web root path, with each version of cake that I have used in it's own subfolder then link to a cake_current folder to my production release dependancy then in index.php in app/webroot/ I have the following if

Re: find('list') in view - noob problem

2008-06-06 Thread Chris Hartjes
On Fri, Jun 6, 2008 at 1:36 PM, Rich [EMAIL PROTECTED] wrote: I was actually following what cake baked for me but it did create the list for me which was not what i wanted to do. Every time I try to change the type of find to something else . . i still don't get the data. . . kinda lost

Re: Custom model functions not being recognised

2008-06-06 Thread palam
Fixed in #cakephp I had mistakenly capitalised my model filenames. Beware! Read the conventions! This worked on my comp because Mac OS X has a way to find files either way. Apparently Windows does too. Lowercasing the filenames made it work. Thanks to woopstash2! On Jun 6, 10:18 pm, palam

Re: find('list') in view - noob problem

2008-06-06 Thread Rich
Kinda figured i'd get a response like that. . . . On Jun 6, 1:59 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On Fri, Jun 6, 2008 at 1:36 PM, Rich [EMAIL PROTECTED] wrote: I was actually following what cake baked for me but it did create the list for me which was not what i wanted to do.

Re: find('list') in view - noob problem

2008-06-06 Thread Chris Hartjes
On Fri, Jun 6, 2008 at 2:04 PM, Rich [EMAIL PROTECTED] wrote: Kinda figured i'd get a response like that. . . . Don't take it personally, I never do. What do you need the data to look like? -- Chris Hartjes Internet Loudmouth Motto for 2008: Moving from herding elephants to handling

Re: find('list') in view - noob problem

2008-06-06 Thread Rich
I didn't take it personally . . . .i'm just really lazy today and what i've read (the manual over and over) doesn't help me in my overall goal . . . .was just looking for real world uses for populating a hidden field value from a belongsTo model . . .i'll keep reading, i missed something. . .

Re: ACL schema

2008-06-06 Thread mbavio
Aran, I agree with your opinion about crud being cleaner, but, why do you say what only with: check('username', 'CamelCaseController', 'crudmappedaction'); will work? You can use: check(array('model' = 'Model', 'foreign_key' = 'anID'), 'CamelCaseController', 'crudmappedaction'); and

Re: Mailqueue handling .. or instantiating a component from a model

2008-06-06 Thread ianh
Send with a cron job called via the Cake console. You need to have an emailer task (on the bakery or you can grab my copy at http://bin.cakephp.org/saved/33206) and a shell file to be called (a slimmed down version of one I use is at temporarily at http://bin.cakephp.org/view/2108771248). My

Re: What is the best Image Upload / Thumbnail package for CakePHP?

2008-06-06 Thread Dardo Sordi Bogado
AD7six upload behavior is the best tool thast you will find for this. Totally agree with Martin! Thanks AD7six for sharing this gem. Regards, Dardo Sordi. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP

Re: Model Validation help

2008-06-06 Thread Turnquist, Jonah
Thank you! That was exactally what I was looking for. That should work nicely. Still looking for the answer to this question though: Also, does cakephp take care of mysql injection checking automagically or do I have to call mysql_real_escape_string for everything manually? Or is there

Keep current password

2008-06-06 Thread benjam
I have an admin section to my site, which is protected by Auth and using a Users table. The trouble I'm having is, when I set up a user, everything works just fine. When I go in to edit that user, the password field gets corrupted because instead of re-hashing the original password (which would

Re: Keep current password

2008-06-06 Thread Chris Hartjes
On Fri, Jun 6, 2008 at 4:33 PM, benjam [EMAIL PROTECTED] wrote: I was wondering if there was a way to prevent it from hashing the password if there is no password entered? Well, before you save the data when you're editing, you could unset the password field. i.e.

Re: Auth component : UsersController could not be found

2008-06-06 Thread Timothée BRENNER
Ok, thanks for your help. I've tried to do it this way but I should have done a mistake because it didn't work. Hmm quoting by Dardo, if you have a beforeFilter() in another controller extending AppController, it will not work unless you call parent::beforeFilter() in the child beforeFilter()...

Re: Session destroy and reinitialize in same action

2008-06-06 Thread floob
Thanks, Smelly. I actually thought about that, and I almost ran with it. The problem with that solution is that if you're storing more than just the username, you need to keep track of all the session variables you set so you can delete them all before logout (or wherever else you need to

Re: Keep current password

2008-06-06 Thread benjam
If you'll notice in my controller method, that's exactly what I do, but because it's already hashed, it's not empty, it's a hash of an empty string. I need to find a way to delete it before it gets hashed. And it gets hashed before the data gets to the method. So I need to find a way to delete

Re: Routing

2008-06-06 Thread Turnquist, Jonah
Thank you for these links, I am reading them now. It's starting to become more clear, I'll add another reply if any other questions come up. On Jun 6, 6:34 am, AD7six [EMAIL PROTECTED] wrote: On Jun 6, 8:25 am, Turnquist, Jonah [EMAIL PROTECTED] wrote: What I want: /scripts/id to

Re: UTF8 vs Dreamweaver

2008-06-06 Thread Timothée BRENNER
Yeah Mark I noticed that today...I told myself it is not possible that such a big application doesn't allow saving files as utf8 but I was kind of stubborn, I wanted this function to be in the window which appears when you save your file or somewhere in the settings so I didn't look further :(

Re: Keep current password

2008-06-06 Thread Matt Huggins
You could specify which fields to save, including all the fields you need to update, and excluding the password field. However, you won't be able to validate the model if you do this since password will always be invalid. if ($this-User-save($this-data, false, array('username', 'email'))) {

Re: UTF8 vs Dreamweaver

2008-06-06 Thread Timothée BRENNER
* at the same place. 2008/6/6 Timothée BRENNER [EMAIL PROTECTED]: Yeah Mark I noticed that today...I told myself it is not possible that such a big application doesn't allow saving files as utf8 but I was kind of stubborn, I wanted this function to be in the window which appears when you

Re: Keep current password

2008-06-06 Thread Chris Hartjes
On Fri, Jun 6, 2008 at 4:42 PM, benjam [EMAIL PROTECTED] wrote: If you'll notice in my controller method, that's exactly what I do, but because it's already hashed, it's not empty, it's a hash of an empty string. I need to find a way to delete it before it gets hashed. And it gets hashed

Re: Keep current password

2008-06-06 Thread Matt Huggins
As an addendum, you could also do what I did in my current project to ensure that only certain fields DO validate when saving a model. This would allow you to use the method I included in my last post (specifying the fields you wish to save) while also allowing validation to work. Take a look

Another does cake fit my needs question

2008-06-06 Thread teum
Hi, I need to bake an application to allow people to send newsletters. So it is about mass mailing. There may be multiple users sending newsletters to hundreds of email addresses at the same time. Mainly, it's about the Cake Email component : will it be strong enough ? They're not very positive

Re: Keep current password

2008-06-06 Thread benjam
I don't think beforeSave would work, because it gets hashed even before the method that calls Save( ). I think I may have found a cheater (read: non-cake) way of doing it... I run the following test: if ($this-Auth-password('') == $this-data['User']['password']) {

Re: Another does cake fit my needs question

2008-06-06 Thread floob
EmailComponent has worked fine for me. I haven't done any mass mailing, though. FWIW, it's ridiculously simple to drop in 3rd-party mailers with cake's vendor setup. On Jun 6, 2:11 pm, teum [EMAIL PROTECTED] wrote: Hi, I need to bake an application to allow people to send newsletters. So it

Re: Another does cake fit my needs question

2008-06-06 Thread Marcin Domanski
As far as i like the EmailComponent - it's not suitable for mass-mailing (we're talking about 10 000s of emails) and wasn't designed to be.Cake is great to build a fronted, prepare the data etc. You can use SwiftMailer - it's a decent library that has _many_ options for mass mailing - using it

Re: UTF8 vs Dreamweaver

2008-06-06 Thread ZCE-guy
I agree with Chris too (who doesn't??) I have used the Zend IDE, Eclipse PDT, Dreamwaver and Notepad toi develop PHP code. My favorite is RapidPHP 2008 (http://www.blumentals.net/rapidphp/). It is a well rounded tool. My experience is the same with the Java-based tools as being sluggish and

Re: A few questions from a new user.

2008-06-06 Thread DaveMahon
Check out the HttpSocket class in 1.2, particularly the post method, which will allow you to pull from and push to the remote servers. The same library also provides easy access to the headers if and when the remote servers push data. Cake automatically sanitizes form input for SQL automatically,

hasAndBelongsToMany relation - unique is not used

2008-06-06 Thread HappyNoff
Hi all, Sorry if this message has already been sent. I'm having trouble with a habtm relation. I need a non unique relation. But even if I set unique to false in my models it's not used when I use findAll. So I looked in the code and found that in /cake/libs/model/datasources/ dbo_source.php

Re: Keep current password

2008-06-06 Thread b logica
Why not just remove the password field from the form and create a dedicated action/view for changing a password? Works for me. On Fri, Jun 6, 2008 at 5:15 PM, benjam [EMAIL PROTECTED] wrote: I don't think beforeSave would work, because it gets hashed even before the method that calls Save( ).

Simple HABTM Query ?

2008-06-06 Thread Ken
Just started developing with CakePHP a few weeks ago. Loved it until I ran into this seemingly simple problem that is proving difficult to navigate. Using CakePHP 1.2 Nightly from 6 Jun 2008: I have a standard HABTM relationship. In this case it is Courses and Users. A course can have many users

Re: a bit confused (n00b warning)

2008-06-06 Thread Joel Perras
Ok, I'll attempt to re-iterate what you are attempting to do, because it is not completely clear to me: 1) You want to be able to 'add items to an apartment', where items - HABTM- apartments. 2) This should be accomplished through an HTML select drop-down, which would be populated with all the

Re: Model Validation help

2008-06-06 Thread b logica
All of the various database frontends are in cake/libs/model/datasources/dbo/ On Fri, Jun 6, 2008 at 4:18 PM, Turnquist, Jonah [EMAIL PROTECTED] wrote: Thank you! That was exactally what I was looking for. That should work nicely. Still looking for the answer to this question though:

Re: Another does cake fit my needs question

2008-06-06 Thread b logica
I second SwiftMailer. Look into the AntiFlood plugin. I've been using it for a couple of years now for a site that sends thousands of mails at a time. When moving that site over to Cake i made sure to hang onto Swift, as well. There's a component for it at the bakery, though you'll need to modify

Re: Simple HABTM Query ?

2008-06-06 Thread b logica
Have you looked at the SQL that Cake is producing? I have a feeling that this: $this-Session-read('User') is not returning what you expect. And have a look at Mariano's Bindable behavior. It will save you lots of grief. You can find it at the bakery. On Fri, Jun 6, 2008 at 8:11 PM, Ken [EMAIL

Strict or Pretty? We're looking for a few good opinions

2008-06-06 Thread Nate
So, we all love the simplicity and magic that Cake gives us. It's wonderful that we've even been able to deliver these things with relative consistency and transparency across both major versions (and many minor versions) of PHP. It's these things that make Cake what it is. In order to get

Re: Model Validation help

2008-06-06 Thread Turnquist, Jonah
If you are using cakephp and publish websites to the internet, you should very well know if it is secure. My question is do I have to do something to the data before saving it to the database manually to keep it mysql injection safe or does cake take care of that? For instance do I need to use

Re: Simple HABTM Query ?

2008-06-06 Thread Ken
OK... after working on this for a day or so I post the message and then five minutes later stumble onto the right answer. For my case, I used: $this-Course-User-findByUsername(...); This returned an array that included courses for the particular user. It also came back with other HABTM

Re: Simple HABTM Query ?

2008-06-06 Thread Abdullah Zainul Abidin
Yup. Bindable would easily trim those sql down easily to just what you need. But most of the things bindable does is already available in the core of cakephp using containable. Refer to cakebakers notes on it at http://cakebaker.42dh.com/2008/05/18/new-core-behavior-containable/. Makes cutting sql

Re: Model Validation help

2008-06-06 Thread b logica
Huh? Is it too difficult to open the file and search for the word 'escape'? I agree that Cake's inner workings are bloody mysterious, but if you're using PHP--period--you should very well know how to search a file for a method. On Fri, Jun 6, 2008 at 10:31 PM, Turnquist, Jonah [EMAIL PROTECTED]

Re: Tools for merging directories

2008-06-06 Thread David C. Zentgraf
On 6 Jun 2008, at 09:57, Grant Cox wrote: How do you list all files in spotlight? Okay, wow, that was indeed surprisingly non-straight forward. As I don't want to start an OS flamewar here, I'll just list the facts: ;o) Open the Cake folder. Hit Cmd+F to initiate a Search. Make sure the

Re: Tools for merging directories

2008-06-06 Thread David C. Zentgraf
Looks interesting, I'll play around with it. Thanks. On 6 Jun 2008, at 17:19, Kim F wrote: I use piston for my vendor branching needs, really works perfectly. http://piston.rubyforge.org/ --~--~-~--~~~---~--~~ You received this message because you are

Re: Update from 1.2 beta to rc leads to huge perfomance drop

2008-06-06 Thread Dr. Tarique Sani
On Fri, Jun 6, 2008 at 6:06 PM, Hermann Wacker [EMAIL PROTECTED] wrote: What are the steps that one has to do for getting some descent performance out of cakephp? Where are the bottlenecks? If you are creating a sizable project and suffering performance issues the first thing to do is stop

Re: Model Validation help

2008-06-06 Thread Turnquist, Jonah
Looking back over my last reply I think I might have sounded a bit rude, sorry about that I did the search as you said and found one instance of the function, but was not able to make sense of it. I did do some googling and found this page though: http://grahambird.co.uk/cake/ quote from page: