[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="<?php echo base_url(); ?>public/images/your_image.jpg" height="NN" width="NN" alt="bla bla bla" />
</body>
</html>
You'll see this final result (HTML)
Code:
<html>
<head>
<title>My Doubts about paths</title>
</head>
<body>
<img src="http://www.example.com/public/images/your_image.jpg" height="NN" width="NN" alt="bla bla bla" />
</body>
</html>
Of course, you'll need theese folder structure.
^.^