Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8301281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:52:51+00:00 2026-06-08T16:52:51+00:00

I probably made a monster when writing an echo for outputting generated links :(

  • 0

I probably made a monster when writing an echo for outputting generated links 🙁 I don’t understand how to concatenate all this params when using HtmlHelper. I read article about it twice but don’t get it.

My code is:

echo "<a href=\"/img/filmography/" . $movie['Film']['frameset'] . 
     "_frame_" . $i . ".jpg\"" . "rel=\"lightbox[" . $movie['Film']['id'] . 
     "]\"" . " title=\"\">" 

     . "<img src=\"/img/filmography/thumb/" . $movie['Film']['frameset'] . 
     "_frame_" . $i . ".jpg\"" . "alt=\"pic from " . $movie['Film']['title'] . 
     "\"" . "/></a>";

What I want to achieve in HTML:

   <a href="/img/filmography/movie_frame_1.jpg" rel="lightbox[1]" title="">
        <img src="/img/filmography/thumb/movie_frame_1.jpg" 
             alt="pic from some movie"/>
   </a>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T16:52:55+00:00Added an answer on June 8, 2026 at 4:52 pm

    I think, this will do for you..

    $path = sprintf("/filmography/thumb/%s_frame_%s.jpg", $movie['Film']['frameset'], $i);
    echo $this->Html->link($this->Html->image($path, array(    "alt" => "pic from " . $movie['Film']['title'])) , '/img/filmography/'. $movie['Film']['frameset'] . '_frame_' . $i . '.jpg',  array('escape' => false, 'rel' => 'lightbox[' . $movie['Film']['id'] . ']'));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all, I'm new to objective-c programming so I've probably made some mistakes
I'm not sure if this possible but probably is fairly simple. I've made a
OK - I'll admit, I'm quite a beginner in this jQuery-department. I've probably made
Probably I completely don't understand it, so can you take a look at code
I have probably made some error in this line of code: $('#mbContentText [name^=mbItem]').css({color: #006699,
ANSWER: Allright, that was quite simple (probably I made this mistake coz I need
This is probably going to be a shot in the dark. I made a
Probably a very trivial problem. I have an object that looks like this: @PersistenceCapable
I have a question probably lame but it made me stuck I have the
I made simple date picker using JavaScript and jQuery. After choosing date it is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.