Yii Framework Forum: Yii1 + 2 Combined Class CDataColumn.php not loading - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii1 + 2 Combined Class CDataColumn.php not loading

#1 User is offline   aNightOne 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 04-May 12

Posted 29 September 2016 - 08:05 AM

I have a large existing Yii 1 app. I have integrated Yii2 into the app as per the guide for creating a custom combined Yii class. 99% of stuff seems to be working except that I keep getting a:
include(CDataColumn.php): failed to open stream: No such file or directory

error in a grid view display.

The trace is:
#0 /Users/Stephen/Sites/yii/framework/YiiBase.php(432): include()
#1 unknown(0): autoload()
#2 /Users/Stephen/Sites/yii/framework/zii/widgets/grid/CGridView.php(413): spl_autoload_call()
#3 /Users/Stephen/Sites/yii/framework/zii/widgets/grid/CGridView.php(383): CGridView->createDataColumn()
#4 /Users/Stephen/Sites/yii/framework/zii/widgets/grid/CGridView.php(359): CGridView->initColumns()
#5 /Users/Stephen/Sites/yii/framework/web/CBaseController.php(147): CGridView->init()
#6 /Users/Stephen/Sites/yii/framework/web/CBaseController.php(180): UserController->createWidget()


There is no change to the Zii/widgets/grid/ folder. Both CGridView.php and CDataColumn.php are present and in the same folder but it doesn't seem to be autoloading the CDataColumn yet it knows about the CGridView.php

I have verified that CGridView.php still starts with:
<?php
/**
 * CGridView class file.
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @link http://www.yiiframework.com/
 * @copyright 2008-2013 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

Yii::import('zii.widgets.CBaseListView');
Yii::import('zii.widgets.grid.CDataColumn');
Yii::import('zii.widgets.grid.CLinkColumn');
Yii::import('zii.widgets.grid.CButtonColumn');
Yii::import('zii.widgets.grid.CCheckBoxColumn');

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users