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

[eluser]a&w[/eluser]
[quote author="J-Slim" date="1233286125"]I don't know what Matchbox is. How can I pass variables from the controller to the view?[/quote]
Matchbox...do a search on the forums?
Pass variables...same as always?
Like I said, your question doesn't sound specific at all to this library.

[eluser]adamp1[/eluser]
Yes this isn't a BeP issue, look for Matchbox, only splits the files into modules. Passing variables to the view is done just the same as you would do in normal CI, check out for passing variables to a view.the user guide

[eluser]mr.owner[/eluser]
Good secure practice is keep CI and application files outside "www" or "pub" folders. Also good idea is using one same CI installation ("system" folder) for several sites on the server. So I do. Also I have special folder for applications outside CI "system" folder.

BackendPro installation procedure need unsecure placing controllers etc. into web-folder. How can I install BeP in different way?

Where need I place "modules" folder, and so on?

[eluser]a&w[/eluser]
[quote author="mr.owner" date="1234892719"]Good secure practice is keep CI and application files outside "www" or "pub" folders. Also good idea is using one same CI installation ("system" folder) for several sites on the server. So I do. Also I have special folder for applications outside CI "system" folder.

BackendPro installation procedure need unsecure placing controllers etc. into web-folder. How can I install BeP in different way?

Where need I place "modules" folder, and so on?[/quote]
This may help:
http://ellislab.com/forums/viewthread/103134/

[eluser]aidanmcg33[/eluser]
Hi, are there any instructions as to how to add extra pages to the backend. ive got widgets working ok but what i want to do is have one of the widgets linking to a page "Add Color". This is just a page with a simple form but how do i incorporate this into backend pro?

[eluser]mr.owner[/eluser]
[quote author="a&w" date="1234898648"]
This may help:
http://ellislab.com/forums/viewthread/103134/[/quote]

Thanx, but CI perfectly works for me by this documented way: http://ellislab.com/codeigniter/user-guide/general/managing_apps.html.

Can I work with BeP so easy, and run it's install script?

[eluser]adamp1[/eluser]
@aidanmcg33: You can add pages exactly like you would with CodeIgniter, so you want to add a page Add Color, so first off in your Application/Controllers/Admin folder add a file called AddColor.php.

Now in that file enter the following code:
Code:
<?php
class AddColor extends Admin_Controller
{
    public AddColor()
    {
        parent::Admin_Controller();
    }

    public index()
    {
        // What ever goes in here will be called by default
    }
}

Now becasue your controller extends from Admin_Controller, it will by default require the user to login. If you want more fine grained control of what user can view it you will need to use the ACL system.

@mr.owner: Sadly atm the BeP installer script isn't set up for moving the folders about. But all the installer does is setup config files. So when there done, move your files where ever you want them, then you just needed to edit
index.php - You need to tell it where to find the application folder and the system folder.
matchbox.php - You need to edit the matchbox config to tell it where the modules folder is, relative to the application folder.

[eluser]aidanmcg33[/eluser]
thanks for your help. that worked perfectly. Now how do i get my page to appear with the usual dashboard around it.

[eluser]adamp1[/eluser]
You need to load the view using the container. I would advise reading this part of the user guide:
http://www.kaydoo.co.uk/backendpro/user_...views.html

[eluser]aidanmcg33[/eluser]
thanks for the quick response. i have figured it out so just trying to add some forms now. thanks for the help.




Theme © iAndrew 2016 - Forum software by © MyBB