{"id":15318960,"url":"https://github.com/appleboy/codeigniter-template","last_synced_at":"2025-07-06T06:41:12.971Z","repository":{"id":2311594,"uuid":"3271262","full_name":"appleboy/CodeIgniter-Template","owner":"appleboy","description":"A Lightweight Codeigniter Template Libray","archived":false,"fork":false,"pushed_at":"2015-10-17T04:59:55.000Z","size":240,"stargazers_count":21,"open_issues_count":1,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-10T08:31:34.887Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appleboy.png","metadata":{"files":{"readme":"README.mkd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-26T04:33:20.000Z","updated_at":"2021-05-02T14:39:39.000Z","dependencies_parsed_at":"2022-09-05T14:50:40.240Z","dependency_job_id":null,"html_url":"https://github.com/appleboy/CodeIgniter-Template","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2FCodeIgniter-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2FCodeIgniter-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2FCodeIgniter-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2FCodeIgniter-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appleboy","download_url":"https://codeload.github.com/appleboy/CodeIgniter-Template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248993441,"owners_count":21195198,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T09:02:54.737Z","updated_at":"2025-04-15T02:28:43.456Z","avatar_url":"https://github.com/appleboy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Requirements\n\n* CodeIgniter 2.0.0+\n* PHP 5.2.0+\n\n# Install via sparks\n\n    $ php tools/spark install -v1.0.4 codeigniter-template\n\n# Usage\n\ncopy file into correct directory.\n\n    $ cp config/template.php application/config/\n    $ cp libraries/template.php application/libraries/\n\nyou can reference layout example file (template/layout.php)\n\nSet default template layout and put layout file into `application/views` directory\n\n    $config['template_layout'] = 'template/layout';\n\nInitialize template library\n\n    $this-\u003eload-\u003elibrary(\"template\");\n\nadd css path\n\n    $this-\u003etemplate-\u003eadd_css(\"http://xxxx/index.js\", \"screen\");\n\nadd javascript path(put the file on bottom if the second parameter is set true, default is false)\n\n    $this-\u003etemplate-\u003eadd_js(\"/asset/js/index.js\", TRUE);\n\nadd meta tag\n\n    $this-\u003etemplate-\u003eadd_meta_tag(\"og:title\", \"Test Title\", 'property');\n    // it will output\n    \u003cmeta property=\"og:title\" content=\"Test Title\" /\u003e\n    $this-\u003etemplate-\u003eadd_meta_tag(\"keywords\", \"some keywords\");\n    // it will output\n    \u003cmeta name=\"keywords\" content=\"some keywords\" /\u003e\n\nadd title segment\n\n    $this-\u003etemplate-\u003eadd_title_segment(\"test\");\n    // it render output\n    \u003ctitle\u003etest | your site title\u003c/title\u003e\n\nrender output (return output data if the second parameter is set true)\n\n    $this-\u003etemplate-\u003erender(\"index\");\n\n\n# Copyright\n\nCopyright (C) 2014 Bo-Yi Wu ( appleboy AT gmail.com )\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fcodeigniter-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappleboy%2Fcodeigniter-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fcodeigniter-template/lists"}