Re: Release: Some RC2 Sweetness

2008-06-30 Thread [EMAIL PROTECTED]
Great work, everyone. Thanks a lot! Martin On Jun 27, 9:40 pm, mbavio [EMAIL PROTECTED] wrote: Thanks! Cheers, mbavio On Jun 27, 1:33 pm, francky06l [EMAIL PROTECTED] wrote: Great, thanks to the team !! On Jun 27, 1:58 pm, dr. Hannibal Lecter [EMAIL PROTECTED] wrote: We get

Re: Email component won't send

2008-06-30 Thread Turnquist, Jonah
Ok, I went through the email component code and removed the '@' sign from the mail function to show error messages, and so now it gives this error: Warning (2): mail() [function.mail]: SMTP server response: 550 5.1.0 =?UTF-8?B??= [EMAIL PROTECTED] '@' or '.' expected after '=?UTF-8? B??='

Re: paginate problems RC1

2008-06-30 Thread leo
Seems to me that there are times when frameworks just make things more complicated and open to error. If a core developer can get it wrong, what chance do mere mortals stand? The whole array/SQL segment is not what I would describe as intuitive. On 29 Juny, 18:44, NOSLOW [EMAIL PROTECTED] wrote:

Re: Cakephp for Commercial application development

2008-06-30 Thread dezpo
I can help you with all of this, you can contact me at [EMAIL PROTECTED] On Jun 30, 9:10 am, Binu [EMAIL PROTECTED] wrote: Hi All, We are planning to build a new eCommerce application in cakephp from scratch. I know that, it will take time to build a fully customizable and functioning

Re: Cakephp for Commercial application development

2008-06-30 Thread Marc MENDEZ
Binu a écrit : I'm a newbee too, but I think I could answer to some of your questions : 3.How can I switch to different template layouts (as like in joomla) ? In cake, we are placing the image files, css etc in separate folders, so how can I create a template layout easily without placing

Newbie saveField error?

2008-06-30 Thread [EMAIL PROTECTED]
Please excuse this cake newbie here, I know I must have done something wrong but I simply cannot figure out what I did wrong. I have a model called Guild that is using Sluggable, Containable and Transaction Behaviors. I added a convenience function, called createNewGuild, that is supposed to

Email Problem

2008-06-30 Thread Nam
I am using the CakePHP email component to send activation email, but it seems like it can be only sent to gmail accounts. By the way, I am using a private ubuntu server set up by my friend. Does anyone know about the issue, or have the same problem? Thank you in advance!

Re: Cant't change Columns or View

2008-06-30 Thread skyrocket777
Thanks for reading!!! I have the most recent version of CakePHP, and in fact i make the MVC interactively, but if i comment the var $scaffold; then on the index it shows me You are seeing this error because the action index is not defined in controller XController. As you notice i am new on

Question about locales and their correct way of using

2008-06-30 Thread Mark (germany)
I started to translate some of the hello, nice to have you back oder This is the Page about Mosquitos into GERMAN, etc. now.. first of all, some of the translations can get pretty long - and have to be in the source code wouldn't it be more logic, to set short names like MESSAGE_HELLO etc (like

Re: Validation problems

2008-06-30 Thread garry
Anyone have any ideas? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED]

dompdf in CakePHP

2008-06-30 Thread roby
Hi, everyone. I've a question about dompdf. Maybe one of you ever have the same problem like me and would like to share the solution. I want to generate a PDF file but unfortunately, it seems didn't work at all in my cake project. I've searched the internet and found this link:

Re: Release: Some RC2 Sweetness

2008-06-30 Thread RoVo
Great work! Kudos to the hole team! ...and many, many thanks...!!! --~--~-~--~~~---~--~~ 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

Re: Cant't change Columns or View

2008-06-30 Thread skyrocket777
I commented the $scaffold line and downloaded the most recent version of CakePhp and the problem persist. Nothing happends if i removed the line of code that is supposed to show or removed the columns i want. In fact i created the MCV interactively. Thanks for your help On 25 jun, 09:37, Marc

AuthComponent sessions not working in firefox or ie7

2008-06-30 Thread peele
This is my first time using cake and I'm starting out with trying to make a simple user system (no acl, yet). I'm developing on windows (wamp, apache 2.2.8, php 5.2.5, mysql 5.0.51a) using firefox, ie7 and safari on windows, cake_1.2.0.7296-rc2. The install went smoothly and the homepage said

Newbie question about multiple databases

2008-06-30 Thread rfflower
I'm a newbie trying to understand CAKE, and so far so good. I've understood the 'blog' tutorial. I am trying to make an app where users login and then use the app to add their data to their own copy of a database. There would be lots of databases (all same structure) each solely for that user. I

Issue getting cake blog tutorial working with easyphp

2008-06-30 Thread Latoune
Hi all, I cannot make a simple application (posts) working. I have set up EasyPhp 2.0.0.0 and it works fine.I am able to get everything working. I created a database postdb and created a table as specified in the tutorial (see below). I have now set up CakePHP under a folder www/cake. I have

Re: Documentation

2008-06-30 Thread nastya
I can't get through with ACL and i18n... Cookbook is definitely not clear enough on those subjects. Now i need to creat an admin for multilingual site with easy add/delete language in admin and I can't find any explanation of how to do it... Can anybody help me please? Would you have some

Re: CSS and images disappear when accessing actions

2008-06-30 Thread dlite922
why do I have to link the CSS for all actions other than index? I'm using a layout and a global CSS for the entire site. This CSS is included in the global. Do I have to include CSS in every action? That doesn't seem right. What about images? Those have nothing to do with CSS? On Jun 28,

Redirect according the request source

2008-06-30 Thread depi
Hello, I have and *Edit link* in 'index' and 'detail' view. I would like to do a redirect after saving the data from edit form to one of that views according from where the user access the edit form. I'm trying it with using $this-referer() and saving it to session, but it always redirect me to

Model: only validate field 'A' if field 'B' was filled in

2008-06-30 Thread Colmar
Hello everyone, I'm trying to accomplish a user profile page where the user has the possibility to edit his / her details: - nick name - e-mail address - newsletter - old password - new password - new password 2x It works awesome however I don't want the Model to validate the three latter

Multiple findallthreaded queries optimization.

2008-06-30 Thread ACNet
Hi, I'm posting this message because i'm a beginner with cakephp, i've succeeded to make something i wanted to do but i'm wondering if there's a better way because this one take a lottt of time to achieve. I'm trying to make a search query on a tree. The search result must show found items

AuthComponent sessions not working in firefox or ie7

2008-06-30 Thread peele
This is my first time using cake and I'm starting out with trying to make a simple user system (no acl, yet). I'm developing on windows (wamp, apache 2.2.8, php 5.2.5, mysql 5.0.51a) using firefox, ie7 and safari on windows, cake_1.2.0.7296-rc2. The install went smoothly and the homepage said

Is there a CakePHP API/Manual mirror?

2008-06-30 Thread marikka
Hi! Does a mirror of the API and the Manual exist? I need to work on my Cake app, but the whole cakephp.org seems to be down.. pings fine, but doesn't answer to http, not the first time either. Thanks for RC2! -M --~--~-~--~~~---~--~~ You received this message

Re: Slow page loads, max execution time out

2008-06-30 Thread amfriedman
UPDATE: Thanks James K! I did research Containable behavior and have replaced 'restrict' with 'contain'. The model errors are gone now. * However, the performance problem continues. * I was also thinking about app_controller. I let my laziness get the best of me and loaded it up with 12

Re: $loginRedirect in the Auth component does not work?

2008-06-30 Thread wil
I was having this problem and then set debug = 3 and which seems to have resolved it. Maybe a cache issue? On Jun 24, 4:03 pm, deltawing [EMAIL PROTECTED] wrote: I tried setting $loginRedirectin theAuthcomponent but it doesn't seem to work. No matter what I set the variable to, Cake will

Re: Editing model's primary key in forms

2008-06-30 Thread Mr. Matt
I believe this should work: ?php echo $form-input('Player/id', array('type' = 'text')); ? On Jun 27, 5:54 pm, Bryan D [EMAIL PROTECTED] wrote: I would like to allow a model's primary key field (named id) to be editable, at least upon creation of a new object. I noticed that using syntax

Auth sessions not working in firefox or ie7

2008-06-30 Thread peele
I'm using the AuthComponent and experimenting with cake and making a simple user system. I thought I had things working but the session isn't maintained using firefox or ie7, works with safari (all on windows, using wamp). I've tried using security low, medium and high, php sessions and cake,

Re: Cakephp for Commercial application development

2008-06-30 Thread Erik Gyepes
It would be also nice if some answers will appear here in this thread (at least for other newbies ;-)) On 30.6.2008, at 10:57, dezpo wrote: I can help you with all of this, you can contact me at [EMAIL PROTECTED] On Jun 30, 9:10 am, Binu [EMAIL PROTECTED] wrote: Hi All, We are

Preparing for the Digg Effect

2008-06-30 Thread RichardAtHome
Hi everyone. We are about to start developing a web application (flash/php) that is quite likely to attract the Digg/Reddit crowd. The CakePHP side of things is pretty minimal (5-10 static pages, 5-10 dynamic pages, 4 or 5 database tables, basic authentication and sessions). Does anyone have

Re: Preparing for the Digg Effect

2008-06-30 Thread Dr. Tarique Sani
On Mon, Jun 30, 2008 at 3:11 PM, RichardAtHome [EMAIL PROTECTED] wrote: Does anyone have any tips, techniques or experience about best practices for managing a potentially large visitor spike without the box catching fire? Cache! cache!! and more cache!!! that is provided you have done

Re: Auth sessions not working in firefox or ie7

2008-06-30 Thread dr. Hannibal Lecter
Is Firefox/IE set to accept cookies? And keep them until they expire? On Jun 29, 10:02 pm, peele [EMAIL PROTECTED] wrote: I'm using the AuthComponent and experimenting with cake and making a simple user system. I thought I had things working but the session isn't maintained using firefox or

Re: dompdf in CakePHP

2008-06-30 Thread RichardAtHome
Hi I was the author of that blog article. Thanks for reading :-) I've been meaning to get back and update it as I eventually ran into some problems with it later in the project (works fine on Windows, fails on Linux - didn't have enough time to work out why). In the end. I installed the stand

Re: dompdf in CakePHP

2008-06-30 Thread Marcin Domanski
Hey, you are aware that the dompdf standalone script has a security vulnerability ? apart from that - maybe try tcpdf ? it works for me without problems greets, On Mon, Jun 30, 2008 at 12:02 PM, RichardAtHome [EMAIL PROTECTED] wrote: Hi I was the author of that blog article. Thanks for

Multiple ordering of a field in cake1.2

2008-06-30 Thread Fahad
the main SQL code (from phpMyAdmin - works fine) SELECT * FROM `users` ORDER BY id =2 DESC , id ASC LIMIT 0 , 30 cakified (gives an error) $users_list = $this-User-find('all', array('order' =(User.id=2) DESC, User.id ASC)); Error shown: SQL Error: 1064: You have an error in your SQL syntax;

find() puts dynamic fields in strange places.

2008-06-30 Thread [EMAIL PROTECTED]
Hi, I am trying to return calculated data from MySQL in a find. I am not sure if this kind of thing is supposed to work at all. I may have to resort to qustom queries. Here is my little find statement: $this-Post-find('all', array( 'fields'=array( '*', 'DATE(Post.created)

Re: complex findAll()

2008-06-30 Thread grigri
Solved (for me) by doubling the parentheses: $tmp = $this-Cookie-find('all', array( 'conditions' = array(), 'recursive' = -1, 'order' = array('((Cookie.rating=1)) DESC', 'Cookie.rating DESC') )); Generates SQL: SELECT [...] FROM `cookies` AS `Cookie` WHERE 1 = 1 ORDER

Re: Multiple ordering of a field in cake1.2

2008-06-30 Thread grigri
Solved (for me) by doubling the parentheses: $tmp = $this-Cookie-find('all', array( 'conditions' = array(), 'recursive' = -1, 'order' = array('((Cookie.rating=1)) DESC', 'Cookie.rating DESC') )); Generates SQL: SELECT [...] FROM `cookies` AS `Cookie` WHERE 1 = 1 ORDER

Re: paginate problems RC1

2008-06-30 Thread NOSLOW
leo, I hear what you're saying but I disagree in this case. The array- based syntax for creating complex where conditions is the bomb! Sure, the LIKE clause is a little unique, but once you learn it, it's no big deal. I particularly like that you can avoid writing IN clauses by doing this:

Re: complex findAll()

2008-06-30 Thread Fahad
it worked!!! :D thanks a lot! On Jun 30, 5:00 pm, grigri [EMAIL PROTECTED] wrote: Solved (for me) by doubling the parentheses:     $tmp = $this-Cookie-find('all', array(       'conditions' = array(),       'recursive' = -1,       'order' = array('((Cookie.rating=1)) DESC', 'Cookie.rating

Re: find() puts dynamic fields in strange places.

2008-06-30 Thread grigri
As-is, this is not supported in CakePHP. Well, not for MySQL. Divvying up the resultset into chunks (as you would expect [and works fine] for joins) is not as easy as it sounds, and depends greatly on the underlying database. MySQL supports the concept of the originating table for each returned

Testing for empty field only

2008-06-30 Thread marikka
Hi! I want to be able to validate my model so that first I get an error if a field is empty, and only then, if the field is invalid in another way. For example,this doesn't work, because my 'rule' for 'empty' is not set. var $validate = array( 'myField' = array(

Re: Testing for empty field only

2008-06-30 Thread grigri
Just add a dummy rule; if the 'allowEmpty' fails then the rule won't be checked anyway: array( 'empty' = array('allowEmpty' = false, 'rule' = '/.*/', ...), 'format' = ... ), On Jun 30, 10:27 am, marikka [EMAIL PROTECTED] wrote: Hi! I want to be able to validate my model so that first I

Re: Editing model's primary key in forms

2008-06-30 Thread Jonathan Snook
On Sun, Jun 29, 2008 at 6:19 AM, Mr. Matt [EMAIL PROTECTED] wrote: I believe this should work: ?php echo $form-input('Player/id', array('type' = 'text')); ? Just to clarify, it's Player.id (notice the . instead of the /) --~--~-~--~~~---~--~~ You received

CakePHP Corporate Identity Colorpalette

2008-06-30 Thread powtac
Is there a CakePHP (PS) colorpalette to use for cake applications? To get this green look and feel? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: CakePHP Corporate Identity Colorpalette

2008-06-30 Thread Nate
We have a palette that's available with most of those colors, which you can find in cake.generic.css, which ships with the framework. That's about it though. On Jun 30, 7:48 am, powtac [EMAIL PROTECTED] wrote: Is there a CakePHP (PS) colorpalette to use for cake applications? To get this green

Re: paginate problems RC1

2008-06-30 Thread leo
Well, trying to get my head round nested AND OR queries when they are specified as arrays is just too much for the goat cheese inside my cranium. There are so many instances like this where documentation is poor and the universal answer is: Well, read the API or as Mario said at the beginning

Re: find() puts dynamic fields in strange places.

2008-06-30 Thread [EMAIL PROTECTED]
Thanks grigri. That explains it. Then I will either live with them belonging to table 0 or try to do things another way. /Maritn On Jun 30, 1:15 pm, grigri [EMAIL PROTECTED] wrote: As-is, this is not supported in CakePHP. Well, not for MySQL. Divvying up the resultset into chunks (as you

Re: Download location

2008-06-30 Thread grigri
Tried /app/webroot/files/download/file.zip but it doesnt work. Erm... yes it does, I use it all the time. Put the file in /app/webroot/files/something.zip Set a link to /files/something.zip (or type in the address bar) Works fine! --~--~-~--~~~---~--~~ You

Re: Cakephp for Commercial application development

2008-06-30 Thread James K
1. Hope cakephp is suitable for building this kind of application ? Here we are going to use the latest version of cakephp (RC2). We will migrate to the stable version once it is released.How difficult it will be ? I would consider this largely a non-issue. The cakephp team is generally

Re: Cakephp for Commercial application development

2008-06-30 Thread Dr. Tarique Sani
On Mon, Jun 30, 2008 at 1:40 PM, Binu [EMAIL PROTECTED] wrote: Hi All, We are planning to build a new eCommerce application in cakephp from scratch. I know that, it will take time to build a fully customizable and functioning product. DIE MAGENTO DIE!! - best of luck :) Tarique --

Re: AuthComponent sessions not working in firefox or ie7

2008-06-30 Thread Chris Hartjes
On Sun, Jun 29, 2008 at 5:36 PM, peele [EMAIL PROTECTED] wrote: I've searching this group and other resources for a day and half, tried multiple combinations of things, looked for whitespace. I'm familiar with php but new to cake. Thank you for your help. You are missing a beforeFilter()

Re: Is there a CakePHP API/Manual mirror?

2008-06-30 Thread Chris Hartjes
On Mon, Jun 30, 2008 at 4:02 AM, marikka [EMAIL PROTECTED] wrote: Hi! Does a mirror of the API and the Manual exist? I need to work on my Cake app, but the whole cakephp.org seems to be down.. pings fine, but doesn't answer to http, not the first time either. Works fine for me, maybe it's

Re: Cakephp for Commercial application development

2008-06-30 Thread Binu
Thanks for the replies. Still some doubts.. Q:2. I will try to make this more clear. Since, it is a product, we have different modules (can be tell as functionality) and are depends upon the client. Some clients may want some modules and others may not. The superadmin (not site admin) should be

Re: AuthComponent sessions not working in firefox or ie7

2008-06-30 Thread leo
Or alternatively, I found that Chris's method was sometimes unreliable for me - this is a very configuration dependent component - so I RE- declare the auth component: class UsersController extends AppController { var $components = array('Auth','Cookie'); ... } The

Re: Is there a CakePHP API/Manual mirror?

2008-06-30 Thread leo
I, too, occasionally experience 'down' or 'v. slow' problems. My solution was to copy the book-in-a-page http://book.cakephp.org/complete/3/the-manual to your local machine (and refresh it regularly to catch updates). There is a nice API here which you can download :

Re: Cakephp for Commercial application development

2008-06-30 Thread James K
CakePHP is only a framework. It offers a structure, a set of conventions and some helpful shortcuts out of the box, but beyond that you're going to have to build the rest yourself. There are an endless number of ways you could implement a dynamic module system, for instance. There's nothing out

Re: Model: only validate field 'A' if field 'B' was filled in

2008-06-30 Thread DaveMahon
You'll probably want to just go ahead and unset those fields - not just because that will eliminate validation, but also because it will prevent your app from overwriting people's passwords. On Jun 29, 10:37 am, Colmar [EMAIL PROTECTED] wrote: Hello everyone, I'm trying to accomplish a user

Re: find() puts dynamic fields in strange places.

2008-06-30 Thread grigri
Easiest way by far is to extend the datasource. Here's the code you need: http://i-love-cake.pastebin.com/f78d0639a (you only need the 1st function - the `fields` is for something else, but is handy too) hth grigri --~--~-~--~~~---~--~~ You received this

Re: Cakephp for Commercial application development

2008-06-30 Thread Jaime
We are planning to build a new eCommerce application in cakephp... There is an interesting e-Commerce project driven by CakePHP in which I have participated: Bakesale (http://bakesalehq.com). They are planning to release version 1.2 these days. I love it and it's very well designed. Maybe you

Re: Question about locales and their correct way of using

2008-06-30 Thread Joel Perras
How is this different from what the CakePHP book ( http://tinyurl.com/67za2h ) describes? You can set whatever you want for a msgid. -Joel. On Jun 28, 4:03 pm, Mark (germany) [EMAIL PROTECTED] wrote: I started to translate some of the hello, nice to have you back oder This is the Page about

vendor vs app:import call the constructor...

2008-06-30 Thread Alessio
I notice that using app::import in the helper file or in the controller, it will call the constructor of the class... So all the old code doesnt work... FOr example the fpdf example...doesn't work.. It call two time the constructor, and the var $orientation becomes an array... I want call the

Flux RSS

2008-06-30 Thread Nayosis
Hi, I have a problem with my RSS. That's my code : // View rss version=2.0 xmlns:dc=http://purl.org/dc/elements/1.1/; channel titlesite.com : news/title linkhttp://www.site.com//link descriptionAll my news !/description languagefr/language pubDate?php

Re: Slow page loads, max execution time out

2008-06-30 Thread amfriedman
James K - I did research Containable behavior and have replaced 'restrict' with 'contain'. The model errors are gone now. Thanks for that one. ** However, the performance problem continues. ** I was also thinking about app_controller. I let my laziness get the best of me and loaded it up

Re: Flux RSS

2008-06-30 Thread leo
I think you might need an atom feed for Google. $rss-addNs(atom, http://www.w3.org/2005/Atom;); echo 'atom:link href=http://yourFeedUrl/index.rss; rel=self type=application/rss+xml /'; Validate the feed at http://validator.w3.org/feed/ Nayosis ha escrit: Hi, I have a problem with

Re: vendor vs app:import call the constructor...

2008-06-30 Thread Alessio
someone was able to use example of fpdf in cakebaker. but using php5 and rc2... I don't know why in the helper cakephp pass an array to the class of Fpdf... In 1.1 it look likes regular... On 30 Giu, 17:54, Alessio [EMAIL PROTECTED] wrote: I notice that using app::import in the helper file

phpThumb Component causing weird redirects

2008-06-30 Thread Kyle Decot
I am using the phpThumb Component on my photos controller. whenever I navigate to a page that has a route applied to it, for example localhost/admin/delete-photo.php, i get redirected to localhost/admin/ photos/delete. The weird thing is that the photos controller delete() doesn't even do

Question about findAll and limits

2008-06-30 Thread Margarittka
Hello! Does anybody know, how can i realize mysql-request like SELECT * FROM products WHERE Product.active = 1 LIMITS 30, 5; ? i want to know how to do such request with two limits using function findAll. Please, help me if you know how to do it!! Thank for any help

Newbie Question: conditions on a find('all') for hasMany?

2008-06-30 Thread Mike
Hello! I'm really sorry to post this, but I've looked around, and haven't been able to figure out how to do a find on a Model (named 'Term), using conditions that restrict the results based on fields in another model (named Course) that belongsTo the first model . Term hasMany Course. In the

Re: Question about findAll and limits

2008-06-30 Thread Jonathan Snook
When using two numbers, the first number defines the OFFSET, the second number is the LIMIT. In a findAll query, look to the PAGE parameter: findAll(string $conditions, array $fields, string $order, int $limit, int $page, int $recursive); The page will automatically set the offset to $page *

Re: Testing for empty field only

2008-06-30 Thread marikka
Thanks! That's the first thing that occured to me, but I was wondering if there was a better way. Finally I ended up writing a validator function in AppModel function notEmpty($data) { return (current($data) != ''); } On 30 kesä, 14:24, grigri [EMAIL PROTECTED] wrote: Just add a dummy

how to use sql sum, avg, count function in Model Class Reference?

2008-06-30 Thread kknd
how to use sql sum, avg, count function in Model Class Reference? $this-Payment-findAll(,SUM(payment) as payment) not working, y? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this

Firefox 3 Cookies Auth

2008-06-30 Thread Tony Thomas
I spent a long time on this so I thought I'd share it with the community. I was wracking my brain trying to get Auth to work properly on a site I'm testing locally in Firefox 3. No matter what I did, the application locked me out with a message stating You are not authorized I read several

Re: Email component won't send

2008-06-30 Thread Turnquist, Jonah
Update: I figured out I can get it to work if I remove all and $this-Email-from = 'No Reply noreply@'.env('HTTP_HOST').''; $this-Email-replyTo = No Reply 'noreply@'.env('HTTP_HOST').''; $this-Email-return = No Reply 'noreply@'.env('HTTP_HOST').''; changed to this: $this-Email-from =

Re: Session problem with phpcaptcha component in Cake 1.1

2008-06-30 Thread skoggins
I figured it out. I needed to exclude 'users/captcha' from my __validateLoginStatus method, that's all. On Jun 26, 11:23 am, skoggins [EMAIL PROTECTED] wrote: Hi All, I am trying to use the phpcaptcha component with Cake 1.1. and I find that it works fine when a user is logged in but the

Database save status issue

2008-06-30 Thread Nirav Mehta
Hi, I seem to have a problem with handling errors on saving to the database. I am using PostGre. When I try to save some data that is incorrect, the Model-save method returns *true*, indicating that the method was successful, but PHP exists with errors from the database pg_query() method. So is

Re: Use model inside helper

2008-06-30 Thread Mike
I've got a quick question about this - Let's say I have a Model for User, which has a firstname and lastname. Let's say that I want a method that will take data for an instance of hte model, and produce a full name (i.e., return $data['User']['firstname'] .' '. $data['User']['lastname'];,

RE: Database save status issue

2008-06-30 Thread Christian Winther
save should return array in 1.2 - are you on 1.1? From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nirav Mehta Sent: 30. juni 2008 22:38 To: cake-php@googlegroups.com Subject: Database save status issue Hi, I seem to have a problem with handling errors on saving to

Re: Email component won't send

2008-06-30 Thread r0mk1n
you are trying to send via PHPs mail function ( default method in Email component ), but you can`t do it from localhost ;) better way - send via SMTP 1. you need to setup smtp delivery: $this-Email-delivery = 'smtp'; 2. setup SMTP params: $this-smtpOptions = array( 'port'= 25, 'host' =

Re: Email component won't send

2008-06-30 Thread r0mk1n
this string $this-smtpOptions . must be: $this-Email-smtpOptions = array( 'port'= 25, 'host' = 'yourSMTPServer', 'username'='yourUserName', 'password'='yourSMTPPassword', 'timeout' = 30 ); Sorry :( On Jul 1, 12:53 am, r0mk1n [EMAIL PROTECTED] wrote: you are trying to send via PHPs mail

Re: Email component won't send

2008-06-30 Thread Turnquist, Jonah
I can use mail() with localhost. I set up the php.ini to do it and it works fine. I also got it to work with the email component, but only if I don't contain or characters, that is my problem. On Jun 30, 2:55 pm, r0mk1n [EMAIL PROTECTED] wrote: this string $this-smtpOptions . must be:

Re: Email component won't send

2008-06-30 Thread Turnquist, Jonah
Question, will using SMTP as you suggested still work once I upload it to dreamhost? On Jun 30, 3:00 pm, Turnquist, Jonah [EMAIL PROTECTED] wrote: I can use mail() with localhost.  I set up the php.ini to do it and it works fine.  I also got it to work with the email component, but only if I

Re: Email component won't send

2008-06-30 Thread r0mk1n
no, you can use it anywhere you want ( with correct options of course ) On Jul 1, 1:03 am, Turnquist, Jonah [EMAIL PROTECTED] wrote: Question, will using SMTP as you suggested still work once I upload it to dreamhost? On Jun 30, 3:00 pm, Turnquist, Jonah [EMAIL PROTECTED] wrote: I can use

Re: Email component won't send

2008-06-30 Thread Turnquist, Jonah
Ok, thanks for the help. I'm not sure yet if I am going to switch or not yet, as it does work kinda, just not all the way. Probably will later actually Thanks, Jonah On Jun 30, 3:07 pm, r0mk1n [EMAIL PROTECTED] wrote: no, you can use it anywhere you want ( with correct options of course )

Re: Release: Some RC2 Sweetness

2008-06-30 Thread Gustavo Carreno
On Fri, Jun 27, 2008 at 10:43 AM, Gwoo [EMAIL PROTECTED] wrote: The release of CakePHP 1.2RC2 [1] with several bug fixes and optimizations brings more speed and stability to the 1.2 series. Due to work impositions I'm now a ZF guy, well not a ZF guy since I'm being dragged kickin' an

Re: Documentation

2008-06-30 Thread Gustavo Carreno
Hey John, Ok, for me it's definitely ACL. I've read most of the blog's articles about it. Read most of the GG threads but it's still a big scary monster. I understand the concept. I understand most of the configuration stuff on the controller but the problem is that you have many types of

Re: Newbie Question: conditions on a find('all') for hasMany?

2008-06-30 Thread floob
I'm not sure that either of these suggestions will help your problem, but ... 1) you should try using the latest CakePHP (revision 7296 last I checked). There have been a number of improvements and bug fixes since 6311. 2) you've got an extra comma at the end of your find query ('recursive' =

bug with findAllThreaded in cake1.2 rc2 build 7296?

2008-06-30 Thread ray
Hi there... I tried the irc room but didn't get a response. I believe there's a new bug that was introduced with the latest version of cake1.2rc2 (build 7296) Previously findAllThreaded would work for tables that didn't have a primary key of 'id' but as of this build looks like it was

Re: bug with findAllThreaded in cake1.2 rc2 build 7296?

2008-06-30 Thread Jonathan Snook
Post it to trac. If at all possible, including a test case and/or patch would be helpeful as well. On Mon, Jun 30, 2008 at 10:12 PM, ray [EMAIL PROTECTED] wrote: Hi there... I tried the irc room but didn't get a response. I believe there's a new bug that was introduced with the latest

Re: bug with findAllThreaded in cake1.2 rc2 build 7296?

2008-06-30 Thread ray
Will do. Thanks Jonathan. On Jun 30, 7:21 pm, Jonathan Snook [EMAIL PROTECTED] wrote: Post it to trac. If at all possible, including a test case and/or patch would be helpeful as well. On Mon, Jun 30, 2008 at 10:12 PM, ray [EMAIL PROTECTED] wrote: Hi there... I tried the irc room but

Re: Newbie Question: conditions on a find('all') for hasMany?

2008-06-30 Thread Grant Cox
The documentation you are referring to is misleading - a join is only used across a belongsTo association (and hasOne), never for hasMany. Basically, you can't have query conditions across a hasMany association. You will have to either query the other way (as you saw, the Course belongsTo Term,

FPDF in cakephp 1.2

2008-06-30 Thread joselee
I have a cakephp 1.1 where i can generate pdf using fpdf, I am currently shifiting the application to cakephp 1.2 I get a Notice and an error Notice (8): Array to string conversion [APP\vendors\fpdf\fpdf.php, line 148] Code | Context $orientation= array() $unit = mm $format =