Welcome Guest, Not a member yet? Register   Sign In
  I have one issue...could be .htaccess problem?
Posted by: El Forum - 11-12-2008, 10:10 AM - Replies (5)

[eluser]stdio[/eluser]
Hello,

A friend of mine installed codeigniter on my website (www.smsup.net). It used to work perfectly until I had to move my website to another host. Now, all the links are taking me to the main website. Could this be a .htaccess problem? Any ideas how can I fix it?

Thank you!


  CI for medium size projects
Posted by: El Forum - 11-12-2008, 09:53 AM - Replies (4)

[eluser]Rey Philip Regis[/eluser]
Hi guys,

Can you give me an advice, Im going to develop a medium size project, then I want to know if CI is good to use on medium size projects? I know its medium right now but eventually in the future it will get bigger. So is it advisable to code the project to CI or not? Cause Im also thinking of using CAKEPHP, but the problem is that CAKEPHP has strict rules on database tables and fields and my problem right now is that the tables and fields in our database are defined already. So I want to have your advice on this guys....

Good day......


  CMS Plugin
Posted by: El Forum - 11-12-2008, 09:43 AM - Replies (6)

[eluser]jwindhorst[/eluser]
I've seen a few people posting on here about building their own CMS system but I haven't seen anyone post a fully functioning CMS Plugin for the "CodeIgniter" framework. Did I miss it somewhere?

In addition to these thoughts, it occurs to me that EllisLabs created Expression Engine which is a fairly robust CMS system, likely overkill for a site that is primarily an app, but requires a few static page as well, and yet they themselves have not thought to create this plugin.

I'm starting off on a brand new project and examining the daunting task of creating my own CMS Model to use within code igniter.

I'm hoping somewhere else out there will say STOP, ITS ALREADY BEEN DONE!

Best
JW


  Datagrid
Posted by: El Forum - 11-12-2008, 09:41 AM - No Replies

[eluser]Crnaovca[/eluser]
Is there any searchable and filterable datagrid written in Codeigniter or even in PHP that can be used for large sets of data?
Currently I have devexpress.net datagrid component on my ASP.NET project but I am thinking to move to codeigniter the whole project but still no datagrids cannot be found except most basic one.
I need AJAX one with filters and searches ...


  Parser error :(
Posted by: El Forum - 11-12-2008, 09:22 AM - Replies (1)

[eluser]Lazos[/eluser]
Hi I have this array $directory that I am collecting data. The result of this array is not the same as the one they use in the User Guide of CI?

I am getting this error and I do not know why.
A PHP Error was encountered

Severity: Warning

Message: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 2

Filename: libraries/Parser.php

Line Number: 161

Any help?

My array.

Code:
$i = 0;
        while (false !== ($file = readdir($dh))){
            if(!in_array($file, $ignore)){  
                if(is_dir($path.'/'.$file)){
                    if ($file == '..' && (($path != $this->imagepath) || ($path != $this->root))) {
                    $directory['repeat'][$i]['I_DIRECTORY'] = '<a href="'.base_url().'index.php/admin/imagemanager?dir='.$back.'" title="Go Back">'.$this->CI->admin_theme->displayImage('images/admin/filemanager/32px/dir.png', 'Go Back', '','','').'</a>';
                    $directory['repeat'][$i]['V_FILENAME'] = $file;
                    $directory['repeat'][$i]['V_FILEOWNER'] = '&nbsp;';
                    $directory['repeat'][$i]['V_PERMS'] = '&nbsp;';
                    $directory['repeat'][$i]['V_SIZE'] = '&nbsp;';
                    $directory['repeat'][$i]['V_DATE'] = '&nbsp;';
                    $directory['repeat'][$i]['I_DELETE'] = '&nbsp;';
                    $directory['repeat'][$i]['I_CHANGEPERMS'] = '&nbsp;';
                    $directory['repeat'][$i]['I_DELETE'] = '&nbsp;';
                    $directory['repeat'][$i]['I_LOCK'] = '&nbsp;';
                    
                    }
                    if ($file != '..') {
                    $directory['repeat'][$i]['img'] = '<a href="'.base_url().'index.php/admin/imagemanager?dir='.$back.'" title="Go Back">'.$this->CI->admin_theme->displayImage('images/admin/filemanager/32px/dir.png', 'Go Back', '','','').'</a>';
                    $directory['repeat'][$i]['V_FILENAME'] = $file;
                    $directory['repeat'][$i]['V_FILEOWNER'] = '&nbsp;';
                    $directory['repeat'][$i]['V_PERMS'] = '&nbsp;';
                    $directory['repeat'][$i]['V_SIZE'] = '&nbsp;';
                    $directory['repeat'][$i]['V_DATE'] = '&nbsp;';
                    $directory['repeat'][$i]['I_DELETE'] = '&nbsp;';
                    $directory['repeat'][$i]['I_CHANGEPERMS'] = '&nbsp;';
                    $directory['repeat'][$i]['I_DELETE'] = '&nbsp;';
                    $directory['repeat'][$i]['I_LOCK'] = '&nbsp;';
                    }
                }        
        $i++;    }
        }


Code Igniter Example
Code:
$data = array(
              'blog_title'   => 'My Blog Title',
              'blog_heading' => 'My Blog Heading',
              'blog_entries' => array(
                                      array('title' => 'Title 1', 'body' => 'Body 1'),
                                      array('title' => 'Title 2', 'body' => 'Body 2'),
                                      array('title' => 'Title 3', 'body' => 'Body 3'),
                                      array('title' => 'Title 4', 'body' => 'Body 4'),
                                      array('title' => 'Title 5', 'body' => 'Body 5')
                                      )
            );

$this->parser->parse('blog_template', $data);

My Template
Code:
{repeat}
    <tr class="row1">
        <td valign="middle"><a href="{U_DIR}"><img height="32" style="border:0;" src="{I_DIRECTORY}" alt="directory" align="middle" /></a></td>
        <td valign="middle"><a href="{U_NAME}">{V_FILENAME}</a></td>
        <td style="padding-right:8px;" valign="middle">{V_FILEOWNER}</td>
        <td style="padding-right:8px;" valign="middle">{V_PERMS}</td>
        <td style="padding-right:2px;text-align:right;" valign="middle">{V_SIZE}</td>
        <td style="padding-right:8px;" valign="middle">&nbsp;</td>
        <td style="padding-right:8px;" valign="middle">{V_DATE}</td>
        <td valign="middle">
            <table cellspacing="0" border="0">
                <tr>    
                    <td valign="middle">{I_RENAME}</td>
                    <td valign="middle">{I_CHANGEPERMS}</td>
                    <td valign="middle">{I_DELETE}</td>
                    <td valign="middle">{I_LOCK}</td>
                </tr>
            </table>    
        </td>
        <td>&nbsp;</td>
    </tr>
    {/repeat}


  search page problem
Posted by: El Forum - 11-12-2008, 09:14 AM - Replies (1)

[eluser]dimis[/eluser]
I have a search page.
I have a input text searchfield.
I use pagination of CI.
I want to have at all pages of pagination the value of searchfield.
So I use this code

Code:
post=$this->input->post('searchfield');

        if (!empty($post))
        {
           $this->session->
set_flashdata('searchfield',$this->input->post['searchfield']);
            $mysearch=$this->input->post('searchfield');
        
        }
        else
        {

            $this->session->set_flashdata('searchfield',  flashdata('searchfield'));
            $mysearch= $this->session->flashdata('searchfield');

        }
but it does not seems to work.
The flashdata is not there.
How can I put the input text searchfield value for all the pages of pagination?
Dimis


  Quick question about managing applications
Posted by: El Forum - 11-12-2008, 09:10 AM - Replies (1)

[eluser]dpgtfc[/eluser]
Regarding the user guide as quoted below my main post body, how would I set it up so each of these applications shares the same template (using the template parser). Do I use the base application/views file? How do I specify this when I use the template parser? Would I do:

Code:
$this->parser->parse('mytemplate',$myarray);

Or would that not work?

Initially I was considering having my setup as:

system
application1
application2
application3

rather than as recommended below, but there didn't seem to be anyway to share views..

Quote:If you would like to share a common CodeIgniter installation to manage several different applications simply put all of the directories located inside your application folder into their own sub-folder.

For example, let's say you want to create two applications, "foo" and "bar". You will structure your application folder like this:
system/application/foo/
system/application/foo/config/
system/application/foo/controllers/
system/application/foo/errors/
system/application/foo/libraries/
system/application/foo/models/
system/application/foo/views/
system/application/bar/
system/application/bar/config/
system/application/bar/controllers/
system/application/bar/errors/
system/application/bar/libraries/
system/application/bar/models/
system/application/bar/views/

To select a particular application for use requires that you open your main index.php file and set the $application_folder variable. For example, to select the "foo" application for use you would do this:
$application_folder = "application/foo";


  sorry, htaccess problem (?)
Posted by: El Forum - 11-12-2008, 09:02 AM - Replies (4)

[eluser]melpuggi[/eluser]
hello,

i have a problem with htaccess

i am using lamp on ubuntu and the directory path = 'var/www'

content of => sites-available/default = ' <Directory /var/www/>
Options Indexes Includes FollowSymLinks Multiviews
AllowOverride All
Order deny,allow
Allow from all
</Directory>'

content of .htaccess = 'RewriteEngine on

RewriteCond $1 !^(index\.php|images)

RewriteRule ^(.*)$ index.php/$1 [L]'

any links on localhost/link give me "Internal Server Error"

no error in site files maybe htaccess, or httpd.conf which one?

what is my problem, thanks for your helps..


  db->truncate produces error
Posted by: El Forum - 11-12-2008, 08:28 AM - Replies (1)

[eluser]MaDe[/eluser]
Using $this->db->truncate('table') will report the following error in your logfile:

Quote:ERROR - 2008-11-12 15:16:40 --&gt; Severity: Warning --&gt; mysql_num_rows(): supplied argument is not a valid MySQL result resource path\to\CI\system\database\drivers\mysql\mysql_result.php 37

Using CI 1.7.0.

Bug?

Regards,
MaDe


  PLS HELP
Posted by: El Forum - 11-12-2008, 05:48 AM - No Replies

[eluser]Unknown[/eluser]
I'm kindly asking You for help.
I am trying for several nights, without any sleep, to run flexigrid from CI but,
message:
>>>>>Processing, please wait ... flexigrid <<<<<< :gulp:
is killing me. I'm going to be tottaly crazy. I suuppose i am very pain in the @#@!$.
I have already red all forums and posts
and i still can't to resolve a problem.
I received data from ajax_model and ajax also, but in browser I can not see data in the grid.
My url in config is http://sef/declan/ and i call ajax contoller with baseurl+'index.php/ajax'
and i load database in autoload.php
It must be some reason it doesn't work, please try to help me, i will appriciate it.

Tank You in advanced,
Please help,
Tks in advanced
B.Grebenar


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

Username
  

Password
  





Latest Threads
Array to HTML "Table"
by paulkd
1 hour ago
TypeError when trying to ...
by b126
2 hours ago
Webhooks and WebSockets
by InsiteFX
Yesterday, 10:39 AM
Retaining search variable...
by pchriley
Yesterday, 05:46 AM
Reading a session variabl...
by xanabobana
Yesterday, 05:05 AM
Update to v4.5.1, same us...
by kenjis
04-17-2024, 07:47 PM
Codeigniter 4 extend core...
by Semsion
04-17-2024, 05:08 AM
v4.5.1 Bug Fix Released
by lokman
04-16-2024, 02:12 PM
problem with textarea
by Nitin Arora
04-16-2024, 05:07 AM
Showing pdf on browser
by aarefi
04-16-2024, 04:38 AM

Forum Statistics
» Members: 84,529
» Latest member: socialmachinery
» Forum threads: 77,558
» Forum posts: 375,896

Full Statistics

Search Forums

(Advanced Search)


Theme © iAndrew 2016 - Forum software by © MyBB