3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Controller used to manage specificites * * Generated using AdminGen, Copyright Conception Focus 2012 * @author korri */ class Specificites extends CI_Controller { public function __construct() { parent::__construct(); requireRight('gestion_' . 'specificites'); } /** * List all specificites * @return null */ public function index() { $specificites = new Specificite(); $data['specificites'] = $specificites->get_iterated(); $this->smartyparser->parse('specificites/listing.tpl', $data); } /** * Internal, used by add and edit to render edition form * * @param Specificite|boolean $specificite Currently edited specificite * * @return null */ public function _edit($specificite = false) { if (!$specificite) { $specificite = new Specificite(); } $data['specificite'] = $specificite; $this->smartyparser->parse('specificites/edit.tpl', $data); } /** * Edit an existing specificite * * @param int $id Id of the edited specificite * * @return null */ public function edit($id) { $specificite = new Specificite($id); if (!$specificite->exists()) { show_404(); } $this->_edit($specificite); } /** * Add a specificite * @return null */ public function add() { $this->_edit(); } /** * Post page, used to receive data from the form */ public function post() { if (!$this->input->post()) { show_404(); } if ($this->input->post('id')) { $specificite = new Specificite((int)$this->input->post('id')); if (!$specificite->exists()) { show_404(); } } else { $specificite = new Specificite(); } $post = $this->input->post(); $specificite->from_array($post); if ($specificite->save()) { $this->session->set_flashdata('success', 'Le/La specificite à bien été enregistré(e).'); redirect('specificites'); } $this->_edit($specificite); } public function delete($id) { $specificite = new Specificite($id); if (!$specificite->exists()) { show_404(); } else { $specificite->delete(); $this->session->set_flashdata('success', 'Le/La specificite à bien été supprimé'); } redirect('specificites'); } }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "CI_Controller" not found in /in/Of7XB:9 Stack trace: #0 {main} thrown in /in/Of7XB on line 9
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
41.21 ms | 401 KiB | 8 Q