Welcome Guest, Not a member yet? Register   Sign In
Create Presenters like Jamie Rumbelow's book

Hi, I'd like some help please. I have read Jamie Rumbelow's "CodeIgniter Handbook" about Presenters
and I'm trying to show them on action.

I have created the Presenter class inside my application/presenter/presenter.php and auto-loaded through the config file.

My question is how can I pass through the presenter something like this below in order to work correct?

$this->data['post'] = (isset($id)) ? $this->post_model->get_by_id($id) : $this->post_model->init();

Theme © iAndrew 2016 - Forum software by © MyBB