If it's static, put the `help.htm` file inside `app/webroot/`, then
link like so:
'onclick' => 'newPopup("' . $html->url('/help.htm') . '");',
hth
grigri
On Jul 16, 8:37 am, Master Ram <[email protected]> wrote:
> there is no. action is to be done in the help file. that help file is
> static. and it contain only information about the related page.
>
> On Jul 16, 12:31 pm, mike karthauser <[email protected]> wrote:
>
> > You can't load HTML files out of a views folder. The file extension needs
> > to be .ctp . Also check you have and action defined with the same name as
> > your view
>
> > Mike Karthauser
> > Brightstorm limited
> > Tel: 07939252144
>
> > On 16 Jul 2010, at 08:23, Master Ram <[email protected]> wrote:
>
> > > hi..
>
> > > i want to popup new window in my ctp. file
>
> > > i am using the link. and i want to call "help.htm" file,
>
> > > my HTML file contain in the "promoters" view folder
>
> > > the file name is help.htm.
>
> > > i use this code
>
> > > <?php e($html->link('Add/edit languages',
> > > 'javascript:void(0)',
> > > array(
> > > 'onclick' => "newPopup('http://localhost/
> > > promodiary_mvc/promoters/languages_help' );",
> > > 'class' => 'result_text',
> > > 'style' => 'text-
> > > decoration:none;')));
> > > ?>
>
> > > but i am getting file not found in this server .
>
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others
> > > with their CakePHP related questions.
>
> > > You received this message because you are subscribed to the Google Groups
> > > "CakePHP" group.
> > > To post to this group, send email to [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected] For more options, visit this group
> > > athttp://groups.google.com/group/cake-php?hl=en
>
>
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en