Welcome Guest, Not a member yet? Register   Sign In
  Frustrating redirect issue
Posted by: El Forum - 10-29-2008, 07:26 AM - Replies (1)

[eluser]shiggins[/eluser]
I have drop down menu in a form which onChange calls a javascript function which redirects to "ship/"+arg1+"/"+id using the window location method.

I have set up my route as

Code:
$route['ship/([a-zA-Z._]+)/(:num)']  = "ship/main/$1/$2";

So the newly generated url is
Code:
http//:blahblah.com/bsd/index.php/ship/rlocation/19

This method (main) is the same one used to generate the form in the first place, so I know it's working and of course the same view files are called. Furthermore all the links to javascript and css files work fine until the redirect takes place.

However when the page loads all hell breaks loose. None of the paths to css or javascript files in the page header can be found. Consequently nothing works nor does the page render correctly. Additionally all the links on the page are weird as well...

For instance the all contain the first 2 segments of the url ship/rlocation and then the link segment is added. So the link to Contact Us is
Code:
http//:blahblah.com/bsd/index.php/ship/rlocation/contact

I'm sure others have had this problem. Your help is greatly appreciated.


  URL Helper: function uri_segments() is missing
Posted by: El Forum - 10-29-2008, 07:16 AM - Replies (2)

[eluser]Alexdamo[/eluser]
I tried to use the function uri_segments() from the URL Helper, as described in the documentation, but it isn't there. The function doesn't exist! Or am I doing something wrong?

Here's what the user guide says:

Quote:uri_segments()

Returns the URI segments of any page that contains this function.


  Anyone got new form_validation to work?
Posted by: El Forum - 10-29-2008, 07:15 AM - Replies (3)

[eluser]Johan André[/eluser]
Hey!

Is there anyone who got the new validation-class working?
It seem to invoke errors but the when I

Code:
<?php echo validation_errors(); ?>
or
Code:
<?php echo form_error('field_name'); ?>
they don't return anything...

Anyone else having the same problem?


  Handling multiple sites
Posted by: El Forum - 10-29-2008, 07:11 AM - Replies (3)

[eluser]dijon[/eluser]
Hi,

I have been playing around with getting a better experience from my hosting service. I host 3 sites from the same web root, and from my original look at it (with 1.6.3) had got CI set up with a different controller sudirectory for each site.

Having looked at it again, an unhappy with the system, so I came up with the following structure:

Code:
/path/to/root/ci_system              // CodeIgniter 1.7.0 system folder
    /path/to/root/ci_applications/site1  // default site if nothing else found
    /path/to/root/ci_applications/site2
    /path/to/root/ci_applications/site3  
    /path/to/root/public_html/index.php

In index.php, I've made the following amendments:

Code:
$system_folder = "/path/to/root/ci_system";

and

Code:
$application_folder = "/path/to/root/ci_applications/";

    switch ( $_SERVER['HTTP_HOST'] )
    {
        case "www.site2.com":
        case "site2.com":
            $application_folder .= "site2";
            break;
        case "www.site3.com":
        case "site3.com":
            $application_folder .= "site3";
            break;
        default:
            $application_folder .= "site1";
    }

It does seem to be working as I'd expect, however I was wondering whether (mainly because I'm second guessing myself) if anyone would advise a different approach, or if this seems sensible?

Thanks,

Dan

(p.s. apologies if this topic is posted more than once, I'm getting errors trying to post!)


  INSTALLING ON LINUX- DESPERATE
Posted by: El Forum - 10-29-2008, 07:06 AM - Replies (5)

[eluser]lollylegs[/eluser]
I have just changed from using windows to linux and am a newbie.
I am trying to install codeigniter into webroot but can only use commandline root but my command must be incorrect because it says no such folder.

The directory to codeigniter is /home/marea/desktop/CodeIgniter_1.7.0 and the command I am using is:

$su mv /home/marea/desktop/CodeIgniter_1.7.0 /var/www
Above command does not work

Please can someone with linux knowledge help me

Regards Marea (lollylegs)


  controler function question
Posted by: El Forum - 10-29-2008, 06:55 AM - Replies (7)

[eluser]quasiperfect[/eluser]
hi

in a controller we can have the validation function callbacks.
if we call the controller site/controller/function we get the php errors
how can i avoid this ? (i don't need/want to call the functions but if someone dose)


  CSS-based PHP code and Codeigniter
Posted by: El Forum - 10-29-2008, 05:00 AM - Replies (1)

[eluser]Unknown[/eluser]
I would like to convert my website application into codeigniter environment. I cant get the header, leftbar, maincontent, footer and rightbar to work. I need help on How to do this ?


  helper,libraries autoload or when need
Posted by: El Forum - 10-29-2008, 03:59 AM - Replies (2)

[eluser]umefarooq[/eluser]
Hi
which one is the best way to use libraries,helper and other using auto load or load it in when it need, if we put in autoload it include all helper and libraries will it slow down the performance of the application.


  %s values in custom error messages
Posted by: El Forum - 10-29-2008, 03:17 AM - Replies (6)

[eluser]wdm*[/eluser]
I'm displaying the form validation errors individually inline with the form with

Code:
<?= form_error('my_field') ?>

So the field name is not needed in the error message, it should rather just read e.g.

Quote:must be at least %s characters in length

The problem I have is that the %s gets replaced with the field name, not the number.

Looking at the original string in language/english/form_validation_lang.php it looks like the first %s is always the name, the second %s always the number

Is there any way to change this?


  need help for email confirmation!
Posted by: El Forum - 10-29-2008, 03:07 AM - Replies (4)

[eluser]newbie boy[/eluser]
Hello Everyone,

I am trying to set up a registration form. Currently, when submitted, the form writes the user's info to a database and but have not sends out an email confirmation with their registration details to the user's email address.

I also want the user to confirm their registration details by clicking on a link that is sent in the confirmation email.

How do I generate that link?

Furthermore, once I figure out how to generate that link should I have my database set up with two tables. One for registered user's data/information and one for users confirmation link through email.

Thanks in advance for all your help.


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Latest Threads
Integrating Bootstrap 5 i...
by tarcisiodev1
35 minutes ago
Asset Minification Packag...
by tarcisiodev1
41 minutes ago
Modify users data as an a...
by luckmoshy
55 minutes ago
Is it possible to go back...
by ejimenezo
6 hours ago
Error / Shield 1.0.3 + Ci...
by kcs
10 hours ago
SQL server connection not...
by davis.lasis
10 hours ago
Validation | trim causes ...
by Gary
Today, 05:09 AM
Problem with session hand...
by Julesb
Today, 04:13 AM
External script access to...
by PomaryLinea
Today, 03:58 AM
VIRUS reported after Chro...
by InsiteFX
Yesterday, 11:34 PM

Forum Statistics
» Members: 85,495
» Latest member: qh88lode
» Forum threads: 77,586
» Forum posts: 376,024

Full Statistics

Search Forums

(Advanced Search)


Theme © iAndrew 2016 - Forum software by © MyBB