Welcome Guest, Not a member yet? Register   Sign In
  Sql file
Posted by: El Forum - 11-04-2008, 04:18 AM - Replies (1)

[eluser]Unknown[/eluser]
Hello,

Can anyone provide me sql file of tarichi cms ? I does not found in sourceforge.and site is down http://www.tarichi.com/db_tarichi.sql.

If anyone having please send me on my mail id sanjay_agraw1982@yahoo.co.in .



Gunjan


  uri of previous page
Posted by: El Forum - 11-04-2008, 02:33 AM - Replies (5)

[eluser]dimis[/eluser]
I have a page for products of some producers and a add to cart function for these

Code:
glasses/productsupdatecart/$id
At ths function I want to redirect at the previous page-the page of producer.How can I find the uri for the page of producer at "addtocart" function (or how can I implement it)?
Dimis


  CI & jQuery Linked dropdowns
Posted by: El Forum - 11-04-2008, 02:17 AM - Replies (4)

[eluser]edwin87[/eluser]
Hello CI,

I was trying to add a jQuery linked dropdown script.

See here

In the example i was able to do some changes.

But now add it to CI.

I think it's wrong with the function that call's a url. This URL has without CI the script name. Like this:

Quote:select.php

So i think in CI it would be something like this :
Quote:base_ur()/system/application/classname/function/value

But there is no action at all.


Code:
$('#building').linkedSelect('<?php echo base_url();?>index.php/buildings/selectbox/building','#levels',{firstOption: 'Select a level'});
$('#levels').linkedSelect('<?php echo base_url();?>index.php/buildings/selectbox/levels','#rooms',{firstOption: 'Select a room'});
$('#rooms').linkedSelect('<?php echo base_url();?>index.php/buildings/selectbox/rooms','#segmenten',{firstOption: 'Select a rack segment', loadingText: 'Loading...'});

Can anyone help me with this?

Thnx


  Email address
Posted by: El Forum - 11-04-2008, 02:04 AM - Replies (3)

[eluser]nandish[/eluser]
Hi guys
If i send a email from my company website to some one

The From email address will be :[email protected]

So is there any way to alias the above email address

ex:

[email protected] instead of [email protected]

Thanks in advance


  CI and PHP Session
Posted by: El Forum - 11-04-2008, 01:43 AM - No Replies

[eluser]Unknown[/eluser]
I notice that both PHP and CI Session (store in database) can exist together. Is this an acceptable behavior ? What it the drawback of using both ?

I need to use PHP session because I need to hook up things when no other CI library has been loaded.

Please advice.

Thanks,

JarBis


  OOP Question!
Posted by: El Forum - 11-04-2008, 01:14 AM - No Replies

[eluser]Lazos[/eluser]
Hi. I have this Home Controller and using Admin_Theme::doTopMenu($topmenu) I run a function that is in a custom Admin_Theme class. In the user guide is writing that if you want to call a function of a library use this $this->admin_theme->doTopMenu();. If I write it this way I am getting the following error Message: Undefined property: Admin_Theme::$lang in my Admin_Theme class. Now if I change the way the function is called like this Admin_Theme::doTopMenu($topmenu); everything is working properly.

If is not big trouble can you explain me what is the difference between them and why when I use this -> is not working but when I use this :: it is? Also which way do you recommend?
Thanks.

EDIT1:
Well I found a solution in another post in the forum. I had to use this $this->CI =& get_instance(); inside my _constructor. I am not sure if is correct though. If is correct or not still try to explain it.

Code:
class Home extends Controller {
    
    function index()
    {    
        $user_ip = $this->input->ip_address();
        $userdata = $this->my_session->sess_read($user_ip, ADMIN_HOME);
        if ($userdata['session_logged_in'] != 1) {
            _redirect('index.php/admin/login');
        }
        $this->load->model('admin/home_model', 'home_model');
        $siteprefs = $this->home_model->site_preferences();
        $topmenu = $this->home_model->extract_top_menu();
        $this->load->library('admin_theme');
        $this->admin_theme->_constructor($userdata['user_id']);
        $topmenu = Admin_Theme::doTopMenu($topmenu);
        $headers = Admin_Theme::sendHeaders();
        $templatevars = array (
            'T_MENU'                    => $topmenu,
            'L_WELCOME_USER'             => $this->lang->line('welcome'),        
            'L_ADMIN_PANEL_TITLE'        => $this->lang->line('admin_panel_title'),
            'V_ADMIN_PANEL_TITLE'         => $siteprefs['sitename'],
            'V_FIRST_LAST_NAME'             => $userdata['first_name']." ".$userdata['last_name']
            );

        $this->parser->parse('admin/header.tpl', $templatevars);
    }
}

Code:
function doTopMenu ($topmenu) {
        $final = array();                                                          
                                                                            
        foreach ($topmenu as $value)
        {
            $description = array('description' => $this->lang->line($value['title']));
            $title = array ('title' => $value['title']);
            $parent = array ('parent' => $value['parent']);
            $url = array ('url' => $value['url']);
            $target = array ('taget' => $value['target']);
            $showinmenu = array ('show_in_menu' => $this->admin_theme->lazos($value['show_in_menu']));
            $row = $title + $parent + $url + $target + $showinmenu + $description;
            array_push($final, $row);
            
        }
    }


  Adding a Model class under system?
Posted by: El Forum - 11-04-2008, 01:12 AM - Replies (6)

[eluser]juworld[/eluser]
I have a few sites running off the same server. Since all these sites are using CI and they all have the same User model, I would really like to just have 1 User model class.

However, I don't see a model folder under system. So, this is what I have been doing. I create a super User class, MyUser, in another directory, system/models. In system/application/models, I would create a User class that extends MyUser.

I'm sure there must be a more elegant to do this. Please advise.

Thanks,

Justin


  Am I doing too many resizes?
Posted by: El Forum - 11-03-2008, 11:28 PM - Replies (11)

[eluser]KeyStroke[/eluser]
Hi,

I currently have a web application where users upload images. When a single image is uploaded, 3 resizes get performed on it (which means it end up having 4 versions):

- Thumbnail version
- A Preview version that's a bit bigger than the thumbnail one.
- a version that is as big as the site's layout
- the original version

At this point, I think I'm just doing too many resizes. It works fine now, but I'm not sure how that's gonna work under pressure.

As for the code I'm using, it's similar to the ones here: http://ellislab.com/forums/viewthread/85727/#477678

If I'm doing it wrong (theoretically), is there a better way to do it so I can have different sizes for images in my site?


  upgradation to CI 1.7
Posted by: El Forum - 11-03-2008, 10:40 PM - Replies (3)

[eluser]gulan[/eluser]
Hi all,

I would like to upgrade CI 1.6.3 to 1.7. as given in users guide I have updated the following
system/codeigniter
system/database
system/helpers
system/language
system/libraries

but while running the code, it throws an error
Unable to load the requested class: rapyd

why this happens???
and somebody please tell me what all are the changes have to do in form validation to upgrade to 1.7??

thanks


  importing a csv into the db
Posted by: El Forum - 11-03-2008, 08:27 PM - Replies (29)

[eluser]alberto24[/eluser]
Hi - I have a variety of csv files that I need to import into my database. Is there a codeigniter function for this? I assume I need to somehow matchup the field names from the csv to match the field names in the database? Also the data needs to also add a specific customer id if possible.

I've done a bit of searching but have come up empty.

Thanks!


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

Username
  

Password
  





Latest Threads
SQL server connection not...
by falagar2k
28 minutes ago
How to use Codeigniter wi...
by kenjis
28 minutes ago
CVE-2022-40834 SQL Inject...
by kenjis
1 hour ago
Retaining search variable...
by pchriley
2 hours ago
Disable debug output in v...
by groovebird
3 hours ago
CI 4.5.1 CSRF - The actio...
by kenjis
4 hours ago
CodeIgniter v4.5.0 Releas...
by kenjis
4 hours ago
Cache best practice?
by BhambriRohunu
6 hours ago
Bug with sessions CI 4.5....
by InsiteFX
6 hours ago
Codeigniter Shield Bannin...
by kenjis
11 hours ago

Forum Statistics
» Members: 85,331
» Latest member: skysevennet
» Forum threads: 77,578
» Forum posts: 375,997

Full Statistics

Search Forums

(Advanced Search)


Theme © iAndrew 2016 - Forum software by © MyBB