RE: Im dumb...help! - Solved!

2009-09-27 Thread Dave Maharaj :: WidePixels.com

 
Thanks guys,

Looks like I it was just a missing an  at the end.

Like I said... I'm dumb :P


Thanks for you time once again.

Dave
-Original Message-
From: Dave Maharaj :: WidePixels.com [mailto:d...@widepixels.com] 
Sent: September-27-09 8:04 PM
To: cake-php@googlegroups.com
Subject: RE: Im dumb...help!


I have the same idea set up in the admin for the user but its in reverse and
it works fine.



You have no favorites or Contributing Posts.

Either or both have data so show the user their infoif both are empty do
nothing.

Dave


-Original Message-
From: Dave Maharaj :: WidePixels.com [mailto:d...@widepixels.com]
Sent: September-27-09 7:46 PM
To: cake-php@googlegroups.com
Subject: RE: Im dumb...help!


When I debug all the info is there a lot of data for that function but the 2
im look at for the if are both empty. 

[Post] => Array
(

)
[Favorite] => Array
(

  )

-Original Message-
From: Gonzalo Servat [mailto:gser...@gmail.com]
Sent: September-27-09 7:41 PM
To: cake-php@googlegroups.com
Subject: Re: Im dumb...help!


On Mon, Sep 28, 2009 at 8:05 AM, Dave Maharaj :: WidePixels.com
 wrote:
>
> When I test it out I know there is no data for either.
>
> So in the view:
>  
> Dummy title If info this should show up 
>
> But sure enough in the view:
> Dummy Title
> If info this should show up

What's the output of: var_dump($user)   ?

- GS







--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



RE: Im dumb...help!

2009-09-27 Thread Dave Maharaj :: WidePixels.com

I have the same idea set up in the admin for the user but its in reverse and
it works fine.



You have no favorites or Contributing Posts.

Either or both have data so show the user their infoif both are empty do
nothing.

Dave


-Original Message-
From: Dave Maharaj :: WidePixels.com [mailto:d...@widepixels.com] 
Sent: September-27-09 7:46 PM
To: cake-php@googlegroups.com
Subject: RE: Im dumb...help!


When I debug all the info is there a lot of data for that function but the 2
im look at for the if are both empty. 

[Post] => Array
(

)
[Favorite] => Array
(

  )

-Original Message-
From: Gonzalo Servat [mailto:gser...@gmail.com]
Sent: September-27-09 7:41 PM
To: cake-php@googlegroups.com
Subject: Re: Im dumb...help!


On Mon, Sep 28, 2009 at 8:05 AM, Dave Maharaj :: WidePixels.com
 wrote:
>
> When I test it out I know there is no data for either.
>
> So in the view:
>  
> Dummy title If info this should show up 
>
> But sure enough in the view:
> Dummy Title
> If info this should show up

What's the output of: var_dump($user)   ?

- GS





--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



RE: Im dumb...help!

2009-09-27 Thread Dave Maharaj :: WidePixels.com

When I debug all the info is there a lot of data for that function but the 2
im look at for the if are both empty. 

[Post] => Array
(

)
[Favorite] => Array
(

  )

-Original Message-
From: Gonzalo Servat [mailto:gser...@gmail.com] 
Sent: September-27-09 7:41 PM
To: cake-php@googlegroups.com
Subject: Re: Im dumb...help!


On Mon, Sep 28, 2009 at 8:05 AM, Dave Maharaj :: WidePixels.com
 wrote:
>
> When I test it out I know there is no data for either.
>
> So in the view:
>  
> Dummy title If info this should show up 
>
> But sure enough in the view:
> Dummy Title
> If info this should show up

What's the output of: var_dump($user)   ?

- GS



--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Im dumb...help!

2009-09-27 Thread Gonzalo Servat

On Mon, Sep 28, 2009 at 8:05 AM, Dave Maharaj :: WidePixels.com
 wrote:
>
> When I test it out I know there is no data for either.
>
> So in the view:
> 
> Dummy title
> If info this should show up
> 
>
> But sure enough in the view:
> Dummy Title
> If info this should show up

What's the output of: var_dump($user)   ?

- GS

--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



RE: Im dumb...help!

2009-09-27 Thread Dave Maharaj :: WidePixels.com

When I test it out I know there is no data for either.

So in the view:

Dummy title
If info this should show up


But sure enough in the view:
Dummy Title
If info this should show up 

Cant figure out why the text is being rendered when both if conditions are
emtpy

Will try your suggestion.

Thanks

Dave
  

-Original Message-
From: Miles J [mailto:mileswjohn...@gmail.com] 
Sent: September-27-09 7:27 PM
To: CakePHP
Subject: Re: Im dumb...help!


Thats correct, so what exactly is the problem?

If not try:



On Sep 27, 2:51 pm, "Dave Maharaj :: WidePixels.com"
 wrote:
> I need to run an if on 2 conditions but I cant get it to work
>
>  
> do something here if either is not empty
>
> && would check if both are empty but I need if either is not empty.
>
> How can I do this or what have I got done wrong here?
>
> thanks,
>
> Dave


--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Im dumb...help!

2009-09-27 Thread Miles J

Thats correct, so what exactly is the problem?

If not try:



On Sep 27, 2:51 pm, "Dave Maharaj :: WidePixels.com"
 wrote:
> I need to run an if on 2 conditions but I cant get it to work
>
> 
> do something here if either is not empty
>
> && would check if both are empty but I need if either is not empty.
>
> How can I do this or what have I got done wrong here?
>
> thanks,
>
> Dave
--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---