Welcome Guest, Not a member yet? Register   Sign In
Problem with css in IE
#11

[eluser]Delicatu[/eluser]
http://www.activjob.ro/

I am comming again with my problem. When i am not loading my MODEL, bootstrap is ok, is oading ok. If i require the MODEL, the bootstrap is looking like now on the web. If u see, is having 20 px top margin. Only in IE. I have discovered the problem is not from the quirk mode. Now is loading ok in standards mode and the problem is from the loading MODEL. I am not using that model, because in the site everything is pur HTML and is not displaying OK.


Please help me.....
#12

[eluser]InsiteFX[/eluser]
And where are you loading your model?
#13

[eluser]Delicatu[/eluser]
In controller ...

Code:
public function home(){
$this->load->model("model_get");

  $this->load->view('head');
  
}


Here i am loading. If i will remove
Code:
$this->load->model("model_get");
everything go fine!

HEAD file is containing all Bootstrap html.


model_get file is this:

Code:
<?php
class Model_get extends CI_Model{

  function get_date_aptitudini($abc){
  $query = $this->db->query("select * from abc where abc.abc=".$id_abc);
  return $query->row_array();
  }  
}
?>
#14

[eluser]InsiteFX[/eluser]
For one models should be named Name_model

Also you donot need the closing php tag ?>

You should also put the model's constructor in.
Code:
function __construct()
     {
         // Call the Model constructor
         parent::__construct();
     }

Bootstrap uses html5 which your web site is not using. Also do a view source of your
web site you have no opening <head> tag and you have two closing </head> tags.

Your problem is all coding error's.
#15

[eluser]Delicatu[/eluser]
Code:
class Activjob extends CI_Controller {
function Activjob(){

        parent::__construct();
    $this->load->helper('html');    
        $this->load->library('session');
        $this->load->helper('url_helper');

    $this->load->helper('form');
        $this->load->helper('cookie');
    $this->load->helper('date');    
        }

public function index()
{
$this->home();
}

public function home(){


  $this->load->view('head');
   $this->load->model("model_get");
}


This is my full controller
#16

[eluser]Delicatu[/eluser]
In IE 8 bootstrap is fully messed up, in CI. Normaly is ok! Here is Bootstrap normaly. And is loading in Quirks mode. In IE 9 is loading in srandard mode.

http://www.agentie-plasare.ro/code/
#17

[eluser]InsiteFX[/eluser]
./application/helpers/assets_helper.php
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* ------------------------------------------------------------------------
* Created by phpDesigner 8.
* Date  : 12/22/2012
* Time  : 6:15:20 PM
* Author: Raymond L King Sr. - The Learn CodeIgniter Development Team.
* ------------------------------------------------------------------------
*
* Helper assets_helper
*
* ------------------------------------------------------------------------
* @package  Package  CodeIgniter
* @subpackage Subpackage helpers
* @category category helper
* @author  Raymond L King Sr.
* @copyright Copyright (c) 2009 - 2012, Custom Software Designers, LLC.
* @link  http://www.example.com
* ------------------------------------------------------------------------
* To change this template use File | Settings | File Templates.
* ------------------------------------------------------------------------
*/

// ------------------------------------------------------------------------

/**
* Expects that all resources are in a assets directory in the root folder.
*
* application
* system
* index.php
* assets
* -- css
* -- js
* -- img
* -- images
* -- ico
* -- media
*
* Usage:
*
*  <?php echo css_url('app.css'); ?>
*
* You can also pass in a directory to the method's
*
*  <?php echo css_url('directory/app.css'); ?>
*
*/

// ------------------------------------------------------------------------

/**
* Helper css_url()
*
* Usage:
*
*  <?php echo css_url('app.css'); ?>
*
* @access public
* @param string
* @return string
*/
if ( ! function_exists('css_url'))
{
function css_url($uri)
{
  $CI =& get_instance();
  return $CI->config->base_url('assets/css/' . $uri);
}
}

// ------------------------------------------------------------------------

/**
* Helper js_url()
*
* Usage:
*
* @access public
* @param string
* @return string
*/
if ( ! function_exists('js_url'))
{
function js_url($uri)
{
  $CI =& get_instance();
  return $CI->config->base_url('assets/js/' . $uri);
}
}

// ------------------------------------------------------------------------

/**
* Helper img_url()
*
* Usage:
*
* @access public
* @param string
* @return string
*/
if ( ! function_exists('img_url'))
{
function img_url($uri)
{
  $CI =& get_instance();
  return $CI->config->base_url('assets/img/' . $uri);
}
}

// ------------------------------------------------------------------------

/**
* Helper images_url()
*
* Usage:
*
* @access public
* @param string
* @return string
*/
if ( ! function_exists('images_url'))
{
function images_url($uri)
{
  $CI =& get_instance();
  return $CI->config->base_url('assets/images/' . $uri);
}
}

// ------------------------------------------------------------------------

/**
* Helper ico_url()
*
* Usage:
*
* @access public
* @param string
* @return string
*/
if ( ! function_exists('ico_url'))
{
function ico_url($uri)
{
  $CI =& get_instance();
  return $CI->config->base_url('assets/ico/' . $uri);
}
}

// ------------------------------------------------------------------------

/**
* Helper media_url()
*
* Usage:
*
* @access public
* @param string
* @return string
*/
if ( ! function_exists('media_url'))
{
function media_url($uri)
{
  $CI =& get_instance();
  return $CI->config->base_url('assets/media/' . $uri);
}
}

/* ------------------------------------------------------------------------
* End of file assets_helper.php
* Location: ./application/helpers/assets_helper.php
* ------------------------------------------------------------------------
*/

To be Continued below:
#18

[eluser]InsiteFX[/eluser]
./application/views/header.php
Code:
<!DOCTYPE html>
&lt;html lang="en"&gt;

&lt;head&gt;

&lt;meta charset="utf-8"&gt;

&lt;title&gt;Welcome to CodeIgniter&lt;/title&gt;

&lt;meta name="viewport" c initial-scale=1.0"&gt;
&lt;meta name="description" c&gt;
&lt;meta name="author" c&gt;

&lt;!-- Le styles --&gt;
&lt;!-- &lt;link href="assets/css/bootstrap.min.css" rel="stylesheet"&gt; --&gt;
&lt;link href="&lt;?php echo css_url('bootstrap.min.css'); ?&gt;" rel="stylesheet"&gt;

&lt;link href="&lt;?php echo css_url('bootstrap-responsive.min.css'); ?&gt;" rel="stylesheet"&gt;
&lt;link href="&lt;?php echo css_url('prettify.css'); ?&gt;" rel="stylesheet"&gt;

&lt;!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --&gt;
&lt;!--[if lt IE 9]>
  [removed][removed]
<![endif]--&gt;

&lt;!-- Le fav and touch icons --&gt;
&lt;link rel="apple-touch-icon-precomposed" sizes="144x144" href="&lt;?php echo ico_url('apple-touch-icon-144-precomposed.png'); ?&gt;"&gt;
&lt;link rel="apple-touch-icon-precomposed" sizes="114x114" href="&lt;?php echo ico_url('apple-touch-icon-114-precomposed.png'); ?&gt;"&gt;
&lt;link rel="apple-touch-icon-precomposed" sizes="72x72" href="&lt;?php echo ico_url('apple-touch-icon-72-precomposed.png'); ?&gt;"&gt;
&lt;link rel="apple-touch-icon-precomposed" href="&lt;?php echo ico_url('apple-touch-icon-57-precomposed.png'); ?&gt;"&gt;

&lt;link rel="shortcut icon" href="&lt;?php echo base_url('favicon.png'); ?&gt;"&gt;

&lt;/head&gt;

&lt;body&gt;

To be Continued below:
#19

[eluser]InsiteFX[/eluser]
./application/views/footer.php
Note replace $ with s in the script tags

Code:
&lt;!-- Le javascript
    ================================================== --&gt;
    &lt;!-- Placed at the end of the document so the pages load faster --&gt;
    <$cript src="&lt;?php echo js_url('jquery-1.8.3.min.js'); ?&gt;"></$cript>
    <$cript src="&lt;?php echo js_url('bootstrap.min.js'); ?&gt;"></$cript>

    <$cript src="&lt;?php echo js_url('prettify.js'); ?&gt;"></$cript>
    <$cript src="&lt;?php echo js_url('application.js'); ?&gt;"></$cript>

&lt;/body&gt;

&lt;/html&gt;

To be Continued below:
#20

[eluser]InsiteFX[/eluser]
./application/views/main.php
Code:
<div class="navbar navbar-inverse navbar-fixed-top">
  <div class="navbar-inner">
   <div class="container-fluid">
    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
     <span class="icon-bar"></span>
     <span class="icon-bar"></span>
     <span class="icon-bar"></span>
    </a>
    <a class="brand" href="#">Project name</a>

    <div class="nav-collapse collapse">
     <p class="navbar-text pull-right">Logged in as <a href="#" class="navbar-link">Username</a></p>

     <ul class="nav">
      <li class="active"><a href="#">Home</a></li>
      <li><a href="#about">About</a></li>
      <li><a href="#contact">Contact</a></li>
     </ul>
    </div>&lt;!--/.nav-collapse --&gt;
   </div>
  </div>
</div>

<div class="container-fluid">
  <div class="row-fluid">
   <div class="span3">
    <div class="well sidebar-nav">
     <ul class="nav nav-list">
      <li class="nav-header">Sidebar</li>
      <li class="active"><a href="#">Link</a></li>
      <li><a href="#">Link</a></li>
      <li><a href="#">Link</a></li>
      <li><a href="#">Link</a></li>
      <li class="nav-header">Sidebar</li>
      <li><a href="#">Link</a></li>
      <li><a href="#">Link</a></li>
      <li><a href="#">Link</a></li>
      <li><a href="#">Link</a></li>
      <li><a href="#">Link</a></li>
      <li><a href="#">Link</a></li>
      <li class="nav-header">Sidebar</li>
      <li><a href="#">Link</a></li>
      <li><a href="#">Link</a></li>
      <li><a href="#">Link</a></li>
     </ul>
    </div>&lt;!--/.well --&gt;
   </div>&lt;!--/span--&gt;

   <div class="span9">
    <div class="hero-unit">
     <h1>Hello, world!</h1>
     <p>
      This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three
      supporting pieces of content. Use it as a starting point to create something more unique.
     </p>
     <p><a class="btn btn-primary btn-large">Learn more &raquo;</a></p>
    </div>

    <div class="row-fluid">
     <div class="span4">
      <h2>Heading</h2>
      <p>
       Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh,
       ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.
      </p>
      <p><a class="btn" href="#">View details &raquo;</a></p>
     </div>&lt;!--/span--&gt;

     <div class="span4">
      <h2>Heading</h2>
      <p>
       Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh,
       ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.
      </p>
      <p><a class="btn" href="#">View details &raquo;</a></p>
     </div>&lt;!--/span--&gt;

     <div class="span4">
      <h2>Heading</h2>
      <p>
       Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh,
       ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.
      </p>
      <p><a class="btn" href="#">View details &raquo;</a></p>
     </div>&lt;!--/span--&gt;
    </div>&lt;!--/row--&gt;

    <div class="row-fluid">
     <div class="span4">
      <h2>Heading</h2>
      <p>
       Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh,
       ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.
      </p>
      <p><a class="btn" href="#">View details &raquo;</a></p>
     </div>&lt;!--/span--&gt;

     <div class="span4">
      <h2>Heading</h2>
      <p>
       Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh,
       ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.
      </p>
      <p><a class="btn" href="#">View details &raquo;</a></p>
     </div>&lt;!--/span--&gt;

     <div class="span4">
      <h2>Heading</h2>
      <p>
       Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh,
       ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.
      </p>
      <p><a class="btn" href="#">View details &raquo;</a></p>
     </div>&lt;!--/span--&gt;
    </div>&lt;!--/row--&gt;
   </div>&lt;!--/span--&gt;
  </div>&lt;!--/row--&gt;

  <hr>

  <footer>
   <p>&copy; Company 2012</p>
  </footer>

</div>&lt;!--/.fluid-container--&gt;

To be Continued below:




Theme © iAndrew 2016 - Forum software by © MyBB