BaseController
Constructor (__construct)
__construct)<?php
public function __construct() {
// Common initializations for all controllers
// Example: load helpers, libraries, check session, etc.
}data()
data()<?php
public function data($key, $value = null) {}render()
render()json()
json()success()
success()error()
error()get_success()
get_success()get_error()
get_error()Example
Last updated
Was this helpful?