Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2011
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    The images doesn't display with pagination in windows..

    Hi all,

    I am developing a student project using cakephp frame work in windows.I have to display all the details of a students with their images in a page , the students images are in the webroot/images folder. I am using <img src="../images/studentimage.jpg"> for displaying the students images and this working perfectly when no pagination is there but with pagination the images are not displayed in the next pages. Is there any problem with the image source path ? How can i solve this issue? If anyone knows please help me thanks in advance....

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,642
    Thanks
    2
    Thanked 405 Times in 397 Posts
    Quote Originally Posted by shanil View Post
    Hi all,

    I am developing a student project using cakephp frame work in windows.I have to display all the details of a students with their images in a page , the students images are in the webroot/images folder. I am using <img src="../images/studentimage.jpg"> for displaying the students images and this working perfectly when no pagination is there but with pagination the images are not displayed in the next pages. Is there any problem with the image source path ? How can i solve this issue? If anyone knows please help me thanks in advance....
    You really need to provide more information, such as the pagination URL, but if the images folder is in the web root you can make it simple and just make your image links web-root relative:
    Code:
    <img src="/images/studentimage.jpg">
    That way your links work on any page, and in any subfolder.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •