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
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
right!
when using findAllBy i had:
[audits] => Array
(
[0] => Array
(
[Audit] => Array
but with form and my owne query
[audits] => Array
(
[0] => Array
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'));
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
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
> >
&
> :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
; > 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&
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
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
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
;][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/
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
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.
--~--~-~--~---
> 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
--~--~-~--~~
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"
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
> 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
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.
> 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 "
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.
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
22 matches
Mail list logo