New BackendPro version released

BackendPro, CodeIgniter, Development, Updates No Comments »

Last week I saw that there was a new version of BackendPro. Not it is 0.6.

On one of our projects I started to update the version, but after some time I saw that there a lot of changes which make the software really good. At all it costs me two days to update the single project (three are waiting for an update :-) )

Yesterday I want to bring the new version on the LiveSystem, but here I got some further problem, which are not there on my MacBookPro with MAMP:

I had a problem with the installation on my webserver (Debian Etch with Apache 2). I guess that this is a known CodeIgniter problem, so I want to please Adam for the next release to change the things… For all other interested people read the following solutions:

1) CamelCase doesn’t really working good with CodeIgniter.
I got an error on my webserver which told me “Unable to load the requested class: bep_site”.

Solution: Change all filenames in modules/site/libraries to

Bep_assetfile.php
Bep_assets.php
Bep_browser.php
Bep_site.php

2) File changes
In the file modules/site/libraries/Bep_assets.php I had to change the following line:

- include_once(’Bep_AssetFile.php’);
+ include_once(’Bep_assetfile.php’);

- $this->CI->load->library(’Bep_Browser’);
+ $this->CI->load->library(’bep_browser’);

The reason is located in 1)

For all other: If you have any further question, please the comments of this post…

Image Map Area Helper

CodeIgniter, Development, Helper No Comments »

Today I need to have an area link within an imape map for a lot of links with in my CodeIgniter application. I can’t find a helper or function within the framework, so I wrote an area helper function:


<?php
/**
* Image Map Area Link
*
* Creates an anchor based on the local URL.
*
* @access    public
* @param    string    the URL
* @param    string    the link title
* @param    mixed    any attributes
* @return    string
*/
if ( ! function_exists('area_anchor'))
{
function area_anchor( $uri = '', $title = '', $attributes = '')
{
$title = (string) $title;

if ( ! is_array($uri))
{
$site_url = ( ! preg_match('!^\w+://! i', $uri)) ? site_url($uri) : $uri;
}
else
{
$site_url = site_url($uri);
}

if ($title == '')
{
$title = $site_url;
}

if ($attributes != '')
{
$attributes = _parse_attributes($attributes);
}

return '<area href="'.$site_url.'" title="'.$title.'"'.$attributes.'></area>';
}
} //function

/* End of file area_helper.php */
/* Location: ./application/helpers/area_helper.php */
?>

You can use it like this:
<?php echo area_anchor( "/welcome", "Welcome", 'shape="poly" coords="153,78, 153,78, 154,78, 154,78, 154,78, 154,77, 155,77, 155,77, 155,77, 157,80, 158,81, 158,82, 158,83, 159,83, 160,84, 160,84, 161,84, 160,85, 160,86, 159,86, 159,86, 160,86, 160,86, 160,86, 160,87, 160,87, 159,87, 159,87, 156,86, 155,86, 155,85, 155,85, 155,85, 154,86, 154,86, 154,86, 154,87, 153,87, 153,86, 152,86, 152,86, 151,85, 150,85, 150,85, 150,86, 149,86, 149,86, 149,86, 149,86, 148,86, 148,86, 147,86, 147,86, 148,85, 148,85, 148,85, 148,85, 148,85, 148,84, 148,84, 148,84, 148,84, 149,83, 148,82, 148,82, 148,82, 148,80, 148,80, 149,80, 149,80, 149,80, 149,80, 149,80, 150,80, 150,80, 150,80, 150,80, 150,80, 149,79, 149,79, 149,79, 150,79, 152,79, 152,79, 152,79, 152,79, 153,79, 153,79, 153,78, 153,78, 153,78"'); ?>

If you have any questions don’t hesitate to contact me.

CodeIgniter BackendPro

BackendPro, CodeIgniter, Development, Projects 3 Comments »

Some time ago we started to develop our projects with CodeIgniter. On this basis we were looking for good backend tool and we found BackendPro. Today I started a new project and was looking for some updates on the systems we use. I was surprised to find out that BackendPro was yesterday released in a new version: BackendPro 0.5 (THANK YOU very much Adam Price for this good work).

Here are the tools we actually using:

With the above mentioned tools you can do a lot of good things and get a lot of work done… Have fun!

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in