Send Email using Shell in CakePHP

2012-08-07 Thread NewBie
I write a Shell for sending email like this : Controller =& new Controller(); $this->Email =& new EmailComponent(); $this->Email->startup($this->Controller); $this->Email->reset(); $this->Email->to = 'Jonny '; $this->Email->subject = "Subject"; $thi

Models problem

2010-09-20 Thread newbie
Hi. I was trying to debug an issue where whenever I perform $this- >ModelName->Validates(), it always returns true. However, I discovered that if I deleted all the files in the Model folder, I didn't get any errors. I was able to save queries to the database, regardless. What is wrong? Is this expe

Re: Undefined index

2010-04-02 Thread newbie
right! when using findAllBy i had: [audits] => Array ( [0] => Array ( [Audit] => Array but with form and my owne query [audits] => Array ( [0] => Array

Undefined index

2010-03-31 Thread newbie
Hi All, I'm getting error: Notice (8): Undefined index: Audit [APP\views\audits\indexsln.ctp, line 32] Notice (8): Undefined index: Endpoint the codes are index.ctp: create('audits' echo $form->create('Audit', array( 'controller' => 'audits', 'type' => 'post', 'action' => 'indexsln'));

Re: PHP 5.3 open short tag does't working on cakePHP 1.2.6

2010-03-17 Thread anak newbie
use much to write. So, I'll stick with my short tags thank you. Besides, I > control my server and my php.ini. > > _V > > P.S. Closing tags in PHP files other than views are unnecessary, > either. > > > > On Mar 16, 3:25 am, anak newbie wrote: > > Tha

Re: PHP 5.3 open short tag does't working on cakePHP 1.2.6

2010-03-15 Thread anak newbie
r deprecated in > > future PHP versions, so its just best practice to stop using them. > > > > On Mar 14, 4:38 pm, anak newbie wrote: > > > > > Yeap, you're right! > > > > > but somehow open_short_tag affect in making template more clean > > &

Re: PHP 5.3 open short tag does't working on cakePHP 1.2.6

2010-03-14 Thread anak newbie
> :P > > On Mar 14, 1:47 pm, anak newbie wrote: > > Perhaps someday it's can be fixed without open_short_tags enable. > > > > IMHO, using open_short_tags giving clear templates code as well . > > > > On Sat, 2010-03-13 at 14:36 -0800, Miles J

Re: PHP 5.3 open short tag does't working on cakePHP 1.2.6

2010-03-14 Thread anak newbie
; > Enjoy, > >John > > > > On Mar 14, 6:36 am, anak newbie wrote: > > > > > Hello all, > > > > > Today i am upgrading my server to PHP 5.3 and see something trouble. > > > > > My cakePHP get ugly and i see that open short tags doesn&

PHP 5.3 open short tag does't working on cakePHP 1.2.6

2010-03-13 Thread anak newbie
Hello all, Today i am upgrading my server to PHP 5.3 and see something trouble. My cakePHP get ugly and i see that open short tags doesn't work. like I have many open short tags on everywhere. I know solution is to enable open , short tags on php.ini My question can it solved without short

Re: array + sql problem

2010-01-31 Thread newbie
got it before it was acked start with is not for that :/ i should have add % mark at the end of searched date $creaded [10]=% and use LIKE, WHERE Audit.created LIKE $creaded Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You

array + sql problem

2010-01-30 Thread newbie
hi All, I've got a problem of how statment in array is translated into sql Below is my function that is supposed to find records od certain day. field creaded is day+hour dormat -mm-dd 00:00:00; in variable $created there's only -mm-dd. I would like to find all records that start with $cr

Re: newbie - issue with retrieving a value from an array

2008-07-02 Thread Latoune - Newbie
;][0] > ['id']? > > Btw, you shouldn't do the findByTitle twice, this is better: > > $var = $this->Post->findByTitle($this->data['Post']['title']); > >  if      (!empty($var)) >  { >          $this->redirect('/posts/view/&#

newbie - issue with retrieving a value from an array

2008-07-01 Thread Latoune - Newbie
Hi, I am a newbie so please sorry if the question seems basic but I cannot find this solution: I have created a Posts table with the following attributs: id, title, bodytext, etc. I now want to test the findby function so I create a function called "findbytitle&q

How to register in the bakery?

2008-02-01 Thread jakecake (newbie)
Hi, I try since many days to register in the bakery (http:// bakery.cakephp.org) but I never receive the email to confirm. Even if I ask for a new pw, no email. I don't find any 'contact' form on the bakery to report the problem. So maybe somebody can help here ;) Thanks. --~--~-~--~---

Re: Saving additional fields in HABTM tables ("With" Associations)

2008-01-30 Thread jakecake (newbie)
> But maybe I should go the way you described. It's a little bit > frustrating as a beginner to spent hours on a tiny step :-) Did you check this? Bug in cake beta 1.2 model : http://groups.google.com/group/cake-php/browse_thread/thread/2ad48c4e10f58fc0/c7c4511051071b52 --~--~-~--~~

Re: On the fly validation in model and form

2008-01-30 Thread jakecake (newbie)
Thanks a lot, sure it helps! I didn't know the validateAction property. I will try to hack by this way, or maybe keep the current manual validation. Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP"

On the fly validation in model and form

2008-01-30 Thread jakecake (newbie)
Hi, I need to validate some fields in a model called User (id, name, email, password). That's quite easy with 1.2 rules. For exemple, it is easy to check that the password field is not empty when the user register, because an empty password is not valid. But on the over hand, when the user brows

Re: Bug in cake beta 1.2 model

2008-01-30 Thread jakecake (newbie)
> I found (and fixed) a bug in the model.php file, and I can't report it > in the trac system, so I thought I'd report it here in case someone > sees it and can fix it. Whaaao!! Thanks a lot! I am a newbie to cake and since 2 days I was running around this strange beha

Re: Saving Multiple HABTM associations

2008-01-30 Thread jakecake (newbie)
Maybe check this thread (Bug in cake beta 1.2 model) http://groups.google.com/group/cake-php/browse_thread/thread/2ad48c4e10f58fc0/c7c4511051071b52 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group.

Re: Bug in cake beta 1.2 model

2008-01-30 Thread jakecake (newbie)
> The problem is in /cake/libs/model/model.php line 364 and on. In the > code it says: Line 1193 in Revision: 6398, Date: 2008-01-20 20:21:28 -0600 (Sun, 20 Jan 2008) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: HABTM Save - Something with cake or me?

2008-01-30 Thread jakecake (newbie)
Maybe check this thread (Bug in cake beta 1.2 model) http://groups.google.com/group/cake-php/browse_thread/thread/2ad48c4e10f58fc0/c7c4511051071b52 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group.

Full path in the Controller::$here property

2008-01-29 Thread jakecake (newbie)
Hi, When an application is not served at the root of the webserver, why is the $this->here property not relative to the webroot property? ex. If I go to http://localhost/mywww/tests/cakebeta/controller/action I get: [webroot] => /mywww/tests/cakebeta/ [here] => /mywww/tests/cakebeta/controlle