Jump to content

Search the Community

Showing results for tags 'meaning'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. I am a learner of php. So i just joined with you. I need help to understand the php code. I have seen a php file. where has a line of code was $CI =& get_instance() so Please explane me the line of code. Full code of the file given bellow ------------------------------------------------------------------------------------- if (!defined('BASEPATH')) exit('No direct script access allowed');require_once(FUEL_PATH.'models/base_module_model.php');class Courses_model extends Base_module_model { public $record_class = 'Course'; public $required = array( 'title' => 'Please fill out the course name', 'slug' => 'Slug cannot be empty', ); function __construct() { $CI =& get_instance(); $this->config->module_load(COURSE_FOLDER, COURSE_FOLDER); $this->_tables = $CI->config->item('tables'); parent::__construct($this->_tables['courses']); $this->load->module_model(COURSE_FOLDER, 'lessons_model'); } function list_items($limit = NULL, $offset = NULL, $col = 'title', $order = 'asc') { $data = parent::list_items($limit, $offset, $col, $order); return $data; } function form_fields($values = array()) { $fields = parent::form_fields($values); unset($fields['created_at']); return $fields; } function get_courses($where = array(), $order_by ='title', $limit = NULL, $offset = NULL, $return_method = NULL, $assoc_key = NULL) { $courses = $this->db->get($this->_tables['courses'])->result_array(); if($courses) { foreach($courses as &$course) { $course['lessons'] = $this->db->where(array('course_id' => $course['id']))->get($this->_tables['lessons'])->result_array(); if(is_array($course['lessons'])) { foreach ($course['lessons'] as $key => &$lesson) { $lesson['articles_count'] = $this->db->where(array('lesson_id' => $lesson['id']))->get($this->_tables['articles'])->num_rows(); } } } } return $courses; }}class Course_model extends Base_module_record { private $_tables; function on_init() { $this->_tables = $this->_CI->config->item('tables'); }}
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.