Part of the EllisLab Network
   
5 of 77
5
BackendPro 0.6.1
Posted: 12 April 2008 05:47 PM   [ Ignore ]   [ # 41 ]  
Summer Student
Total Posts:  13
Joined  09-21-2006

That is the same error I have.

Profile
 
 
Posted: 12 April 2008 07:52 PM   [ Ignore ]   [ # 42 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  880
Joined  09-01-2007

Umm the same problem as nikolaaa is having, it doesn’t like the static variable in the class. I shall have to have a look into this tomorrow.

 Signature 

Kaydoo - A day in the life of a developer
BackendPro Control Panel

Profile
 
 
Posted: 13 April 2008 05:43 AM   [ Ignore ]   [ # 43 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  880
Joined  09-01-2007

Right, I fixed this issue, released a new version. Please check the changelog page since there may be some changes you need to perform.

 Signature 

Kaydoo - A day in the life of a developer
BackendPro Control Panel

Profile
 
 
Posted: 13 April 2008 08:36 AM   [ Ignore ]   [ # 44 ]  
Grad Student
Rank
Total Posts:  40
Joined  11-09-2007

there are a few typo.

successfull => successful
powerfull => powerful

there’s only one L

Profile
 
 
Posted: 13 April 2008 09:08 AM   [ Ignore ]   [ # 45 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  880
Joined  09-01-2007

Where are those typos?

 Signature 

Kaydoo - A day in the life of a developer
BackendPro Control Panel

Profile
 
 
Posted: 13 April 2008 09:17 AM   [ Ignore ]   [ # 46 ]  
Grad Student
Rank
Total Posts:  40
Joined  11-09-2007

your google code page already has one:

“A powerfull CodeIgniter website control panel for developers”

another one is in the source but i forgot where it is.

Profile
 
 
Posted: 13 April 2008 10:18 AM   [ Ignore ]   [ # 47 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  241
Joined  04-11-2008

Hi adamp1
I’ve got your latest build.
I extracted, copied and overwrote all the old files, and tried again
No errors now, but this is what I see

http://xs126.xs.to/xs126/08150/backend_pro_latest426.jpg

What’s that php error about? I may think it is due my php version, right?
And about look, has backendpro some style or it is displayed with plain clean html?

Thanks

 Signature 

Joomla! and custom web apps

Profile
 
 
Posted: 13 April 2008 07:57 PM   [ Ignore ]   [ # 48 ]  
Summer Student
Total Posts:  18
Joined  01-23-2008

This looks really good.

I’m trying to install it on localhost with no success.
It always errors out saying that it can’t open “recaptcha.dat” (even if I don’t fill the keys). I tried to edit the install.php file (since the error logs a wrong path to the “recaptcha.dat”) but nothing.

I checked the file permissions as well..

I might be missing something.. Any ideas?

Thanks.

Profile
 
 
Posted: 14 April 2008 03:19 AM   [ Ignore ]   [ # 49 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  880
Joined  09-01-2007

@CARP: The error is about a use of a deprecated function. I think I have notices turned off on my development system so this is why I didn’t see it. In respect to the style, its styled using css only. So just removing or editing the style sheets will change everything.

@PedroGrilo: Can you give me the error message you get? I think even if you don’t supply recaptcha keys it will still copy the file to its new location. Also are you on windows/linux?

 Signature 

Kaydoo - A day in the life of a developer
BackendPro Control Panel

Profile
 
 
Posted: 14 April 2008 03:47 AM   [ Ignore ]   [ # 50 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  880
Joined  09-01-2007

@CARP: The issue you found has now been fixed. I have not released a new version yet since I need to fix some other things, but for a temp fix until the next release just save the following over what’s already in system/application/models/base_model.php

<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
 * BackendPro
 *
 * A website backend system for developers for PHP 4.3.2 or newer
 *
 * @package     BackendPro
 * @author        Adam Price
 * @copyright    Copyright (c) 2008
 * @license        http://www.gnu.org/licenses/lgpl.html
 * @tutorial    BackendPro.pkg
 */

 // ---------------------------------------------------------------------------

/**
 * Base_model
 *
 * Sets up basic model functions. All user created model classes should
 * extend this to gain access to its basic database model functions.
 *
 * @package            BackendPro
 * @subpackage        Models
 */
    
class Base_model extends Model
    {           
        
/**
         * Constructor
         */
        
function Base_model()
        
{
            
// Inherit from parent class
            
parent::Model();

            
// Create empty function array
            
$this->_TABLES = array();

            
log_message('debug','Base_model Class Initialized');
        
}

        
/**
         * Fetch
         *
         * Fetch table rows from table related to $name. Check no custom
         * fetch method exists before hand.
         *
         * @access public
         * @param string $name Table Name
         * @param mixed $fields Fields to return from table
         * @param array $limit Rows to limit search to
         * @param mixed $where Return rows that match this
         * @return Query Object
         */
        
function fetch($name$fields=null$limit=null$where=null)
        
{
            $func 
'_fetch_'.$name;
            if(
method_exists($this,$func))
            
{
                
// There is an overide function
                
return call_user_func_array(array($this,$func), array($fields,$limit,$where));
            
}
            
else
            
{
                
// No override function, procede with fetch
                
($fields!=null) ? $this->db->select($fields) : '';
                (
$where!=null) ? $this->db->where($where) : '';
                (
$limit!=null) ? $this->db->limit($limit['rows'],$limit['offset']) : '';

                return 
$this->db->get($this->_TABLES[$name]);
            
}
        }

        
/**
         * Insert
         *
         * Insert new table data into table related to by $name
         * Check no custom insert method exists before hand.
         *
         * @access public
         * @param string $name Table Name
         * @param array $data Data to insert
         * @return Query Object
         */
        
function insert($name$data)
        
{
            $func 
'_insert_' $name;
            if(
method_exists($this,$func))
            
{
                
// There is an overide function
                
return call_user_func_array(array($this,$func), array($data));   
            
}
            
else
            
{
                
// No override function, procede with insert
                
return $this->db->insert($this->_TABLES[$name],$data);
            
}
        }

        
/**
         * Update
         *
         * Update data in table related to by $name
         * Check no custom update method exists before hand.
         *
         * @access public
         * @param string $name Table Name
         * @param array $values Data to change
         * @param mixed $where Rows to update
         * @return Query Object
         */
        
function update($name$values$where)
        
{
            $func 
'_update_' $name;
            if(
method_exists($this,$func))
            
{
                
// There is an overide function
                
return call_user_func_array(array($this,$func), array($values,$where));  
            
}
            
else
            
{
                
// No overside function, procede with general insert
                
$this->db->where($where);
                return 
$this->db->update($this->_TABLES[$name],$values);
            
}
        }

        
/**
         * Delete
         *
         * Delete rows from table related to by $name
         * Check no custom delete method exists before hand.
         *
         * @access public
         * @param string $name Table Name
         * @param mixed $where Rows to delete
         * @return Query Object
         */
        
function delete($name$where)
        
{            
            $func 
'_delete_' $name;
            if(
method_exists($this$func))
            
{
                
// There is an overide function
                
return call_user_func_array(array($this,$func), array($where));    
            
}
            
else
            
{
                
// No overside function, procede with general insert
                
$this->db->where($where);
                return 
$this->db->delete($this->_TABLES[$name]);
            
}
        }
    }
?> 

Can you let me know if this solves the problem.

 Signature 

Kaydoo - A day in the life of a developer
BackendPro Control Panel

Profile
 
 
   
5 of 77
5