Welcome Guest, Not a member yet? Register   Sign In
src images
#11

[eluser]ELRafael[/eluser]
Folder structure:

Code:
system/
  --application/
    --config/
      --config.php
    --controllers/
    --etc
    --views/
      --index_view.php
public/
  --css/
  --images/
    --your_image.jpg
  --js/
  --upload/

- Inside system/application/config/config.php try:
Code:
$config['base_url'] = 'http://www.example.com/'; //Use YOUR DOMAIN
- Inside system/application/views/index_view.php try this:
Code:
<html>
<head>
  <title>My Doubts about paths</title>
</head>
<body>
<img src="&lt;?php echo base_url(); ?&gt;public/images/your_image.jpg" height="NN" width="NN" alt="bla bla bla" />
&lt;/body&gt;
&lt;/html&gt;

You'll see this final result (HTML)
Code:
&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;My Doubts about paths&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
<img src="http://www.example.com/public/images/your_image.jpg" height="NN" width="NN" alt="bla bla bla" />
&lt;/body&gt;
&lt;/html&gt;

Of course, you'll need theese folder structure.

^.^
#12

[eluser]techgnome[/eluser]
It might be just me... I've not been sleeping well this week but... I don't see any IMG tags in that code snip at the top... I see a bbForum tag for a url, but no image tag.

-tg
#13

[eluser]minagabriel[/eluser]
it woooooooooooooooooooorksssssssssssss thnx ELRafael
#14

[eluser]Bas Vermeulen[/eluser]
Congratz Smile




Theme © iAndrew 2016 - Forum software by © MyBB