bhu1st / php-practice

Php Practice Sinppets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

for CI 2 and PyrosCMS v1.2

mrFingerlos opened this issue · comments

To make this code work on the latest version of pyroCMS (today v1.2) you need to:

Make the following changes in your model to make it work in Codeigniter 2.0.

Change

class Category_model extends Model {
....................
}

TO

class Category_model extends CI_Model {
....................
}

——————————-

Also Change

function _construct()
{
// Call the Model constructor
parent::Model();
}

TO

function _construct()
{
// Call the Model constructor
parent::_construct();
}

Check this entries: http://codeigniter.com/forums/viewthread/159834/#769301

And also you need to change the details.xml into a PHP file following these specifications:
http://pyrocms.com/docs/manuals/developers/creating-custom-modules

Will fix this once I sort out some free time.
I am thinking to re-write the blog post for pyro module for v1.2

thanks