<?php
trait Foo {
private static $conf;
public static function config($a) {
static::$conf = $a;
}
}
class Bar {
use Foo {
config as protected _config;
}
public static function config($a) {
static::_config($a);
}
}
Bar::config(['a']);
Results in this error:
*Fatal error*: Call to undefined method Bar::_config() in
*/home/farsight/public_html/cake3/webroot/index.php* on line *19*
PHP Version 5.4.41
CPanel Server
On Sunday, June 28, 2015 at 7:52:59 PM UTC-4, Eric Haskins wrote:
>
> Hey All
>
> So Im trying to get version 3 running. Aside from not liking the composer
> BS Im having a issue with initial install and setup. I get it running at
> http://cake3.farsightedmedia.com on the initial setup and works fine as
> soon as I change the DB credentials
>
> //'port' => 'nonstandard_port_number',
> 'username' => 'my_app',
> 'password' => 'secret',
> 'database' => 'my_app',
> 'encoding' => 'utf8',
> 'timezone' => 'UTC',
> 'cacheMetadata' => true,
>
> To actual working credentials I am presented with these errors and they
> dont go away even if I rollback the changes
>
>
> *Fatal error*: Call to undefined method
> Cake\Datasource\ConnectionManager::_config() in
> */home/farsight/public_html/cake3/vendor/cakephp/cakephp/src/Datasource/ConnectionManager.php*
> on
> line *80*
>
> *Fatal error*: Call to undefined method Cake\View\StringTemplate::get()
> in
> */home/farsight/public_html/cake3/vendor/cakephp/cakephp/src/View/StringTemplate.php*
> on
> line *176*
>
> I have many apps I would like to start porting over to version 3 ........
> Ny servers are all CPanel Suphp
>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.