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

[eluser]MesmerLab[/eluser]
Adam,

I'm installing v0.61 now. It is asking for the location of my Modules folder, but I don't have Matchbox installed. Is that a requirement? This is to be a 1-off project, not a full-fledged development server.

Thanks!

[eluser]adamp1[/eluser]
BackendPro comes packages with matchbox. So if you have unzipped it as is then the modules folder won't need to be changed.

[eluser]alainm[/eluser]
adamp1: would you be able to dump out for me your bep_access_* tables values?

seems like my admin user doesn't have the permission to add users.. and i'm just trying to figure out how to get it

[eluser]gabybob[/eluser]
Hi,

We translated "ci_bep2" from English into French, for users interested in the package, contact us today http://www.byoos.fr or send me one private message

TODO => switch of french language on webshop

best regards

gabriel

[eluser]napz[/eluser]
woah.... this looks promising for a web developer....

I'll try this on my next website.

[eluser]shinokada[/eluser]
I have a question. I'd like to use preference in bep_assets.php. Can I do it?

What I want to do is to set preference for usage of slideshow javascript for the frontend under the setting.


So I want to use the following
In bep_assets.php

Code:
...
$config['asset'][] = array('file'=>'slideshow1.js', 'needs'=>'jquery');
$config['asset'][] = array('file'=>'another_slideshow2.js', 'needs'=>'jquery');
...
// under the setting there will be a dropdown or checkbox to choose which slideshow to use

$slideshow = $this->preference->item('slide_show_js');
$config['asset_group']['slideshow'] = $slideshow;

And then using it in a controller like this.
Code:
...
$this->bep_assets->load_asset_group('slideshow');
...

Am I far off or is it possible?

Thanks in advance.

[eluser]adamp1[/eluser]
I don't think you can do this for the reason the config isn't an object so $this->preference->item won't work.

What I would suggest instead is this. This tbh is also a way of keeping code out of the config files.

Code:
...
$config['asset'][] = array('file'=>'slideshow1.js', 'needs'=>'jquery');
$config['asset'][] = array('file'=>'another_slideshow2.js', 'needs'=>'jquery');
...

$config['asset_group']['slideshow1'] = 'slideshow1.js';
$config['asset_group']['slideshow2'] = 'another_slideshow2.js';

Then your preference value will have a dropdown with the values 'slideshow1' & 'slideshow2'. So in your controller you do.
Code:
$this->bep_assets->load_asset_group($this->preference->item('slideshow'));

[eluser]shinokada[/eluser]
Thanks. I will try it.

[eluser]shinokada[/eluser]
I would like to add my tables and insert data during Bep installation.

It must be one or some files in the installation folder.

Could you tell me which file(s) I should look into please?

Thanks in advance.

[eluser]adamp1[/eluser]
You will need to create a file containing the SQL you want to execute. Then have a look at install/components/SetupDatabase.php. This is a collection of Components to do with setting up the database. You will either need to append your own component to this file or create a new CustomSetupDatabase.php file with your component in. (You will most want to look at class UpdateSchema extends Component since this is what your component will look like.

Then you will need to edit install/RUN.php so it will run your new component. Please read that file since it has examples of what you need to do.




Theme © iAndrew 2016 - Forum software by © MyBB