Welcome Guest, Not a member yet? Register   Sign In
  Problem with FCKeditor implementation
Posted by: El Forum - 06-24-2007, 04:59 AM - No Replies

[eluser]PoWah[/eluser]
I've done everything following http://codeigniter.com/wiki/FCKeditor/ page and I get an error: The URI you submitted has disallowed characters. when I try to load fckeditor in browser

Any ideas? :/


  Database connection issue
Posted by: El Forum - 06-24-2007, 04:17 AM - No Replies

[eluser]metalking[/eluser]
Hi everybody!

I'm having a problem with my CI app. On my computer, running PHP5 and MySQL, everything's OK, my app connects to the database, retreives datas...

The problem is, when I upload my application (with new database.php and config.php files with the actual informations of my webhost), CI cannot connect to my database, and shows the following error message:

Unable to connect to your database server using the provided settings.

What's the problem? My database infos are correct (I'm sure of this), the path to my application is correctly set in the config.php file...

Thanks Wink

PS: My webhost is running PHP5 and MySQL too


  routing and controllers
Posted by: El Forum - 06-24-2007, 12:50 AM - No Replies

[eluser]deineMudder[/eluser]
Hello,
sadly i got another basic question i guess, where i lack understanding of CI.

my actual controller folder looks like this

Code:
controllers
+ admin
  - user.php
  - navigation.php
  - article.php
  - roles.php
  - ....
- homepage.php

im trying to create a small CMS for a site and thought that structure for the administration part could be handy.

each controller (i.e. user.php) has the functions insert, edit, delete ...
as soon as i try to access those controllers hes trying to load a function of admin

controller (admin), function (user)
instead of subfolder (admin), controller (user), function (index)

anyone who could help a newbie to set it up correctly? Wink


  Filters System Bug
Posted by: El Forum - 06-24-2007, 12:38 AM - No Replies

[eluser]marcoss[/eluser]
I've been using hooks for a long time now, but I've decided to try the Filters System because it seems to be a better approach to accomplish some basic routines.

Unfortunately there is a bug in the system, when you try to apply a filter to a controller placed withing a directory it won't trigger. I went over the code and find out that the way it handles the matches is where the problem resides, it is exploding the match by the '/' on in, so CI thinks it is a class instead of a directory.

As an example, if i want to apply a filter to "admin/login" where admin is the directory and login the class name it won't work.

Any ideas on a better implementation of it?


  So, I'm working on a CI-based WebApp... (Commentary)
Posted by: El Forum - 06-23-2007, 06:18 PM - No Replies

[eluser]awpti[/eluser]
Pretend you need a gallery that is:

A.) Simple enough for a designer to completely customize the layout of without learning a complicated API.
B.) Doesn't need a heavy login/plugin/module system (only need 1 user to manage it)
C.) Can password protect categories if needed
D.) Can upload files both via the web and via FTP (To a specific upload directory for later processing)..

What other features would you like to see?

My current design document looks something like this:

Code:
Technologies used:

    PHP (5+)
    mySQL / pgSQL
    Any http daemon that supports PHP
    Any OS that supports the above

Features:

    Simplified Templating (Custom Template Engine)
    XHTML / CSS Compliant Output
    Support for virtually any image format
    Categories and Sub-Categories
    Password Protect Categories
    Upload files via Web or FTP

NOT Features:

    Heavy login/authentication system (1 user, the admin)
    Complicated Layout changes via the Smarty Templating system

Obviously, this WebApp is being created utilizing the CodeIgniter framework.

I have some prototype code for some of the features (Specifically, the templating tool)

-Geoff W.


  Bootstrapping Advice
Posted by: El Forum - 06-23-2007, 03:29 PM - No Replies

[eluser]richard_ctv[/eluser]
Hello, I am new to these forums and to CodeIgniter.

I have an application I'm working on, and I have got bogged down, so I was looking for a framework to use. I'm very impressed with CodeIgniter (compared with the dozen or so other I have looked at so far) - the system actually makes sense to me - but I have a couple of issues I need to solve quite quickly, hence my post.

I will port the existing code to the framework (this is trivial given I already use a basic MVC layout).

The four problems I have are:

1. I run separate blog and forum software alongside my main app (in /blogs and /forums). I don't want these requests to code to CodeIgniter. Possible ?

2. I need to use the forum authentication within the rest of the site (the CodeIgniter bit).

3. The length of URLs is long. The 'Controller' component might have more than one level

e.g. /category/sub-cat/sub-cat/sub-cat/item-to-view/part-1/fragment-1

There can be a number of sub-categories (the use can create these, but they wont go totally crazy), then the item to view. The item to view may be split into parts, and those may have fragments. So the transistion between the controller and he action changes. If there is no part or fragment then that is the last level.

4. I need to share some components from the main site in the other applications - for example parts of the header and footer (but not all of the header).

I hope that makes sense. :-)

Many thanks for any comments.

Richard


  Really simple (hopefully) problem.
Posted by: El Forum - 06-23-2007, 02:24 PM - No Replies

[eluser]jord[/eluser]
For whatever reason, I'm having a terrible time getting a very basic code igniter application off the ground.

The welcome page works perfectly fine, but when I attempt to a use a controller / view of my own it doesn't work even if I basically copy/past from the welcome code. Viewing the source in the browser shows that nothing is being sent from the server. 'note' is currently set as the default controller.

Code:

note.php

Code:
<?php
class Note extends Controller()
{
    function Note()
    {
        parent::Controller();    
    }
    
    function index()
    {
        $this->load->view('note_viewer');
    }
}
?>

note_viewer.php is a direct copy of welcome.php

The code is simple, I just can't figure out why it isn't working. There are no errors in the logs.


  validation class esaping bug
Posted by: El Forum - 06-23-2007, 12:36 PM - No Replies

[eluser]johnman[/eluser]
line 663 in validation.php

Code:
return str_replace(array("'", '"', '<', '>'), array("'", "&quot;", '&lt;', '&gt;'), stripslashes($str));

There shouldn't be a stripslashes there right?


  I think i found a new bug , but im not sure (involves escaping & validation->run)
Posted by: El Forum - 06-23-2007, 12:04 PM - No Replies

[eluser]johnman[/eluser]
I am currenly trying to get my form validation correct and somehow CI is throwing away some of the '\' if i use it in the input fields. Below is the debugging code i used to pinpoint the problem.

Code:
$this->validation->set_error_delimiters('<div class="error">', '</div>');

        if( count($_POST)){
            echo("Voor: ");
            echo($this->validation->name . " ");

        }

        if ($this->validation->run() == FALSE){ //validation failed, reload the view
            $data['query_groups'] = $this->db->get('user_groups');
            
        if(false || count($_POST)){
            echo("NA: ");
            echo($this->validation->name);
            exit;
        }

this gives the following output:
Code:
Voor: aaa\bbb NA: aaabbb

I checked everything until the validation->run and right at that point the '\' disappears.

Im not sure if this is already known since i know there are already some bugreports involving escaping.

(PS i know there shouldn't be any backslashes in a name anyway Smile )

I think i found it:

line 663 in validation.php
Code:
return str_replace(array("'", '"', '<', '>'), array("'", "&quot;", '&lt;', '&gt;'), stripslashes($str));

There shouldn't be a stripslashes there right?

EDIT
I also posted this in the bug topic just to be sure it is known .


  Escaping queries
Posted by: El Forum - 06-23-2007, 11:31 AM - No Replies

[eluser]VivaUkraine[/eluser]
Hello!
I've a very basic quastion i think...

So i have some form with to text fields, and i this form data is inserting to database..

like this:

Code:
$this->db->insert('news',$_POST);

Does the CI automaticly escaping $_POST data? Or i need to use somethink like:

Code:
$this->db->set('title',$this->db->escape($_POST['title']));

for the each field ?


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

Username
  

Password
  





Latest Threads
4.4.1 to 4.4.8 base_url p...
by kenjis
1 hour ago
6 hard truths about learn...
by FlavioSuar
7 hours ago
Insert in joint table bef...
by ozornick
8 hours ago
How to Find & Hire Codeig...
by php_rocs
10 hours ago
CI NEEDS A PROPER DOCUMEN...
by ALTITUDE_DEV
11 hours ago
Optimize.php make a probl...
by ALTITUDE_DEV
11 hours ago
I built 30 startups in 20...
by php_rocs
11 hours ago
CodeIgniter v4.5.0 Releas...
by LP_bnss
Today, 05:16 AM
Gateway time out CI 4.4.1
by kenjis
Today, 03:37 AM
Need PHP Developer
by Sid.M
Yesterday, 11:21 PM

Forum Statistics
» Members: 87,013
» Latest member: sun52fit
» Forum threads: 77,629
» Forum posts: 376,284

Full Statistics

Search Forums

(Advanced Search)


Theme © iAndrew 2016 - Forum software by © MyBB