$jobstatus =
$this-Jobstatus-findByTrackingno($this-data['Jobstatus']['track']));
if (empty($jobstatus):
do something;
else:
do something else;
endif;
$this-set('jobstatus', $jobstatus);
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 19
I have this code:
$this-set('jobstatus',
$this-Jobstatus-findByTrackingno($this-data['Jobstatus']['track']));
I was wondering how can I know if findByTrackingno is empty? So I could
trigger an error without displaying the view?
Thanks
--
Louie Miranda
- Email: lmira...@gmail.com
- Web:
Anyone? thanks.
--
Louie Miranda
- Email: lmira...@gmail.com
- Web: http://www.louiemiranda.com
On Mon, Jul 19, 2010 at 2:20 PM, Louie Miranda lmira...@gmail.com wrote:
I have this code:
$this-set('jobstatus',
$this-Jobstatus-findByTrackingno($this-data['Jobstatus']['track']));
I was
If your tracking number is null before you assign it a value you can
findByTrackingno(null)
Mike Karthauser
Brightstorm limited
Tel: 07939252144
On 19 Jul 2010, at 08:49, Louie Miranda lmira...@gmail.com wrote:
Anyone? thanks.
--
Louie Miranda
- Email: lmira...@gmail.com
- Web:
I am sorry.. like this?
if ($this-Jobstatus-findByTrackingno(null)) {
// error
}
else {
// do here
}
--
Louie Miranda
- Email: lmira...@gmail.com
- Web: http://www.louiemiranda.com
On Mon, Jul 19, 2010 at 4:03 PM, mike karthauser mi...@brightstorm.co.ukwrote:
If your tracking
hi louie
perhaps..
have you tried that?
On Mon, July 19, 2010 9:16 am, Louie Miranda wrote:
I am sorry.. like this?
if ($this-Jobstatus-findByTrackingno(null)) {
// error
}
else {
// do here
}
--
Louie Miranda
- Email: lmira...@gmail.com
- Web: