Welcome Guest, Not a member yet? Register   Sign In
$application_folder = 'application';
#1

$application_folder = 'application';

Hello,

I wonder where to write that codes?

I have checked my friend's CI code that divides the apps folders into 2 admin and site and still do not use that codes.

I wonder why?

Check this out:

views/home.php


PHP Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
<?php $this
->load->view('0header'); ?>    
<style>
h1 {font-size:20px;}
input[type="text"] {width:438px;height:11px;border:none;padding:10px;}
input[type="submit"] {border:none;background:yellow;padding:5px 20px;border-radius:5px;}
input[type="submit"]:hover {color:yellow;background:black;}
textarea[name="message"] {width:438px;height:187px;resize:none;border:none;padding:0;margin:0;padding:10px;}
</style>
    <div class="w626 content right">
        <?php if ($this->uri->segment(1)!='contact'){?>
            <?php echo (!isset($post_detail))?$page_detail->post_content:$post_detail->post_content?>
            <?php if ($this->uri->segment(1)=='training-seminars'){ ?>
            <hr/>
            <div style="text-align:right">
            <a href="<?php echo site_url('formregis'); ?>">Registration</a>
            </div>
            <?php ?>
        <?php } else { ?>
        <?php $contact $this->post_model->find_ID(15); if ($contact) echo $contact->post_content?>
        <br/><br/>
        <?php echo form_open('sendcontact', array('id'=>'contactform')); ?>
        <label>SEND US A MESSAGE</label>
        <br/><br/>
        <table>
            <tr height="40">
                <td width="90"><label>Name <span class="red">*</span></label></td>
                <td width="50">:</td>
                <td><input type="text" name="name" /></td>
            </tr>
            <tr height="40">
                <td><label>Subject <span class="red">*</span></label></td>
                <td>:</td>
                <td><input type="text" name="subject" /></td>
            </tr>
            <tr height="40">
                <td><label>Email <span class="red">*</span></label></td>
                <td>:</td>
                <td><input type="text" name="email" /></td>
            </tr>
            <tr height="40">
                <td><label>Phone</label></td>
                <td>:</td>
                <td><input type="text" name="phone" /></td>
            </tr>
            <tr>
                <td style="vertical-align:top;padding-top:8px;"><label>Messages <span class="red">*</span></label></td>
                <td style="vertical-align:top;padding-top:8px;">:</td>
                <td><textarea name="message"></textarea></td>
            </tr>
            <tr>
                <td colspan="3" align="center">
                    <br/><br/>
                    <input type="submit" name="submit" value="SUBMIT" /><div id="alert" style="color:#f00;position:absolute;margin:-22px 0 0 340px"></div>
                </td>
            </tr>
        </table>
        <?php echo form_close(); ?>
        <?php ?>
    </div>
<Script>
$(document).ready(function(){
    $('#contactform').submit(function(){                    
        $('.loading').show();
        $.post($(this).attr('action'), $(this).serialize(), function(data){}, 'script');
        return false;
    });
});
</script>
<?php $this->load->view('0footer'); ?>
" If I looks more intelligence please increase my reputation."
Reply
#2

That setting is found in the main index.php file and points to the application directory. But this doesn't seem to have anything to do with the view file you're showing us.
Reply
#3

okay, it seems like I cannot find index.php in my friend's CI file. The main file is views/home.php
" If I looks more intelligence please increase my reputation."
Reply
#4

(This post was last modified: 06-01-2016, 12:33 PM by arma7x.)

Not in view folder. Index.php locate in your webapps root(public_html,htdocs etc) folder.
Keep calm.
Reply
#5

gsa/index.php

I already check the application folder in my friend's website:

$application_folder = 'application/site';

The second one is:

$application_folder = 'application/admin'; // this is what suppose to be but it is not the case. Only the first one appears. Why only the first one that appears?

Thanks.
" If I looks more intelligence please increase my reputation."
Reply




Theme © iAndrew 2016 - Forum software by © MyBB