BackendPro 0.6.1 |
[eluser]adamp1[/eluser]
[quote author="bluerockit" date="1263909256"]Hello all. I just started working with Backend pro for a few days for a project. I am using 0.6.1. I installed and everything seems to be working. I can login fine and it redirects me to the admin panel. I have a controller called 'manage' located in the codeigniter system folder that I am trying to protect using the ACL. However, I have: Code: function Manage() I receive the following error in my php log. Code: PHP Fatal error: Call to undefined function check() So, it seems somewhere it is not finding the correct libraries? If anyone can point me in the right direction, I would appreciate it![/quote] Please read the following user guide pages. http://www.kaydoo.co.uk/backendpro/user_...oller.html http://www.kaydoo.co.uk/backendpro/user_...oller.html
[eluser]adamp1[/eluser]
[quote author="amites" date="1264210818"]seem to have it working now steps I took create a new project folder & database copy codeigniter to the new folder copy backendpro to the new folder run the install copy existing project files to the new folder copy existing database tables to the new database unsure why it wouldn't take when I was trying to install to an existing project, once again thank you for the effort put into this app[/quote] I have not tested installing it over a current project, glad you got it working.
[eluser]amites[/eluser]
yeah the one step I forgot to mention was pulling out MELD and copying changes over line by line, made an archive of the directories that weren't working, I'll run a compare against them once I wrap up this project and let you know what is different
[eluser]shinokada[/eluser]
Manual here says that there are three defaults groups, SITE, PUBLIC and ADMIN. I have two different styles of website are running in front-end. www.mywebsite.com and www.mywebsite.com/othercontroller and they have different styles. How can I create another group, let's say SHOP. Can I just make like this? Code: $config['asset_group']['SHOP'] = 'whatever|needed|put|here'; How can I call this in config? I suppose call it in a controller, don't I? Am I on a right truck? Any advices will be appreciated. Thanks in advance.
[eluser]adamp1[/eluser]
Just add another array value. Code: $config['asset_group']['SHOP'] = 'stylesheet';
[eluser]adamp1[/eluser]
Just call in your controller Code: $this->bep_assets->load_asset_group('SHOP');
[eluser]shinokada[/eluser]
auth.php, function login()has the following. Code: $this->auth_form_processing->login_form($this->_container); Now I need to pass navlist, so I added $data. But it still gives an error. "Undefined variable: navlist" Code: $data['navlist'] = $this->MCats->getCategoriesNav(); What am I doing wrong here? How can I pass $data? I thought I can do like this. Code: $this->load->view($this->_container,$data);
[eluser]adamp1[/eluser]
[quote author="shinokada" date="1264464197"]auth.php, function login()has the following. Code: $this->auth_form_processing->login_form($this->_container); Now I need to pass navlist, so I added $data. But it still gives an error. "Undefined variable: navlist" Code: $data['navlist'] = $this->MCats->getCategoriesNav(); What am I doing wrong here? How can I pass $data? I thought I can do like this. Code: $this->load->view($this->_container,$data); You can but $this->load->view and this $this->auth_form_processing->login_form, are two totally different methods (The fact they are in different classes and have different name is a hint). You can't just strap something on an expect it to work. You will have to extend the login_form method to take the new parameter and then pass this onto its view.
[eluser]shinokada[/eluser]
Thanks Adam, I need to access to user id. My previous app used Session, Code: $data['user_id']=$_SESSION['userid']; to access to user id. What is the best way to access user id in BeP?
[eluser]adamp1[/eluser]
[quote author="adamp1" date="1259726731"]Sorry that's the new design. The old one saves each field to a separate userdata value. So for example: Code: $this->session->userdata('id'); Sadly it wasn't designed as well.[/quote] |
Welcome Guest, Not a member yet? Register Sign In |