Login    Register

fix for admin controller

Doptor Development related discuss here.
  • Author
    Message

fix for admin controller

Postby Bielco » Sat Apr 19, 2014 9:08 pm

Hi Andrew, here a fix for the admincontroller in admin dir.

For initialisation of properties you cannot use expressions, so a fix for that would be this...

<?php namespace Admin;
/*
=================================================
CMS Name : DOPTOR
CMS Version : v1.2
Available at : www.doptor.org
Copyright : Copyright (coffee) 2011 - 2014 Doptor. All rights reserved.
License : GNU/GPL, visit LICENSE.txt
Description : Doptor is Opensource CMS.
===================================================
*/
class AdminController extends \BaseController {

protected $user;
protected $layout;

/**
* The layout that should be used for responses.
*/
public function __construct()
{
$this->layout = 'admin.'.$this->current_theme.'._layouts._layout';
}

}
Wordpress - Laravel - Doptor CMS Hosting at webdesignbyorder.com
User avatar
Bielco
 
Posts: 24
Joined: Sat Apr 19, 2014 8:37 pm
Location: The Netherlands

Re: fix for admin controller

Postby admin » Tue Oct 28, 2014 12:13 am

fixed.
User avatar
admin
Site Admin
 
Posts: 20
Joined: Tue Apr 15, 2014 1:39 pm

Return to Doptor Development Forums

Who is online

Users browsing this forum: No registered users and 0 guests

cron