Re: placing logo in layout.ctp

2011-04-12 Thread Master Ram...!

   
   
   
   ";

//here the problem add echo it will work
echo   $this->Html->image('logo.png', $options=array());


   ?>
   
   

   Session->flash(); ?>

   

   

On Tue, Apr 12, 2011 at 7:11 PM, Jeremy Burns | Class Outfit <
jeremybu...@classoutfit.com> wrote:

> The line of code that calls the image using the Html helper needs echo
> before it:
>
> echo $this->Html->image('logo.png', $options=array());
>
> I wouldn't hard code in paths to images; there's no point when you have the
> Html helper.
>
> Jeremy Burns
> Class Outfit
>
> jeremybu...@classoutfit.com
> http://www.classoutfit.com
>
> On 12 Apr 2011, at 13:49, varai wrote:
>
> > merry_flowers project was baked inside wamp\www
> >
> > The following is default.ctp in C:\wamp\www\merry_flowers\views
> > \layouts
> >
> > I have tried to display logo in plain html img src, within php (with
> > echo ‘img src’) and in cakephp format ($this->Html->image(.))
> > as you had suggested.  But none of them are displaying the image.
> >
> > Does anyone know why i’m not able to display the logo.png?
> >
> > The following is my code of default.ctp
> >
> >  > www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> > http://www.w3.org/1999/xhtml";>
> > 
> >   Html->charset(); ?>
> >   
> >?>
> >   
> >   
> >>   echo $this->Html->meta('icon');
> >
> >   echo $this->Html->css('cake.generic');
> >
> >   echo $scripts_for_layout;
> >   ?>
> > 
> > 
> >   
> >   
> >   
> >>   echo "";
> >   $this->Html->image('logo.png', $options=array());
> >   ?>
> >   
> >   
> >
> >   Session->flash(); ?>
> >
> >   
> >
> >   
> >   
> >   Html->link(
> >
> $this->Html->image('cake.power.gif', array('alt'=> __('CakePHP:
> > the rapid development php framework', true), 'border' => '0')),
> >   'http://www.cakephp.org/',
> >   array('target' => '_blank',
> 'escape' => false)
> >   );
> >   ?>
> >   
> >   
> >   element('sql_dump'); ?>
> > 
> > 
> >
> >
> > On Apr 11, 4:00 pm, "Krissy Masters" 
> > wrote:
> >> HTML helper
> >>
> >> $this->Html->image('image_name.jpg', $options = array());?>
> >>
> >>
> >>
> >> -Original Message-
> >> From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On
> Behalf
> >>
> >> Of varai
> >> Sent: Monday, April 11, 2011 8:22 AM
> >> To: CakePHP
> >> Subject: placinglogoin layout.ctp
> >>
> >> Hi
> >>
> >> I'm new to cakephp and I'm trying to create my first project with
> >> cakephp. I have already tried out the blog sample project.
> >>
> >> Does anyone know on where and how to place thelogoimage in
> >> layout.ctp?
> >>
> >> I have already putlogo.png in /webroot/img.
> >>
> >> Any help is much appreciated.
> >>
> >> --
> >> Our newest site for the community: CakePHP Video Tutorialshttp://
> tv.cakephp.org
> >> Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> >> others with their CakePHP related questions.
> >>
> >> To unsubscribe from this group, send email to
> >> cake-php+unsubscr...@googlegroups.com For more options, visit this
> group athttp://groups.google.com/group/cake-php- Hide quoted text -
> >>
> >> - Show quoted text -
> >
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> > Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
> >
> >
> > 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
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> 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
>



-- 
Master Ram.
Founder n Director of rgPlanets Pvt. Ltd.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: placing logo in layout.ctp

2011-04-12 Thread Jeremy Burns | Class Outfit
The line of code that calls the image using the Html helper needs echo before 
it:

echo $this->Html->image('logo.png', $options=array());

I wouldn't hard code in paths to images; there's no point when you have the 
Html helper.

Jeremy Burns
Class Outfit

jeremybu...@classoutfit.com
http://www.classoutfit.com

On 12 Apr 2011, at 13:49, varai wrote:

> merry_flowers project was baked inside wamp\www
> 
> The following is default.ctp in C:\wamp\www\merry_flowers\views
> \layouts
> 
> I have tried to display logo in plain html img src, within php (with
> echo ‘img src’) and in cakephp format ($this->Html->image(.))
> as you had suggested.  But none of them are displaying the image.
> 
> Does anyone know why i’m not able to display the logo.png?
> 
> The following is my code of default.ctp
> 
>  www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> http://www.w3.org/1999/xhtml";>
> 
>   Html->charset(); ?>
>   
>   
>   
>   
>  echo $this->Html->meta('icon');
> 
>   echo $this->Html->css('cake.generic');
> 
>   echo $scripts_for_layout;
>   ?>
> 
> 
>   
>   
>   
>  echo "";
>   $this->Html->image('logo.png', $options=array());
>   ?>
>   
>   
> 
>   Session->flash(); ?>
> 
>   
> 
>   
>   
>   Html->link(
>   $this->Html->image('cake.power.gif', 
> array('alt'=> __('CakePHP:
> the rapid development php framework', true), 'border' => '0')),
>   'http://www.cakephp.org/',
>   array('target' => '_blank', 'escape' => 
> false)
>   );
>   ?>
>   
>   
>   element('sql_dump'); ?>
> 
> 
> 
> 
> On Apr 11, 4:00 pm, "Krissy Masters" 
> wrote:
>> HTML helper
>> 
>> $this->Html->image('image_name.jpg', $options = array());?>
>> 
>> 
>> 
>> -Original Message-
>> From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
>> 
>> Of varai
>> Sent: Monday, April 11, 2011 8:22 AM
>> To: CakePHP
>> Subject: placinglogoin layout.ctp
>> 
>> Hi
>> 
>> I'm new to cakephp and I'm trying to create my first project with
>> cakephp. I have already tried out the blog sample project.
>> 
>> Does anyone know on where and how to place thelogoimage in
>> layout.ctp?
>> 
>> I have already putlogo.png in /webroot/img.
>> 
>> Any help is much appreciated.
>> 
>> --
>> Our newest site for the community: CakePHP Video 
>> Tutorialshttp://tv.cakephp.org
>> Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
>> others with their CakePHP related questions.
>> 
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
>> athttp://groups.google.com/group/cake-php- Hide quoted text -
>> 
>> - Show quoted text -
> 
> -- 
> Our newest site for the community: CakePHP Video Tutorials 
> http://tv.cakephp.org 
> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
> others with their CakePHP related questions.
> 
> 
> 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

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: placing logo in layout.ctp

2011-04-12 Thread varai
merry_flowers project was baked inside wamp\www

The following is default.ctp in C:\wamp\www\merry_flowers\views
\layouts

I have tried to display logo in plain html img src, within php (with
echo ‘img src’) and in cakephp format ($this->Html->image(.))
as you had suggested.  But none of them are displaying the image.

Does anyone know why i’m not able to display the logo.png?

The following is my code of default.ctp


http://www.w3.org/1999/xhtml";>

Html->charset(); ?>




Html->meta('icon');

echo $this->Html->css('cake.generic');

echo $scripts_for_layout;
?>





";
$this->Html->image('logo.png', $options=array());
?>



Session->flash(); ?>





Html->link(
$this->Html->image('cake.power.gif', 
array('alt'=> __('CakePHP:
the rapid development php framework', true), 'border' => '0')),
'http://www.cakephp.org/',
array('target' => '_blank', 'escape' => 
false)
);
?>


element('sql_dump'); ?>




On Apr 11, 4:00 pm, "Krissy Masters" 
wrote:
> HTML helper
>
> $this->Html->image('image_name.jpg', $options = array());?>
>
>
>
> -Original Message-
> From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
>
> Of varai
> Sent: Monday, April 11, 2011 8:22 AM
> To: CakePHP
> Subject: placinglogoin layout.ctp
>
> Hi
>
> I'm new to cakephp and I'm trying to create my first project with
> cakephp. I have already tried out the blog sample project.
>
> Does anyone know on where and how to place thelogoimage in
> layout.ctp?
>
> I have already putlogo.png in /webroot/img.
>
> Any help is much appreciated.
>
> --
> Our newest site for the community: CakePHP Video 
> Tutorialshttp://tv.cakephp.org
> Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> others with their CakePHP related questions.
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php- Hide quoted text -
>
> - Show quoted text -

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


RE: placing logo in layout.ctp

2011-04-11 Thread Krissy Masters
HTML helper

$this->Html->image('image_name.jpg', $options = array());?>

-Original Message-
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of varai
Sent: Monday, April 11, 2011 8:22 AM
To: CakePHP
Subject: placing logo in layout.ctp

Hi

I'm new to cakephp and I'm trying to create my first project with
cakephp. I have already tried out the blog sample project.

Does anyone know on where and how to place the logo image in
layout.ctp?

I have already put logo.png in /webroot/img.

Any help is much appreciated.

-- 
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help
others with their CakePHP related questions.


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

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: placing logo in layout.ctp

2011-04-11 Thread jeet bajaj
Hello There,

you can use html image tag for this, and if you want to do this with cakephp
syntax,
then you will have to include HTML helper in the controller class. like
var $helpers = array('Html');
and then in your layout.ctp file you can put following code.
$html->image('logo.png', array('width' => 500, 'height' => 300));





On Mon, Apr 11, 2011 at 4:21 PM, varai  wrote:

> Hi
>
> I'm new to cakephp and I'm trying to create my first project with
> cakephp. I have already tried out the blog sample project.
>
> Does anyone know on where and how to place the logo image in
> layout.ctp?
>
> I have already put logo.png in /webroot/img.
>
> Any help is much appreciated.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> 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
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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