Welcome Guest, Not a member yet? Register   Sign In
BackendPro 0.6.1

[eluser]flokky[/eluser]
@Adam: Do you have any idea how I can implement the Vanilla forum using BackendPro ? I can find a Wiki tutorial, but that's for FreakAuth and CL Auth.

It would greatly appreciated if you could enlighten us how to do this. You have greater insight how the components work together.

Thanks

[eluser]adamp1[/eluser]
BackendPro 0.5 has just been released. Not too many new features but some fixes for some old bugs I know have been rather annoying.

@flokky: I will have a look into it. I'm sure it will be very simple. Ill post back soonish

[eluser]adamp1[/eluser]
Well having had a look at the Vanilla forum install for FreakAuth it looks too complicated for me to run through and make one for BackendPro (specially since I do not personally need it and it would take quite a while).

All I can suggest is give it a go. Try and put it maybe in a Module inside BackendPro. Since BackendPro and FreakAuth have nearly the same authentication system (i.e it follows the same kind of process) it should be very similar to the walk through in the Wiki. If you do succeed you could maybe add another page to the wiki.

[eluser]Unknown[/eluser]
I need help with my this code:
controller:

Code:
<?php
class Page extends Controller {
  
   function Page()
   {
       parent::Controller();
       $this->load->library('template');
   }
  
   function index()
   {
       $this->template->write('content', 'You one ');
        $this->template->write('content', 'bad boy...');
        
        $this->template->write('content', "Shut'yo mouth!");
        
        $data = array('name' => 'John Smith', 'birthdate' => '11/15/1950');
        $this->template->write_view('content', 'page.php', $data, TRUE);

      $this->template->render();
   }
  
}
?>

And This is my view. I am just printing whole array:
Code:
<?php
    print_r($data);
?>

but this displays me error like:

-------------------------------------------------

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: data

Filename: views/page.php

Line Number: 2

-------------------------------------------------

can anybody plese tell me what I am doing wrong?

[eluser]adamp1[/eluser]
Yes, you need to do the following
Code:
<?php
class Page extends Controller {
  
   function Page()
   {
       parent::Controller();
       $this->load->library('template');
   }
  
   function index()
   {
       $this->template->write('content', 'You one ');
        $this->template->write('content', 'bad boy...');
        
        $this->template->write('content', "Shut'yo mouth!");
        
        $data['myarray'] = array('name' => 'John Smith', 'birthdate' => '11/15/1950');
        $this->template->write_view('content', 'page.php', $data, TRUE);

      $this->template->render();
   }
  
}
?>

In the view
Code:
<?php
    print_r($myarray);
?>

Thats if the template write_view method works as the CI view method does.

[eluser]DanKey[/eluser]
Error in User Guide at page

/user_guide/features/image_controller.html

Code:
<img src="&lt;?=site_url('image/get/width/crop/3:2/width/100/height/300/quality/50/nocache/true/file/my_image.jpg')?&gt;" />

Wrong 'width/'. should be:

Code:
<img src="&lt;?=site_url('image/get/crop/3:2/width/100/height/300/quality/50/nocache/true/file/my_image.jpg')?&gt;" />

Error in file \modules\image\controllers\image.php at line 105:
Should delete this: AND $uri_array['watermark'] == NULL, `coz is "(Not yet implemented)"
But throws an error.

[eluser]DanKey[/eluser]
in image.php at line 76 should to add 'break;'
to prevent useless search of files if one already found
Code:
foreach($this->config->item('image_folders') as $folder) {
            if ( file_exists($folder.$uri_array['file'])) {
                $this->img_path = $folder.$uri_array['file'];
                break;
            }
        }

[eluser]adamp1[/eluser]
Thanks DanKey I will have a look into these tonight after work.

[eluser]MihaiD[/eluser]
Hi there! I am new (about 1 week into) to CI, and so far I really love this framework. But of course, there are issues which need ironing out before I can get all things going.
From what I read about it, BeP should be just the thing I need for some of my projects.
So I just installed BeP 0.5 on a CI 1.7.1 and after finishing install successfully I tried to go to the admin section and got the following error:

Unable to load the requested class: status

Ideas anyone?

I have .htaccess file eliminating the index.php from my urls so I just type in http://mydomain/admin
Also, everything is installed locally in a development environment

Thanks for helping out.

[eluser]MihaiD[/eluser]
Hi there!

I found the problem:

After the install procedure was finished, the matchbox.php config file contained following line:

Code:
$config['directories'] = array('../../modules');
i guess this was set as the relative path to the install folder

I edited it to:
Code:
$config['directories'] = array('modules');

Problem solved. For now :-)




Theme © iAndrew 2016 - Forum software by © MyBB