Welcome Guest, Not a member yet? Register   Sign In
  Upload files with UTF characters
Posted by: El Forum - 08-29-2007, 02:28 PM - No Replies

[eluser]Référencement Google[/eluser]
Hi,

Uploading a file with a name wich contains UTF-8 characters, let's say : Céà&erfd;-0215.jpg (test name, but I am french and some people in my country will use this characters in files)

Result of uploading such a file is : CéÃ_erfd-0215.jpg

As you see, CI already make some cleaning, but not enough for this characters.
Wich way do you think I should try (maybe a hack of the upload library) to clean the file name at upload time ?


  Form routing
Posted by: El Forum - 08-29-2007, 01:38 PM - No Replies

[eluser]stevefink[/eluser]
Good afternoon, igniters!

Quick inquiry. I have a routed URL with the following semantics:

http://f1auto/console/addvehicle/photos/1

that's actually just controller->photoupload, method->uploads and $this->uri->segment(4) gives me access to the 1.

This page has a form on it. I'd like to process the form in something separate than the method->uploads, however I want the page to load back to the same URL.

What's my best bet for accomplishing this? Do I have to use redirect() and end up making the user go through two page refreshes to get to the proper URL?

I hope this isn't too confusing.

Thanks. :-)

- sf


  Blog system for CI?
Posted by: El Forum - 08-29-2007, 01:05 PM - No Replies

[eluser]Unknown[/eluser]
Does anyone know of a blog system for CI? I looked at CIForge, but there didn't seem to be one.

... or does anyone have experience with embedding a standard blog system into a CI installation?

Thanks in advance
Henrik


  Help with SSL and .htaccess please!
Posted by: El Forum - 08-29-2007, 10:31 AM - No Replies

[eluser]Oliver New[/eluser]
Hi,

I would like to have a couple of controllers on my site served via https - for example mysite.com/account and mysite.com/checkout.

My web server is capable of hosting both http and https files in the same web root so I'd like to take advantage of that rather than the alternative - which as I see it would be to have a separate https directory and therefore a separate install of CI in it.

So I guess this should be possible via mod_rewrite in the .htaccess file? I've looked around for a few examples but I'm getting nowhere. I'm using a pretty standard .htaccess at the moment:

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|img|css|js|common_funcs\.js|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

I'd be very grateful for any ideas!


  [SOLVED] how to access $config['base_url'] in my controller?
Posted by: El Forum - 08-29-2007, 08:50 AM - No Replies

[eluser]ppeemm[/eluser]
just a quick one: I need to store the URL of a picture in my database and I am wondering if I can access this config variable here ($config['base_url']) which contains the begining of the URL?

if so, can can I do that from my controller?

cheers


  Implementing a mail system like RoundCube etc.
Posted by: El Forum - 08-29-2007, 08:37 AM - No Replies

[eluser]tobben[/eluser]
Hello,

have anyone successfully implemented some sort of mail system/application into CI?

For example RoundCube. RoundCube project


  White screen and its magical solution
Posted by: El Forum - 08-29-2007, 08:24 AM - No Replies

[eluser]#1313[/eluser]
This is my first time seeing such strange things happen. Pure magick.

I had a stable and running CI application which used Views library. A few hours ago i decided to leave it and start using Rick Ellis' solution to templating (http://ellislab.com/forums/viewthread/44916/). I successfully moved my back-office to this new 'templating technique'. Then i started moving my news section, and then magic happened.

The index() function of my News() controller ends with

Code:
$data['page']['title'] = 'News page';
        $data['view'] = 'news/news-view';
        $this->load->vars($data);
        $this->load->view('page');

and page.php view is
Code:
<?php
$this->load->view('header-part');
$this->load->view($view);
$this->load->view('footer-part');
?>
Quite simple and self-explaining. And it is working fine on my back-end. But on my news page it gave me white screen (with normal profiling info, because i have Profiler enabled). I checked everything ten times, fixed a few bugs, but didn't scratch this white screen at all. I put some debug info into page.php view but it didn't show, so i assume this view was not loading at all.

Then in desperation i added
Code:
ini_set('error_reporting','E_ALL');
line to constructor of my News class and immediately received second dose of pure magick, because white screen just -- well, fixed itself and my page showed okay.

I received NO error messages, none at all. When i delete this ini_set line the white screen immediately returns. WTF?

Here is my News controller.
Code:
<?php

class News extends Controller {

    function News() {

        parent::Controller();
        ini_set('error_reporting','E_ALL');
                // pure magick
        if ($this->config->item('enable_benchmarking')) $this->output->enable_profiler(TRUE);

    }

...
Please share your thoughts on this matter. I feel really stupid and i hope that this is a result of my mistake, because i don't believe in magic, in PHP especially. Please help!


  Create RSS For My News
Posted by: El Forum - 08-29-2007, 08:23 AM - No Replies

[eluser]Unknown[/eluser]
Hi,
Who can help me to create a RSS for my news page :down: , which get data (topic, text) from database and show it to users...

Thanks alot


  [SOLVED] Bloody checkboxes...
Posted by: El Forum - 08-29-2007, 05:09 AM - No Replies

[eluser]johnwbaxter[/eluser]
If someone could give me a hand i would be ever so grateful!

I have some checkboxes that get ticked, then that page is refreshed with updated values and the checkboxes are shown again with the ones that were selected still ticked.

What i want is that when the checkbox is unticked it stays unticked after refresh.

I'm saving the state of the checkbox in the session and so really i simply want to know how to detect that the checkbox is not ticked from the post data so that i can unset it from the session data.

I cant get it to do what i want, it is driving me mad!

Help!


  log page views in database where?
Posted by: El Forum - 08-29-2007, 05:08 AM - No Replies

[eluser]matt2012[/eluser]
I want to create a simple stats component that logs the page and subpage
of every page view along with some other stuff basically I want to run a
simple database insert of $this->uri->segment(1) etc. where is the best place
to run the code in the construct function of every controller or is this a use of a hook?

or has someone written a plugin or library for this ?


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

Username
  

Password
  





Latest Threads
hot-reload side effects s...
by PaulC
Today, 05:09 AM
CodeIgniter.com - Report ...
by Harry Lyre
Today, 04:26 AM
Setting baseURL in Regist...
by michalsn
Today, 12:09 AM
Update from 4.6.0 to 4.6....
by FlavioSuar
Yesterday, 04:17 AM
Sessions old files are de...
by InsiteFX
05-12-2025, 10:30 PM
Ajax post failing with Ty...
by PaulC
05-12-2025, 12:23 AM
intermittent smtp failure...
by InsiteFX
05-11-2025, 11:30 PM
MVC vs MVCS vs CodeIgnite...
by FlavioSuar
05-10-2025, 10:33 AM
CodeIgniter Shield 1.0.0 ...
by timesprayer
05-10-2025, 05:22 AM
Website Traffic Drop Afte...
by InsiteFX
05-10-2025, 04:23 AM

Forum Statistics
» Members: 146,002
» Latest member: georgemanilo
» Forum threads: 78,389
» Forum posts: 379,450

Full Statistics

Search Forums

(Advanced Search)


Theme © iAndrew 2016 - Forum software by © MyBB