mirror of
https://github.com/bcit-ci/CodeIgniter.git
synced 2025-02-20 11:13:29 +08:00
replacing some old bbcode en masse
parent
d6c08bde9f
commit
accc872d12
@ -3,275 +3,275 @@
|
||||
### Projects using CodeIgniter (source code available)
|
||||
|
||||
|
||||
[b][url=http://www.pyrocms.com/]PyroCMS[/url][/b]
|
||||
**[url=http://www.pyrocms.com/]PyroCMS[/url]**
|
||||
PyroCMS is the CMS built for everyone: your clients, your designer and you - the developer. Built by some of the same people who maintain CodeIgniter, PyroCMS is always using the latest and greatest CodeIgniter features - even ones you don't know about yet.
|
||||
|
||||
[b][url=http://cibonfire.com]Bonfire[/url][/b]
|
||||
**[url=http://cibonfire.com]Bonfire[/url]**
|
||||
Kickstart your web apps with this powerful, flexible app framework built on top of CI 2. Provides auth, user management, admin area, email queue, system events, modules, HMVC, database backup, mirations, and more.
|
||||
|
||||
[b][url=http://blazeeboy.github.com/Codeigniter-Egypt/]Egypt CMS[/url][/b]
|
||||
**[url=http://blazeeboy.github.com/Codeigniter-Egypt/]Egypt CMS[/url]**
|
||||
An easy to use base for designers with a default auth system, database and more.
|
||||
|
||||
[b][url=http://www.bambooinvoice.org/]BambooInvoice[/url][/b]
|
||||
**[url=http://www.bambooinvoice.org/]BambooInvoice[/url]**
|
||||
|
||||
[b][url=http://classroombookings.com/]Classroombookings[/url][/b]
|
||||
**[url=http://classroombookings.com/]Classroombookings[/url]**
|
||||
Room booking system for schools.
|
||||
|
||||
[b][url=http://myfina.ridinglinux.org/]MyFina[/url][/b]
|
||||
**[url=http://myfina.ridinglinux.org/]MyFina[/url]**
|
||||
Web-based personal financial management system.
|
||||
|
||||
[b][url=http://www.ionizecms.com]Ionize CMS[/url][/b]
|
||||
**[url=http://www.ionizecms.com]Ionize CMS[/url]**
|
||||
Ionize is a Content Management System base on CodeIgniter. Easy, powerful and modular, Ionize is build by webdesigners for webdesigners. url="http://demo.ionizecms.com"]Demo of Ionize[/url]
|
||||
|
||||
[b][url=http://68kb.com]68 Knowledge Base[/url][/b]
|
||||
**[url=http://68kb.com]68 Knowledge Base[/url]**
|
||||
68KB is a knowledge base script. It was built with the site owner in mind and to be as simple to work with as possible.
|
||||
|
||||
[b][url=http://www.assembla.com/wiki/show/linkster]Linkster, PHP Link Directory[/url][/b]
|
||||
**[url=http://www.assembla.com/wiki/show/linkster]Linkster, PHP Link Directory[/url]**
|
||||
Growing out of a need for simple categorical organization, Linkster aims to be the simple solution. Specifically built for link directories, such as a collection of your business partners. [url=http://demo.codeigniterdirectory.com/]Demo available here[/url].
|
||||
|
||||
[b][url=http://max-3000.com/]MaxSite CMS[/url][/b]
|
||||
**[url=http://max-3000.com/]MaxSite CMS[/url]**
|
||||
WordPress-like blog CMS. In heavy development. Documentation is in Russian only for now.
|
||||
[b][url=http://code.google.com/p/planet-ci/]Planet CI[/url][/b]
|
||||
**[url=http://code.google.com/p/planet-ci/]Planet CI[/url]**
|
||||
Planet CI is a Feed/RSS agregator reader using PHP. Its similar to [url=http://www.planetplanet.org/]planetplanet[/url] but its on perl langguage. Planet CI using codeigniter and simple pie. you can se the demo at [url=http://planet.ilkom.org/]planet.ilkom.org[/url].
|
||||
|
||||
[b][url=http://myclientbase.com/]MyClientBase[/url][/b]
|
||||
**[url=http://myclientbase.com/]MyClientBase[/url]**
|
||||
Invoice management.
|
||||
|
||||
[b][url=http://www.getfuelcms.com]FUEL CMS[/url][/b]
|
||||
**[url=http://www.getfuelcms.com]FUEL CMS[/url]**
|
||||
An easy, flexible, empowering Content Management System for rapid development that transforms your CodeIgniter projects into client manageable brilliance.
|
||||
|
||||
[b][url=http://codefight.org]CODEFIGHT CMS[/url][/b]
|
||||
**[url=http://codefight.org]CODEFIGHT CMS[/url]**
|
||||
Simple multiple website manager.
|
||||
|
||||
### Projects using Code Igniter
|
||||
|
||||
|
||||
[b][url=http://www.thephpcode.com/]PHP Code Generator[/url][/b]
|
||||
**[url=http://www.thephpcode.com/]PHP Code Generator[/url]**
|
||||
The PHP Code generator generates PHP code for using with Codeigniter framework. The generator itself powered by Codeigniter.
|
||||
|
||||
[b][url=http://www.pliantcms.com/]PliantCMS[/url][/b]
|
||||
**[url=http://www.pliantcms.com/]PliantCMS[/url]**
|
||||
Themeable, dynamic, seo optimized CMS for codeigniter designers, content manager and seo specialist.
|
||||
|
||||
[b][url=http://osmek.com]Osmek[/url][/b] A new kind of CMS, built in the cloud so your content is available where and how you need it. It's a beautiful interface for creating content, and a powerful set of APIs for retrieving it.
|
||||
**[url=http://osmek.com]Osmek[/url]** A new kind of CMS, built in the cloud so your content is available where and how you need it. It's a beautiful interface for creating content, and a powerful set of APIs for retrieving it.
|
||||
|
||||
[b][url=http://www.escrowizard.com]EscroWizard[/url][/b] Escrow and Title Insurance quote issuing system, intended for small to medium sized escrow companies and title companies.
|
||||
**[url=http://www.escrowizard.com]EscroWizard[/url]** Escrow and Title Insurance quote issuing system, intended for small to medium sized escrow companies and title companies.
|
||||
|
||||
[b][url=http://www.timecamp.com]TimeCamp[/url][/b] Automatic time-tracking software, that tracks projects, websites and applications usage, users' productivity and helps understand how the time is spend.
|
||||
**[url=http://www.timecamp.com]TimeCamp[/url]** Automatic time-tracking software, that tracks projects, websites and applications usage, users' productivity and helps understand how the time is spend.
|
||||
|
||||
[b][url=http://www.visikid.com]Visikid[/url][/b] Parental control application. Visikid is taking the educative role in regards to your child’s safety on the internet.
|
||||
**[url=http://www.visikid.com]Visikid[/url]** Parental control application. Visikid is taking the educative role in regards to your child’s safety on the internet.
|
||||
|
||||
[b][url=http://narien.com]Narien Teas[/url][/b] Online Tea Store built with CI. Site features shopping cart, blog, reward points, coupon system, affiliate and referrals, ebay integration, keyword tracking, mailing list, pdf invoices, product label creation, etc.
|
||||
**[url=http://narien.com]Narien Teas[/url]** Online Tea Store built with CI. Site features shopping cart, blog, reward points, coupon system, affiliate and referrals, ebay integration, keyword tracking, mailing list, pdf invoices, product label creation, etc.
|
||||
|
||||
[b][url=http://linkfuu.com/]LinkFuu[/url][/b] is a URL management tool for webmasters. CI is used along side JQuery with great effect.
|
||||
**[url=http://linkfuu.com/]LinkFuu[/url]** is a URL management tool for webmasters. CI is used along side JQuery with great effect.
|
||||
|
||||
[b][url=http://www.wittygraphy.com]Wittygraphy[/url][/b] is a social network dedicated to caricaturists and caricature lovers. It's a place to share, discuss, and promote the art of caricature. Caricaturists get free webspace to build their homepage, get listed in our directory, publish their portfolios to promote their artwork. In addition Wittygraphy is also a marketplace helping artists to sell their services.
|
||||
**[url=http://www.wittygraphy.com]Wittygraphy[/url]** is a social network dedicated to caricaturists and caricature lovers. It's a place to share, discuss, and promote the art of caricature. Caricaturists get free webspace to build their homepage, get listed in our directory, publish their portfolios to promote their artwork. In addition Wittygraphy is also a marketplace helping artists to sell their services.
|
||||
|
||||
[b][url=http://blogfrog.pl/]BlogFrog[/url][/b] blog aggegate service
|
||||
**[url=http://blogfrog.pl/]BlogFrog[/url]** blog aggegate service
|
||||
|
||||
[b][url=https://www.mindzinger.com/]MindZinger[/url][/b] is mainly a question-answer site for students and tutors. Also it has a section that is pretty similar to hotornot.com, and a forum (based on phpbb2), etc. Registration is free. All created on top of a plain code igniter installation by [url=http://www.pengekcs.com]www.pengekcs.com[/url] - you can reach me on yahoo at pengekcs [at] yahoo [dot] com
|
||||
**[url=https://www.mindzinger.com/]MindZinger[/url]** is mainly a question-answer site for students and tutors. Also it has a section that is pretty similar to hotornot.com, and a forum (based on phpbb2), etc. Registration is free. All created on top of a plain code igniter installation by [url=http://www.pengekcs.com]www.pengekcs.com[/url] - you can reach me on yahoo at pengekcs [at] yahoo [dot] com
|
||||
|
||||
[b][url=http://www.bambooinvoice.org/]BambooInvoice[/url][/b] is free open-source invoicing software intended for small businesses and independent contractors. [i]code is available[/i] Also see this [url=http://www.codeigniter.com/forums/viewthread/705/]forum thread[/url].
|
||||
**[url=http://www.bambooinvoice.org/]BambooInvoice[/url]** is free open-source invoicing software intended for small businesses and independent contractors. [i]code is available[/i] Also see this [url=http://www.codeigniter.com/forums/viewthread/705/]forum thread[/url].
|
||||
|
||||
[b][url=http://www.motortopia.com/]Motortopia[/url][/b]. A motor enthusiast social networking site focused on peoples passion for motor vehicles. Site features Web 2.0 interface, cross-browser compatability, degradability, accessability and web standards compliance.
|
||||
**[url=http://www.motortopia.com/]Motortopia[/url]**. A motor enthusiast social networking site focused on peoples passion for motor vehicles. Site features Web 2.0 interface, cross-browser compatability, degradability, accessability and web standards compliance.
|
||||
|
||||
[b][url=http://www.todlaciebie.pl/]ToDlaCiebie.pl[/url][/b] - website built entirely with CI, collects best gift ideas from Polish e-shops ('to dla ciebie' means 'this is for you').
|
||||
**[url=http://www.todlaciebie.pl/]ToDlaCiebie.pl[/url]** - website built entirely with CI, collects best gift ideas from Polish e-shops ('to dla ciebie' means 'this is for you').
|
||||
|
||||
[b][url=http://www.nuherbs.com/]Nuherbs.com[/url][/b] - Chinese herbs and medicine site built in CI. Has product ordering and full account access.
|
||||
**[url=http://www.nuherbs.com/]Nuherbs.com[/url]** - Chinese herbs and medicine site built in CI. Has product ordering and full account access.
|
||||
|
||||
[b][url=http://peterbaker.net/]PeterBaker.net[/url][/b] - Portfolio for the photographer, built in CI and using jquery for some effects.
|
||||
**[url=http://peterbaker.net/]PeterBaker.net[/url]** - Portfolio for the photographer, built in CI and using jquery for some effects.
|
||||
|
||||
[b][url=http://freestuffwave.com]FreeStuffWave[/url][/b] A community freebie site built using the latest released CI version.
|
||||
**[url=http://freestuffwave.com]FreeStuffWave[/url]** A community freebie site built using the latest released CI version.
|
||||
|
||||
[b][url=http://www.snowshoeconditions.com/]Snowshoe Conditions[/url][/b] - A site for people to check back-country snow conditions before heading out for the day, everything is user-submitted.
|
||||
**[url=http://www.snowshoeconditions.com/]Snowshoe Conditions[/url]** - A site for people to check back-country snow conditions before heading out for the day, everything is user-submitted.
|
||||
|
||||
[b][url=http://www.creatieve-cursussen.nl]Creatieve-Cursussen.nl[/url][/b] - Dutch website listing creative courses. Also uses Jquery and a google maps api class.
|
||||
**[url=http://www.creatieve-cursussen.nl]Creatieve-Cursussen.nl[/url]** - Dutch website listing creative courses. Also uses Jquery and a google maps api class.
|
||||
|
||||
[b][url=http://britcaster.com]BritCaster.com[/url][/b] - An aggregator and hub for podcasts - UK focused. Generates aggregated RSS feeds for serialised content and a unique custom keyword RSS creator (FeedMe!).
|
||||
**[url=http://britcaster.com]BritCaster.com[/url]** - An aggregator and hub for podcasts - UK focused. Generates aggregated RSS feeds for serialised content and a unique custom keyword RSS creator (FeedMe!).
|
||||
|
||||
[b][url=http://www.sign-up-sheet.com]Sign-Up-Sheet[/url][/b] - Super simple web based sign-up-sheet program.
|
||||
**[url=http://www.sign-up-sheet.com]Sign-Up-Sheet[/url]** - Super simple web based sign-up-sheet program.
|
||||
|
||||
[b][url=http://www.badgetracker.com]BadgeTracker[/url][/b] - A web app, built using CI, that handles activity registration and camp management for summer camps.
|
||||
**[url=http://www.badgetracker.com]BadgeTracker[/url]** - A web app, built using CI, that handles activity registration and camp management for summer camps.
|
||||
|
||||
[b][url=http://classroombookings.com/]Classroombookings[/url][/b]. An open-source easy to use web-based room booking system for schools.
|
||||
**[url=http://classroombookings.com/]Classroombookings[/url]**. An open-source easy to use web-based room booking system for schools.
|
||||
|
||||
[b][url=http://www.zoekipedia.nl/]Zoekipedia[/url][/b]. Dutch Wikipedia searchengine. build in CI 1.5.2 Project from Auke Jongbloed and under constant development.
|
||||
**[url=http://www.zoekipedia.nl/]Zoekipedia[/url]**. Dutch Wikipedia searchengine. build in CI 1.5.2 Project from Auke Jongbloed and under constant development.
|
||||
|
||||
[b][url=http://www.webacana.com.br/]Webacana[/url][/b]. Brazilian movie rental service (like Netflix). build in CI 1.5.1 Project from Jesse Jr and under constant development too.
|
||||
**[url=http://www.webacana.com.br/]Webacana[/url]**. Brazilian movie rental service (like Netflix). build in CI 1.5.1 Project from Jesse Jr and under constant development too.
|
||||
|
||||
[b][url=http://www.morechevrolet.com/]More Chevrolet[/url][/b]. Auto dealer site build completely with Code Igniter, with full administrative and CMS.
|
||||
**[url=http://www.morechevrolet.com/]More Chevrolet[/url]**. Auto dealer site build completely with Code Igniter, with full administrative and CMS.
|
||||
|
||||
[b][url=http://www.reggaeplanet.pl/]Reggae Planet[/url][/b], [b][url=http://www.metaltown.pl/]Metal Town[/url][/b], [b][url=http://www.punkspace.pl/]Punk Space[/url][/b]. Polish e-shops for reggae, metal and punk music fans.
|
||||
**[url=http://www.reggaeplanet.pl/]Reggae Planet[/url]**, **[url=http://www.metaltown.pl/]Metal Town[/url]**, **[url=http://www.punkspace.pl/]Punk Space[/url]**. Polish e-shops for reggae, metal and punk music fans.
|
||||
|
||||
[b][url=http://www.gayticketshop.nl/]Gayticketshop.nl[/url][/b] - Dutch webshop for ordering tickets for (gay) parties and events. Built and maintained in latest CI version.
|
||||
**[url=http://www.gayticketshop.nl/]Gayticketshop.nl[/url]** - Dutch webshop for ordering tickets for (gay) parties and events. Built and maintained in latest CI version.
|
||||
|
||||
[b][url=http://www.solid.lt/]Solid.lt[/url][/b]. Lithuanian hosting provider.
|
||||
**[url=http://www.solid.lt/]Solid.lt[/url]**. Lithuanian hosting provider.
|
||||
|
||||
[b][url=http://www.webhostninja.com/]WebHostNinja.com[/url][/b]. Price and feature comparison for web hosting.
|
||||
**[url=http://www.webhostninja.com/]WebHostNinja.com[/url]**. Price and feature comparison for web hosting.
|
||||
|
||||
[b][url=http://d.sumy.ua/mng/]Music News Generator[/url][/b] - lets you generate music release news code (BB-Code, XHTML code and any other) for blogs, forums etc. using data recieved from [url=http://www.discogs.com/]Discogs[/url] and [url=http://www.last.fm/]Last.fm[/url] music community sites.
|
||||
**[url=http://d.sumy.ua/mng/]Music News Generator[/url]** - lets you generate music release news code (BB-Code, XHTML code and any other) for blogs, forums etc. using data recieved from [url=http://www.discogs.com/]Discogs[/url] and [url=http://www.last.fm/]Last.fm[/url] music community sites.
|
||||
|
||||
[b][url=http://randomtextgenerator.com/]Random Text Generator[/url][/b] An online tool for generating random text to use in web pages designs, site templates and typography demos. Plain text or HTML output.
|
||||
**[url=http://randomtextgenerator.com/]Random Text Generator[/url]** An online tool for generating random text to use in web pages designs, site templates and typography demos. Plain text or HTML output.
|
||||
|
||||
[b][url=http://www.mediaroost.com/]TweetRoost[/url][/b]
|
||||
**[url=http://www.mediaroost.com/]TweetRoost[/url]**
|
||||
TweetRoost helps individuals and groups efficiently monitor, assign, categorize, save and analyze tweets from one or multiple Twitter accounts.
|
||||
|
||||
[b][url=http://www.lankamatters.com/]Lanka Matters[/url][/b]
|
||||
**[url=http://www.lankamatters.com/]Lanka Matters[/url]**
|
||||
Lanka matters is a real estate completely free website offers to deal with property dealings in Sri Lanka.
|
||||
|
||||
[b][url=http://www.athensmenu.gr/]AthensMenu[/url][/b]
|
||||
**[url=http://www.athensmenu.gr/]AthensMenu[/url]**
|
||||
A website with reviews about restaurants in Athens, Greece.
|
||||
|
||||
### Work-in-progress projects using Code Igniter
|
||||
|
||||
|
||||
[b][url=http://lumberjackapp.com/]Lumberjack App[/url][/b] - A remote logging server which allows web apps to transmit logs for tracking and analyzing.
|
||||
**[url=http://lumberjackapp.com/]Lumberjack App[/url]** - A remote logging server which allows web apps to transmit logs for tracking and analyzing.
|
||||
|
||||
[b][url=http://cornnery.kelio.org/]morel cornnery[/url][/b]. a project Meeting site based on CI 1.5.4 from dakar senegal .
|
||||
**[url=http://cornnery.kelio.org/]morel cornnery[/url]**. a project Meeting site based on CI 1.5.4 from dakar senegal .
|
||||
|
||||
[b][url=http://franchisebean.com/]Franchise Bean[/url][/b]. An online resource for franchise companies that allows to set up profiles and generate leads.
|
||||
**[url=http://franchisebean.com/]Franchise Bean[/url]**. An online resource for franchise companies that allows to set up profiles and generate leads.
|
||||
|
||||
[b][url=http://www.digital-design.it/]Digital Design[/url][/b] a website built on CI 1.4.1, jquery js/ajax library and some google api flavour. Still under construction. They plan to release the source when they are done.
|
||||
**[url=http://www.digital-design.it/]Digital Design[/url]** a website built on CI 1.4.1, jquery js/ajax library and some google api flavour. Still under construction. They plan to release the source when they are done.
|
||||
|
||||
[b][url=http://www.interlinkairlines.com/]Interlink Airlines[/url][/b] Still under construction, due for release soon. Complete rewrite of Airline booking system + admin facility + major features upgrade.
|
||||
**[url=http://www.interlinkairlines.com/]Interlink Airlines[/url]** Still under construction, due for release soon. Complete rewrite of Airline booking system + admin facility + major features upgrade.
|
||||
|
||||
[b][url=http://www.granitiworld.com/]GranitiWorld[/url][/b] - Just a personal site about Graniti, Italy.
|
||||
**[url=http://www.granitiworld.com/]GranitiWorld[/url]** - Just a personal site about Graniti, Italy.
|
||||
|
||||
[b][url=http://www.lovetech.net/]Lovetech[/url][/b] - Personal website. Started Dec 06. Heading for commerical cms. Or for charity. Or both. Still practicing, Finland.
|
||||
**[url=http://www.lovetech.net/]Lovetech[/url]** - Personal website. Started Dec 06. Heading for commerical cms. Or for charity. Or both. Still practicing, Finland.
|
||||
|
||||
[b][url=http://3m2.net/sl/vouge/] SLVouge [/url] [/b] - Web Site for an already active Second Life Fashion Magazine. Not yet finished and still in development.
|
||||
**[url=http://3m2.net/sl/vouge/] SLVouge [/url] ** - Web Site for an already active Second Life Fashion Magazine. Not yet finished and still in development.
|
||||
|
||||
[b][url=http://www.overfood.com/] overfood.com [/url] [/b] - The site currently features a restaurant search of the Chefmoz database with restaurants mapped using Google Maps. The search uses xajax for an autocomplete when searching by city. It also uses the mootools accordion effect to switch between search types.
|
||||
**[url=http://www.overfood.com/] overfood.com [/url] ** - The site currently features a restaurant search of the Chefmoz database with restaurants mapped using Google Maps. The search uses xajax for an autocomplete when searching by city. It also uses the mootools accordion effect to switch between search types.
|
||||
|
||||
[b][url=http://www.mobilu.lt/]Mobilu.lt[/url][/b]. Lithuanian site. It's cell phones classifieds system. Built on CI 1.5.3. Uses a little bit of XAJAX library.
|
||||
**[url=http://www.mobilu.lt/]Mobilu.lt[/url]**. Lithuanian site. It's cell phones classifieds system. Built on CI 1.5.3. Uses a little bit of XAJAX library.
|
||||
|
||||
[b][url=http://www.dwi.web.id/]Blog System[/url][/b]. An Indonesian CMS Blog, will release the source when it have done.
|
||||
**[url=http://www.dwi.web.id/]Blog System[/url]**. An Indonesian CMS Blog, will release the source when it have done.
|
||||
|
||||
[b][url=http://www.beezwaxx.com/]Beezwaxx![/url][/b]. Safe, secure, online email app for kids. Currently in closed beta.
|
||||
**[url=http://www.beezwaxx.com/]Beezwaxx![/url]**. Safe, secure, online email app for kids. Currently in closed beta.
|
||||
|
||||
[b][url=http://itemio.de/]itemio[/url][/b]. Social Bookmarking site for products based on CI
|
||||
**[url=http://itemio.de/]itemio[/url]**. Social Bookmarking site for products based on CI
|
||||
|
||||
[b][url=http://ufashion.de/]ufashion[/url][/b]. German Fashion Community using CodeIgniter and JQuery
|
||||
**[url=http://ufashion.de/]ufashion[/url]**. German Fashion Community using CodeIgniter and JQuery
|
||||
|
||||
[b][url=http://gravial.com/]Gravial[/url][/b] - Community oriented content publishing platform. Under development.
|
||||
**[url=http://gravial.com/]Gravial[/url]** - Community oriented content publishing platform. Under development.
|
||||
|
||||
[b][url=http://www.buildtracks.com/]Tracks[/url][/b] - An add-on for Highrise CRM (37signals) that allows users to manage and forecast their sales pipeline. Currently in Alpha. Built and styled with JQuery Mobile for primary use on tablets and smart phones. Works on desktops too. CI version 2.1.0.
|
||||
**[url=http://www.buildtracks.com/]Tracks[/url]** - An add-on for Highrise CRM (37signals) that allows users to manage and forecast their sales pipeline. Currently in Alpha. Built and styled with JQuery Mobile for primary use on tablets and smart phones. Works on desktops too. CI version 2.1.0.
|
||||
|
||||
### Websites using Code Igniter
|
||||
|
||||
|
||||
[b][url=http://www.portaimprese.it]Portaimprese[/url][/b]. Directory site for companies in and around Rome based on CodeIgniter 2.0.
|
||||
**[url=http://www.portaimprese.it]Portaimprese[/url]**. Directory site for companies in and around Rome based on CodeIgniter 2.0.
|
||||
|
||||
[b][url=http://edgetube.com]EdgeTube Cellular[/url][/b]. Online cell phone store based on CodeIgniter 2.0.
|
||||
**[url=http://edgetube.com]EdgeTube Cellular[/url]**. Online cell phone store based on CodeIgniter 2.0.
|
||||
|
||||
[b][url=http://ratemymechanic.us]Rate My Mechanic[/url][/b]. Rate My Mechanic is a website based on helping people find mechanics they can trust based on user ratings and reviews.
|
||||
**[url=http://ratemymechanic.us]Rate My Mechanic[/url]**. Rate My Mechanic is a website based on helping people find mechanics they can trust based on user ratings and reviews.
|
||||
|
||||
[b][url=http://appliedcodingtech.com]Applied Coding Technologies[/url][/b]. Applied Coding Technologies is a company that specializes in printing and coding machinery for industrial use.
|
||||
**[url=http://appliedcodingtech.com]Applied Coding Technologies[/url]**. Applied Coding Technologies is a company that specializes in printing and coding machinery for industrial use.
|
||||
|
||||
[b][url=http://kanji.ligona.org/]Mainichi Kanji[/url][/b] Is a Kanji dictionary based on CI 1.7.2.
|
||||
**[url=http://kanji.ligona.org/]Mainichi Kanji[/url]** Is a Kanji dictionary based on CI 1.7.2.
|
||||
|
||||
[b][url=http://www.bientek.com/]BienTek[/url][/b] is a computer repair business with a contractor job dispatch system written from the ground-up in CI 1.7.2.
|
||||
**[url=http://www.bientek.com/]BienTek[/url]** is a computer repair business with a contractor job dispatch system written from the ground-up in CI 1.7.2.
|
||||
|
||||
[b][url=http://resipiscent.com/]Resipiscent[/url][/b]. San Francisco experimental record label and the record label CMS that powers it, built on CodeIgniter 1.7.2.
|
||||
**[url=http://resipiscent.com/]Resipiscent[/url]**. San Francisco experimental record label and the record label CMS that powers it, built on CodeIgniter 1.7.2.
|
||||
|
||||
[b][url=http://www.blueice.com/]blueice.com[/url][/b]. High-quality mountaneering equipment, ecommerce built on CodeIgniter 1.7.2.
|
||||
**[url=http://www.blueice.com/]blueice.com[/url]**. High-quality mountaneering equipment, ecommerce built on CodeIgniter 1.7.2.
|
||||
|
||||
[b][url=http://allegiancelaw.com/]Allegiance Law[/url][/b]. San Francisco Bay Area personal injury and employment attoryneys, built on CodeIgniter 1.7.2.
|
||||
**[url=http://allegiancelaw.com/]Allegiance Law[/url]**. San Francisco Bay Area personal injury and employment attoryneys, built on CodeIgniter 1.7.2.
|
||||
|
||||
[b][url=http://kazoosoft.eu]KazooSoft.eu[/url][/b]. Website & Software development, Marketing and Twitter promotions
|
||||
**[url=http://kazoosoft.eu]KazooSoft.eu[/url]**. Website & Software development, Marketing and Twitter promotions
|
||||
|
||||
[b][url=http://pulsarcap.com/]Pulsar Capital Limited[/url][/b]. An International Proprietary Trading Firm.
|
||||
**[url=http://pulsarcap.com/]Pulsar Capital Limited[/url]**. An International Proprietary Trading Firm.
|
||||
|
||||
[b][url=http://unggulnews.com/]News Update and Bussines Center - UnggulNews[/url][/b]. An online News website.
|
||||
**[url=http://unggulnews.com/]News Update and Bussines Center - UnggulNews[/url]**. An online News website.
|
||||
|
||||
[b][url=http://site2text.com/]Site2Text.com - 2-Way Site to Text[/url][/b]. A service allowing customers to send you a SMS text message via your site and allowing you to respond like any normal SMS text back to the customer on your site. Chat using just a SMS text message. No gateways fees.
|
||||
**[url=http://site2text.com/]Site2Text.com - 2-Way Site to Text[/url]**. A service allowing customers to send you a SMS text message via your site and allowing you to respond like any normal SMS text back to the customer on your site. Chat using just a SMS text message. No gateways fees.
|
||||
|
||||
[b][url=http://tctransit.mobi/]TCTransit.mobi - Twin Cities Transit: Mobile[/url][/b]. Provide transit data to Twin Cities (Minnesota, USA) commuters in a manner friendly to iPhone and Android devices. Based on CI 1.7.2.
|
||||
**[url=http://tctransit.mobi/]TCTransit.mobi - Twin Cities Transit: Mobile[/url]**. Provide transit data to Twin Cities (Minnesota, USA) commuters in a manner friendly to iPhone and Android devices. Based on CI 1.7.2.
|
||||
|
||||
[b][url=http://panturanews.com/]News Online - PanturaNews[/url][/b]. An online News website.
|
||||
**[url=http://panturanews.com/]News Online - PanturaNews[/url]**. An online News website.
|
||||
|
||||
[b][url=http://ponpesassalafiyah.com/]The Islamic Boarding Schools[/url][/b].Pondok Pesantren Assalafiyah
|
||||
**[url=http://ponpesassalafiyah.com/]The Islamic Boarding Schools[/url]**.Pondok Pesantren Assalafiyah
|
||||
|
||||
[b][url=http://www.unggulresearch.com/]The IT Solution[/url][/b].Unggul Research
|
||||
**[url=http://www.unggulresearch.com/]The IT Solution[/url]**.Unggul Research
|
||||
|
||||
[b][url=http://www.operamage.com]Prodotti Tipici[/url][/b] - Vendita online di prodotti tipici | Italian special alimentar products e-Commerce
|
||||
**[url=http://www.operamage.com]Prodotti Tipici[/url]** - Vendita online di prodotti tipici | Italian special alimentar products e-Commerce
|
||||
|
||||
[b][url=http://bestpartyever.com]Party Ideas and Party Planning[/url][/b] - at bestpartyever.com - CI,1.6.1
|
||||
**[url=http://bestpartyever.com]Party Ideas and Party Planning[/url]** - at bestpartyever.com - CI,1.6.1
|
||||
|
||||
[b][url=http://www.rsciranjang.com]Rumah Sakit Ciranjang[/url][/b] - Ciranjang Hospital Website. Based on CI 1.6
|
||||
**[url=http://www.rsciranjang.com]Rumah Sakit Ciranjang[/url]** - Ciranjang Hospital Website. Based on CI 1.6
|
||||
|
||||
[b][url=http://www.diksphoto.com]Dik's Photography[/url][/b] - Indonesian Photographer Website. Based on CI 1.5
|
||||
**[url=http://www.diksphoto.com]Dik's Photography[/url]** - Indonesian Photographer Website. Based on CI 1.5
|
||||
|
||||
[b][url=http://www.spiceit.co.uk/]SpicY Web+Design[/url][/b] - Website based on CI 1.5
|
||||
**[url=http://www.spiceit.co.uk/]SpicY Web+Design[/url]** - Website based on CI 1.5
|
||||
|
||||
[b][url=http://www.networkartisan.co.uk/]Network Artisan[/url][/b] - UK catering supplier based on CI 1.5.
|
||||
**[url=http://www.networkartisan.co.uk/]Network Artisan[/url]** - UK catering supplier based on CI 1.5.
|
||||
|
||||
[b][url=http://www.422south.com/]422 South[/url][/b] - VFX House website based on CI 1.5
|
||||
**[url=http://www.422south.com/]422 South[/url]** - VFX House website based on CI 1.5
|
||||
|
||||
[b][url=http://www.michel-ange.fr/]Michel-Ange Kuntz - Photo blog[/url][/b] - Built using CI 1.5. Back-office : "Partikule CMS" based on CI 1.5.
|
||||
**[url=http://www.michel-ange.fr/]Michel-Ange Kuntz - Photo blog[/url]** - Built using CI 1.5. Back-office : "Partikule CMS" based on CI 1.5.
|
||||
|
||||
[b][url=http://www.wissamjoubran.com/]Wissam Joubran website[/url][/b] - Wissam Joubran luthier web site. Front-end based on Code Igniter. Back-office : "Partikule CMS" based on Code Igniter.
|
||||
**[url=http://www.wissamjoubran.com/]Wissam Joubran website[/url]** - Wissam Joubran luthier web site. Front-end based on Code Igniter. Back-office : "Partikule CMS" based on Code Igniter.
|
||||
|
||||
[b][url=http://www.sheybal.waw.pl/]Aleksandra Sheybal & Family[/url][/b] - first version of private family website (it's still growing with features - if it's too small - please remove it from list ;-))
|
||||
**[url=http://www.sheybal.waw.pl/]Aleksandra Sheybal & Family[/url]** - first version of private family website (it's still growing with features - if it's too small - please remove it from list ;-))
|
||||
|
||||
[b][url=http://www.tomwelshbuilder.com/]Thomas Welsh Builders, LLC[/url][/b] Built using CI 1.5, has property management backend and more - 100% CI!
|
||||
**[url=http://www.tomwelshbuilder.com/]Thomas Welsh Builders, LLC[/url]** Built using CI 1.5, has property management backend and more - 100% CI!
|
||||
|
||||
[b][url=http://c7.se/]c7 mobile blog[/url][/b] - Personal moblog, updated to Code Igniter over one evening.
|
||||
**[url=http://c7.se/]c7 mobile blog[/url]** - Personal moblog, updated to Code Igniter over one evening.
|
||||
|
||||
[b][url=http://browniethecow.org/]BrownieTheCow.org[/url][/b] - School testing activist web site. All Code Igniter (front and backend) and a bit of jQuery.
|
||||
[b][url=http://wissahickon.patrails.org/]Wissahickon Restoration Volunteers[/url][/b] - Environmental group / member-supported, volunteer-driven nonprofit. All CI.
|
||||
[b][url=http://www.theclientele.co.uk/]www.theclientele.co.uk[/url][/b] - web site for the band 'the clientele' (merge records).
|
||||
**[url=http://browniethecow.org/]BrownieTheCow.org[/url]** - School testing activist web site. All Code Igniter (front and backend) and a bit of jQuery.
|
||||
**[url=http://wissahickon.patrails.org/]Wissahickon Restoration Volunteers[/url]** - Environmental group / member-supported, volunteer-driven nonprofit. All CI.
|
||||
**[url=http://www.theclientele.co.uk/]www.theclientele.co.uk[/url]** - web site for the band 'the clientele' (merge records).
|
||||
|
||||
[b][url=http://pipasforthepeople.com/]pipasforthepeople.com[/url][/b] - band web site. tour dates, blog stuff and the rest of the site all done with CI.
|
||||
**[url=http://pipasforthepeople.com/]pipasforthepeople.com[/url]** - band web site. tour dates, blog stuff and the rest of the site all done with CI.
|
||||
|
||||
[b][url=http://www.pixelsandcode.net/]Pixels and Code, LLC[/url][/b] - Forward-thinking web design and development
|
||||
**[url=http://www.pixelsandcode.net/]Pixels and Code, LLC[/url]** - Forward-thinking web design and development
|
||||
|
||||
[b][url=http://www.systematix.co.uk/]Systematix Computer Training[/url][/b] - UK commercial training website rewritten in CI 1.5.1
|
||||
**[url=http://www.systematix.co.uk/]Systematix Computer Training[/url]** - UK commercial training website rewritten in CI 1.5.1
|
||||
|
||||
[b][url=http://www.jomm.nl/]Jongbloed MultiMedia[/url][/b]. Home of Dutch Freelance webdeveloper Auke Jongbloed. Front and back-end build in CI 1.5.2 using mootools for effects.
|
||||
**[url=http://www.jomm.nl/]Jongbloed MultiMedia[/url]**. Home of Dutch Freelance webdeveloper Auke Jongbloed. Front and back-end build in CI 1.5.2 using mootools for effects.
|
||||
|
||||
[b][url=http://www.club-3d.com/]Club 3D [/url][/b]. Graphics and Multimedia card company. Front and back-end build in CI 1.5.2 extended with Xajax library.
|
||||
**[url=http://www.club-3d.com/]Club 3D [/url]**. Graphics and Multimedia card company. Front and back-end build in CI 1.5.2 extended with Xajax library.
|
||||
|
||||
[b][url=http://www.monpatelin.fr/]MonPatelin.fr[/url][/b]. French website of local classifieds.
|
||||
**[url=http://www.monpatelin.fr/]MonPatelin.fr[/url]**. French website of local classifieds.
|
||||
|
||||
[b][url=http://rmcreative.ru/]RMCreative[/url][/b]. Sam Dark's custom blog written from scratch with CI.
|
||||
**[url=http://rmcreative.ru/]RMCreative[/url]**. Sam Dark's custom blog written from scratch with CI.
|
||||
|
||||
[b][url=http://www.lirikita.com/]Lirikita[/url][/b]. Lyric and video download written from scratch with CI.
|
||||
**[url=http://www.lirikita.com/]Lirikita[/url]**. Lyric and video download written from scratch with CI.
|
||||
|
||||
[b][url=http://www.scholl.com.pl/]Scholl[/url][/b]. Shoes and foot care company - polish version written from scratch with CI.
|
||||
**[url=http://www.scholl.com.pl/]Scholl[/url]**. Shoes and foot care company - polish version written from scratch with CI.
|
||||
|
||||
[b][url=http://www.moyvkus.ru/]MoyVkus.ru[/url][/b]. Food Social Network.
|
||||
**[url=http://www.moyvkus.ru/]MoyVkus.ru[/url]**. Food Social Network.
|
||||
|
||||
[b][url=http://www.drimr.com/]DrimR.com[/url][/b]. Music Social Network
|
||||
**[url=http://www.drimr.com/]DrimR.com[/url]**. Music Social Network
|
||||
|
||||
[b][url=http://www.thebuzz.co.il/]thebuzz.co.il[/url][/b]. Real-time news aggregation of financial and business news in Israeli media (in Hebrew).
|
||||
**[url=http://www.thebuzz.co.il/]thebuzz.co.il[/url]**. Real-time news aggregation of financial and business news in Israeli media (in Hebrew).
|
||||
|
||||
[b][url=http://www.backabuddy.co.za/]Backabuddy[/url][/b]. Online fundraising - speedy solution to donating and raising money for charity!, .
|
||||
**[url=http://www.backabuddy.co.za/]Backabuddy[/url]**. Online fundraising - speedy solution to donating and raising money for charity!, .
|
||||
|
||||
[b][url=http://www.openopp.ca]OpenOpp[/url][/b] - Specializing in Job Marketing and Perpetual Sourcing of top talent, our careers microsites can fully integrate with your existing corporate website, they are available instantly, and they enable millions of active, passive, and future job seekers to find your jobs first.
|
||||
**[url=http://www.openopp.ca]OpenOpp[/url]** - Specializing in Job Marketing and Perpetual Sourcing of top talent, our careers microsites can fully integrate with your existing corporate website, they are available instantly, and they enable millions of active, passive, and future job seekers to find your jobs first.
|
||||
|
||||
[b][url=http://www.dennismonsewicz.com]dennismonsewicz.com[/url][/b] - Personal blog about PHP, terminal and weight loss
|
||||
**[url=http://www.dennismonsewicz.com]dennismonsewicz.com[/url]** - Personal blog about PHP, terminal and weight loss
|
||||
|
||||
[b]Autolink Media[/b] - Large group of [url=http://www.autolinkmedia.com]Used Car[/url] websites / Marque dedicated car portals.
|
||||
**Autolink Media** - Large group of [url=http://www.autolinkmedia.com]Used Car[/url] websites / Marque dedicated car portals.
|
||||
|
||||
[b][url=http://faveone.com]Faveone[/url][/b] - A fun site to vote on this vs thats and learn more about your friends.
|
||||
**[url=http://faveone.com]Faveone[/url]** - A fun site to vote on this vs thats and learn more about your friends.
|
||||
|
||||
[b][url=http://www.onlinemachinist.com]Online Machinist[/url][/b] - Create custom parts online.
|
||||
**[url=http://www.onlinemachinist.com]Online Machinist[/url]** - Create custom parts online.
|
||||
|
||||
[b][url=http://www.vinos.com]Vinos.com[/url][/b] - The site for wine enthusiasts and professionals.
|
||||
**[url=http://www.vinos.com]Vinos.com[/url]** - The site for wine enthusiasts and professionals.
|
||||
|
||||
[b][url=http://www.goingclubing.com/]New York Nightlife[/url][/b]. An event listing site. Featuring nightlife events in the NY area.
|
||||
**[url=http://www.goingclubing.com/]New York Nightlife[/url]**. An event listing site. Featuring nightlife events in the NY area.
|
||||
|
||||
[b][url=http://www.southsidesalesandrental.com/]Southside Sales and Rental[/url][/b] - Manages the online inventory for the car dealership.
|
||||
**[url=http://www.southsidesalesandrental.com/]Southside Sales and Rental[/url]** - Manages the online inventory for the car dealership.
|
||||
|
||||
[b][url=http://www.nyfreelancers.com/]New York Job Board[/url][/b]. Basic Job Board built on CI 2.0
|
||||
**[url=http://www.nyfreelancers.com/]New York Job Board[/url]**. Basic Job Board built on CI 2.0
|
||||
|
||||
[b][url=http://dropatruthbomb.com]Truth Bomb![/url][/b]- Online poll/survey system that protects the anonymity of poll designer as well as respondents.
|
||||
**[url=http://dropatruthbomb.com]Truth Bomb![/url]**- Online poll/survey system that protects the anonymity of poll designer as well as respondents.
|
||||
|
||||
### Other Helpful Links
|
||||
|
||||
|
||||
[b][url=http://en.wikipedia.org/wiki/Social_media]Social Media[/url][/b] - media designed to be disseminated through social interaction
|
||||
**[url=http://en.wikipedia.org/wiki/Social_media]Social Media[/url]** - media designed to be disseminated through social interaction
|
||||
|
||||
[b][url=http://www.seop.com/social-media-marketing/]Social Media Marketing[/url][/b] - help your site gain more visibility, popularity, solidify your brand and promote your products and services
|
||||
**[url=http://www.seop.com/social-media-marketing/]Social Media Marketing[/url]** - help your site gain more visibility, popularity, solidify your brand and promote your products and services
|
||||
|
||||
[b][url=http://deskhot.com/]Deskhot.com[/url][/b]- Deskhot is a free bookmark manager with a focus on speed.
|
||||
**[url=http://deskhot.com/]Deskhot.com[/url]**- Deskhot is a free bookmark manager with a focus on speed.
|
||||
|
@ -1,6 +1,6 @@
|
||||
[[Category:Community]]
|
||||
|
||||
[b][color=green]Different approaches to common problems - user-supplied methods of achieving a goal, where no 'official CodeIgniter' approach is provided or obvious.[/color][/b]
|
||||
**[color=green]Different approaches to common problems - user-supplied methods of achieving a goal, where no 'official CodeIgniter' approach is provided or obvious.[/color]**
|
||||
|
||||
|
||||
## Explanation
|
||||
@ -10,11 +10,11 @@ This section is in response to the handful of regular forum posts that either co
|
||||
|
||||
What you'll find here is a bunch of [i]very subjective[/i] descriptions of different ways of doing things. It's unlikely that you'll find complete solutions to things, but rather extracts from existing projects that demonstrate a particular approach.
|
||||
|
||||
Under each '[b]How can you do this[/b]?' sub-category, each page belongs to one person, and consequently describes exactly one way of approaching a task or problem.
|
||||
Under each '**How can you do this**?' sub-category, each page belongs to one person, and consequently describes exactly one way of approaching a task or problem.
|
||||
|
||||
For the [b]novice[/b] this provides an excellent learning resource - they can examine different user's approach to the same problem, picking and choosing as they see fit.
|
||||
For the **novice** this provides an excellent learning resource - they can examine different user's approach to the same problem, picking and choosing as they see fit.
|
||||
|
||||
For the more [b]experienced forum user[/b] it means they can point newbies at a more easily locatable and maintainable description of their preferred approach.
|
||||
For the more **experienced forum user** it means they can point newbies at a more easily locatable and maintainable description of their preferred approach.
|
||||
|
||||
|
||||
## Topics
|
||||
@ -22,17 +22,17 @@ For the more [b]experienced forum user[/b] it means they can point newbies at a
|
||||
|
||||
Here's the current list of approaches:
|
||||
|
||||
[b]o[/b] [[I have the welcome page - but now what]]
|
||||
[b]o[/b] [[Header and footer and menu on every page]]
|
||||
[b]o[/b] [[I want to take my site offline for maintenance]]
|
||||
[b]o[/b] [[How do I handle images and thumbnails]]
|
||||
**o** [[I have the welcome page - but now what]]
|
||||
**o** [[Header and footer and menu on every page]]
|
||||
**o** [[I want to take my site offline for maintenance]]
|
||||
**o** [[How do I handle images and thumbnails]]
|
||||
|
||||
Suggestions:
|
||||
[b]o[/b] [color=grey]Roll-your-own basic user authentication system - perhaps using thody's user-library as base[/color]
|
||||
[b]o[/b] [color=grey]Setting up a debugging suite - firebug, dump() helper function, others[/color]
|
||||
**o** [color=grey]Roll-your-own basic user authentication system - perhaps using thody's user-library as base[/color]
|
||||
**o** [color=grey]Setting up a debugging suite - firebug, dump() helper function, others[/color]
|
||||
|
||||
|
||||
[color=purple][b]Note to would-be contributors[/b] - it'd be just fantastic if you'd spend the time sharing your approaches with the world, but please resist the temptation to provide a link to another site. First, sites come and go, and dead links are a real pain in the proverbial. Second, off-site material doesn't get discovered by searches within the wiki. Third, the world has enough web pages that are 'lists of links' - we don't need to add to the collection. And finally - the whole idea of this collection of Approaches is so that users can see what [b]you[/b] do - so can you please put your name on anything you contribute, so people can PM you if they want to clarify something?[/color]
|
||||
[color=purple]**Note to would-be contributors** - it'd be just fantastic if you'd spend the time sharing your approaches with the world, but please resist the temptation to provide a link to another site. First, sites come and go, and dead links are a real pain in the proverbial. Second, off-site material doesn't get discovered by searches within the wiki. Third, the world has enough web pages that are 'lists of links' - we don't need to add to the collection. And finally - the whole idea of this collection of Approaches is so that users can see what **you** do - so can you please put your name on anything you contribute, so people can PM you if they want to clarify something?[/color]
|
||||
|
||||
|
||||
|
||||
|
@ -1,13 +1,13 @@
|
||||
[[Category:Approaches::Header and Footer and Menu on every page]]
|
||||
|
||||
|
||||
[b]Overview:[/b]
|
||||
**Overview:**
|
||||
|
||||
[i] ... yet to be updated ... [/i]
|
||||
|
||||
|
||||
|
||||
[b]Approach (brief):[/b]
|
||||
**Approach (brief):**
|
||||
|
||||
Declare public variable $data in the constructor, then pass $this->data to views.
|
||||
|
||||
@ -15,6 +15,6 @@ When adding information to views you just always add them to $this->data - great
|
||||
|
||||
|
||||
|
||||
[b]Approach (in detail):[/b]
|
||||
**Approach (in detail):**
|
||||
|
||||
[i] ... yet to be updated ... [/i]
|
@ -1,35 +1,35 @@
|
||||
[[Category:Approaches::Header and Footer and Menu on every page]]
|
||||
|
||||
|
||||
[b]Overview:[/b]
|
||||
**Overview:**
|
||||
|
||||
I have three things that I want to see everywhere:
|
||||
[b]o[/b] header - page title, login status, and maybe some links
|
||||
[b]o[/b] footer - links, page rendering stats, and some advertising back to the CI site!
|
||||
[b]o[/b] menu - generated from an array (not DB) containing only category and sub-category levels
|
||||
**o** header - page title, login status, and maybe some links
|
||||
**o** footer - links, page rendering stats, and some advertising back to the CI site!
|
||||
**o** menu - generated from an array (not DB) containing only category and sub-category levels
|
||||
|
||||
Because I want to see them all on pretty much every page, and I consider the creation of these data to be inexpensive, I am happy to have them generated on [i]every[/i] page load.
|
||||
|
||||
If you don't want this, say because you only want to show these snippets on some of your pages, you could modify this approach by putting some smarts into MY_Controller to identify whether to create the vars or not - but I think this might be messier than other [[Approaches | basic approaches]] to the problem.
|
||||
|
||||
|
||||
[b]Approach (brief):[/b]
|
||||
**Approach (brief):**
|
||||
|
||||
I [url="http://codeigniter.com/user_guide/general/core_classes.html"]extend the core Controller[/url] and make [b]MY_Controller.php[/b].
|
||||
I [url="http://codeigniter.com/user_guide/general/core_classes.html"]extend the core Controller[/url] and make **MY_Controller.php**.
|
||||
|
||||
If you don't know what that means, then you should definitely read the [url="/wiki/MY_Controller"]MY_Controller[/url] wiki page first - it explains the concept in lurid detail.
|
||||
|
||||
Within MY_Controller I call out to view files that generate sub-sets, typically <div>'s or <table>'s, and perhaps a few dozen lines of HTML. These are called using the [b]load->view('view', $data, [color=red]TRUE[/color])[/b] feature - described in detail at the [url="http://codeigniter.com/user_guide/general/views.html"]very bottom of the Views[/url] page in the CI User Guide.
|
||||
Within MY_Controller I call out to view files that generate sub-sets, typically <div>'s or <table>'s, and perhaps a few dozen lines of HTML. These are called using the **load->view('view', $data, [color=red]TRUE[/color])** feature - described in detail at the [url="http://codeigniter.com/user_guide/general/views.html"]very bottom of the Views[/url] page in the CI User Guide.
|
||||
|
||||
These view outputs are stored into variables within the [b]$this->data[/b] array. The primary view file then just displays these data using simple echo statements.
|
||||
These view outputs are stored into variables within the **$this->data** array. The primary view file then just displays these data using simple echo statements.
|
||||
|
||||
|
||||
|
||||
[b]Approach (in detail):[/b]
|
||||
**Approach (in detail):**
|
||||
|
||||
Let's work backwards from the end result - I think this will make more sense.
|
||||
|
||||
This is roughly what my [color=green][b]primary view file (default.php)[/b][/color] looks like. Note that this is what [b]all[/b] my pages are rendered through.
|
||||
This is roughly what my [color=green]**primary view file (default.php)**[/color] looks like. Note that this is what **all** my pages are rendered through.
|
||||
|
||||
```php
|
||||
|
||||
@ -103,11 +103,11 @@ This is roughly what my [color=green][b]primary view file (default.php)[
|
||||
```
|
||||
|
||||
|
||||
Now let's look at what goes into one of those view snippets that I'm echo'ing there. My top view contains three divs, generated separately, so not a good candidate example. My menu is lengthy, but most people understand menus, and I happen to generate a slightly different menu if the logged in user is [b]admin-equiv[/b], so it's probably a quite instructive choice.
|
||||
Now let's look at what goes into one of those view snippets that I'm echo'ing there. My top view contains three divs, generated separately, so not a good candidate example. My menu is lengthy, but most people understand menus, and I happen to generate a slightly different menu if the logged in user is **admin-equiv**, so it's probably a quite instructive choice.
|
||||
|
||||
|
||||
|
||||
In [color=green][b]MY_Controller[/b][/color] I have the following code:
|
||||
In [color=green]**MY_Controller**[/color] I have the following code:
|
||||
```php
|
||||
|
||||
$tmp_data['menu_data'] = $this->_generate_menu_data();
|
||||
@ -117,19 +117,19 @@ $this->data['main_menu_view'] = $this->load->view ('common/create_table_main_men
|
||||
|
||||
Things to note here:
|
||||
|
||||
I'm using a private (to MY_Controller) function called [b]_generate_menu_data[/b] that just produces a big array of menu data. No normal controllers will use that function.
|
||||
I'm using a private (to MY_Controller) function called **_generate_menu_data** that just produces a big array of menu data. No normal controllers will use that function.
|
||||
|
||||
I generate the physical - the HTML version - of my menu by throwing that data out to my view [b]create_table_main_menu[/b], which lives in a directory of common view components. (Most of my view files live in a sub-directory denoting the controller they belong to.)
|
||||
I generate the physical - the HTML version - of my menu by throwing that data out to my view **create_table_main_menu**, which lives in a directory of common view components. (Most of my view files live in a sub-directory denoting the controller they belong to.)
|
||||
|
||||
The [b]TRUE[/b] on that second line means that the view isn't rendered to the screen at this point - instead, CI returns the HTML back to me - and it's put into [b]$this->data['main_menu_view'][/b].
|
||||
The **TRUE** on that second line means that the view isn't rendered to the screen at this point - instead, CI returns the HTML back to me - and it's put into **$this->data['main_menu_view']**.
|
||||
|
||||
You'll also notice that in the [b]primary view[/b] file, shown earlier, there is a line that is simply an [b]echo $main_menu_view[/b].
|
||||
You'll also notice that in the **primary view** file, shown earlier, there is a line that is simply an **echo $main_menu_view**.
|
||||
|
||||
|
||||
[b]Actual page content:[/b]
|
||||
**Actual page content:**
|
||||
You might be asking - [i]But how do I generate my actual interesting and different-on-each page data?![/i] -- and it's a good question, and shows that you've been paying some attention.
|
||||
|
||||
The hint is in the code above - in my [b]primary view[/b] file, where I do this:
|
||||
The hint is in the code above - in my **primary view** file, where I do this:
|
||||
```php
|
||||
|
||||
<div id="div_main_content">
|
||||
@ -138,9 +138,9 @@ The hint is in the code above - in my [b]primary view[/b] file, where I do this:
|
||||
|
||||
```
|
||||
|
||||
So, in each of my normal Controllers, my logic is heading towards the generation of a [b]$this->data['main_content_view'][/b] variable, which is then passed out to the primary view, and it gets displayed just like the other prepared data.
|
||||
So, in each of my normal Controllers, my logic is heading towards the generation of a **$this->data['main_content_view']** variable, which is then passed out to the primary view, and it gets displayed just like the other prepared data.
|
||||
|
||||
Here's a [i]very basic[/i] example from one of my [color=green][b]Controller's index methods[/b][/color] that I haven't worked out what I want to do in yet - it's a place-holder, in other words, but demonstrates the situation nicely enough:
|
||||
Here's a [i]very basic[/i] example from one of my [color=green]**Controller's index methods**[/color] that I haven't worked out what I want to do in yet - it's a place-holder, in other words, but demonstrates the situation nicely enough:
|
||||
|
||||
```php
|
||||
|
||||
@ -152,12 +152,12 @@ $this->load->view ('default', $this->data);
|
||||
|
||||
```
|
||||
|
||||
Of course, in some of my more complex methods I'm actually building up my [b]$disptext[/b] from a calls to several different views (generating tables usually) but the principle remains the same, and isn't substantively different from the 'conventional' approach.
|
||||
Of course, in some of my more complex methods I'm actually building up my **$disptext** from a calls to several different views (generating tables usually) but the principle remains the same, and isn't substantively different from the 'conventional' approach.
|
||||
|
||||
|
||||
[b]Additional material:[/b]
|
||||
**Additional material:**
|
||||
|
||||
For the sake of completeness I'll show you now my private [color=green][b]MY_Controller functions[/b][/color] to generate my menu data - though it's perhaps not hugely germane to this subject, it does show how you can generate subtly different information on each page load, depending on certain conditions.
|
||||
For the sake of completeness I'll show you now my private [color=green]**MY_Controller functions**[/color] to generate my menu data - though it's perhaps not hugely germane to this subject, it does show how you can generate subtly different information on each page load, depending on certain conditions.
|
||||
|
||||
```php
|
||||
|
||||
|
@ -15,23 +15,23 @@ The problem is that you don't want to cut-and-paste that code into each of your
|
||||
|
||||
Broadly speaking there are a handful of approaches to this challenge:
|
||||
|
||||
[b]o[/b] Prepare the common view-snippets early on, and display them in one go with the page-specific data using a generic or main view file.
|
||||
[b]o[/b] ... ?
|
||||
**o** Prepare the common view-snippets early on, and display them in one go with the page-specific data using a generic or main view file.
|
||||
**o** ... ?
|
||||
|
||||
|
||||
|
||||
|
||||
## The approaches
|
||||
|
||||
[b]o[/b] [[Header and Footer and Menu on every page - jedd | Jedd's take]] - (summary - a master view, extending with MY_Controller),
|
||||
[b]o[/b] [[Header and Footer and Menu on every page - BrianDHall | BrianDHall's take]] - ([i]summary yet to be provided[/i])
|
||||
[b]o[/b] [url=http://maestric.com/en/doc/php/codeigniter_template] Jérôme Jaglale's take (off-site)[/url] Summary - most simple template library
|
||||
[b]o[/b] [[Chuck Son's take | Chuck Son's take]] - Hooks
|
||||
[b]o[/b] [[{Your CI login-name goes here}'s take?]] - summary of your approach goes here - [color=grey]COPY-THIS-LINE-WHEN-ADDING-YOURS[/color]
|
||||
**o** [[Header and Footer and Menu on every page - jedd | Jedd's take]] - (summary - a master view, extending with MY_Controller),
|
||||
**o** [[Header and Footer and Menu on every page - BrianDHall | BrianDHall's take]] - ([i]summary yet to be provided[/i])
|
||||
**o** [url=http://maestric.com/en/doc/php/codeigniter_template] Jérôme Jaglale's take (off-site)[/url] Summary - most simple template library
|
||||
**o** [[Chuck Son's take | Chuck Son's take]] - Hooks
|
||||
**o** [[{Your CI login-name goes here}'s take?]] - summary of your approach goes here - [color=grey]COPY-THIS-LINE-WHEN-ADDING-YOURS[/color]
|
||||
|
||||
|
||||
|
||||
[i][color=purple][b]Note to would-be contributors[/b] - it'd be just fantastic if you'd spend the time sharing your approaches with the world, but please resist the temptation to provide a link to another site. First, sites come and go, and dead links are a real pain in the proverbial. Second, off-site material doesn't get discovered by searches within the wiki. Third, the world has enough web pages that are 'lists of links' - we don't need to add to the collection. And finally - the whole idea of this collection of Approaches is so that users can see what [b]you[/b] do - so can you please put your name on anything you contribute, so people can PM you if they want to clarify something?[/color][/i]
|
||||
[i][color=purple]**Note to would-be contributors** - it'd be just fantastic if you'd spend the time sharing your approaches with the world, but please resist the temptation to provide a link to another site. First, sites come and go, and dead links are a real pain in the proverbial. Second, off-site material doesn't get discovered by searches within the wiki. Third, the world has enough web pages that are 'lists of links' - we don't need to add to the collection. And finally - the whole idea of this collection of Approaches is so that users can see what **you** do - so can you please put your name on anything you contribute, so people can PM you if they want to clarify something?[/color][/i]
|
||||
|
||||
|
||||
[b][i][color=grey]Need to automatically insert category/subcategory listing here somehow, later - for the moment I'll handcode in the first couple of links[/color][/i][/b]
|
||||
**[i][color=grey]Need to automatically insert category/subcategory listing here somehow, later - for the moment I'll handcode in the first couple of links[/color][/i]**
|
@ -24,13 +24,13 @@ And there are two ways your app can respond to different image size requests:
|
||||
## The approaches
|
||||
|
||||
|
||||
[b]o[/b] [[How do I handle images and thumbnails - jedd | Jedd's take]] - (summary - store images in file system, using UUID's),
|
||||
[b]o[/b] [[How do I handle images and thumbnails - dcheslow | Dave's take]] - (summary - I too store images in the file system using UUIDs, I use UUIDs as primary keys so it's easy to associate images with DB records (and clean up when records are deleted), I wrote an image caching library that creates new sizes on demand and stores them in a cache, it checks timestamps and regenerates when needed. If there are no changes, then the cached file is returned. Best of both worlds!
|
||||
[b]o[/b] [[{Your CI login-name goes here}'s take]] - summary of your approach goes here - [color=grey]COPY-THIS-LINE-WHEN-ADDING-YOURS[/color]
|
||||
**o** [[How do I handle images and thumbnails - jedd | Jedd's take]] - (summary - store images in file system, using UUID's),
|
||||
**o** [[How do I handle images and thumbnails - dcheslow | Dave's take]] - (summary - I too store images in the file system using UUIDs, I use UUIDs as primary keys so it's easy to associate images with DB records (and clean up when records are deleted), I wrote an image caching library that creates new sizes on demand and stores them in a cache, it checks timestamps and regenerates when needed. If there are no changes, then the cached file is returned. Best of both worlds!
|
||||
**o** [[{Your CI login-name goes here}'s take]] - summary of your approach goes here - [color=grey]COPY-THIS-LINE-WHEN-ADDING-YOURS[/color]
|
||||
|
||||
|
||||
|
||||
[i][color=purple][b]Note to would-be contributors[/b] - it'd be just fantastic if you'd spend the time sharing your approaches with the world, but please resist the temptation to provide a link to another site. First, sites come and go, and dead links are a real pain in the proverbial. Second, off-site material doesn't get discovered by searches within the wiki. Third, the world has enough web pages that are 'lists of links' - we don't need to add to the collection. And finally - the whole idea of this collection of Approaches is so that users can see what [b]you[/b] do - so can you please put your name on anything you contribute, so people can PM you if they want to clarify something?[/color][/i]
|
||||
[i][color=purple]**Note to would-be contributors** - it'd be just fantastic if you'd spend the time sharing your approaches with the world, but please resist the temptation to provide a link to another site. First, sites come and go, and dead links are a real pain in the proverbial. Second, off-site material doesn't get discovered by searches within the wiki. Third, the world has enough web pages that are 'lists of links' - we don't need to add to the collection. And finally - the whole idea of this collection of Approaches is so that users can see what **you** do - so can you please put your name on anything you contribute, so people can PM you if they want to clarify something?[/color][/i]
|
||||
|
||||
|
||||
[b][i][color=grey]Need to automatically insert category/subcategory listing here somehow, later - for the moment I'll handcode in the first couple of links[/color][/i][/b]
|
||||
**[i][color=grey]Need to automatically insert category/subcategory listing here somehow, later - for the moment I'll handcode in the first couple of links[/color][/i]**
|
@ -6,15 +6,15 @@
|
||||
|
||||
|
||||
These are the things I tend to do / adopt / setup:
|
||||
[b]o[/b] my .htaccess file is pretty stable now, and it's the first thing I setup
|
||||
[b]o[/b] nomenclature standard
|
||||
[b]o[/b] MY_Controller, with a few functions I would probably use in every project
|
||||
[b]o[/b] MY_Model .. ditto
|
||||
[b]o[/b] assets directory - for images, javascript and other 'static' stuff
|
||||
[b]o[/b] phpdoc - for automating the documentation of my code
|
||||
[b]o[/b] git - my version control system of choice
|
||||
[b]o[/b] trac - for ticketing and wiki
|
||||
[b]o[/b] various little approaches I follow from here ...
|
||||
**o** my .htaccess file is pretty stable now, and it's the first thing I setup
|
||||
**o** nomenclature standard
|
||||
**o** MY_Controller, with a few functions I would probably use in every project
|
||||
**o** MY_Model .. ditto
|
||||
**o** assets directory - for images, javascript and other 'static' stuff
|
||||
**o** phpdoc - for automating the documentation of my code
|
||||
**o** git - my version control system of choice
|
||||
**o** trac - for ticketing and wiki
|
||||
**o** various little approaches I follow from here ...
|
||||
|
||||
|
||||
|
||||
@ -37,9 +37,9 @@ RewriteRule ^(.*)$ ./index.php/$1 [L]
|
||||
|
||||
```
|
||||
|
||||
Observations ... I have directories in my root called [b]files[/b] and [b]assets[/b] that I don't want CI messing with, and you can easily add more in there as you need. I call ./index.php - but you could hard code the PATH in there if you prefer (I like it this way as I never have to change it for a new project).
|
||||
Observations ... I have directories in my root called **files** and **assets** that I don't want CI messing with, and you can easily add more in there as you need. I call ./index.php - but you could hard code the PATH in there if you prefer (I like it this way as I never have to change it for a new project).
|
||||
|
||||
And don't forget to change the the [b]config/config.php[/b] file:
|
||||
And don't forget to change the the **config/config.php** file:
|
||||
```php
|
||||
|
||||
$config['index_page'] = "";
|
||||
@ -52,11 +52,11 @@ $config['index_page'] = "";
|
||||
### Nomenclature standards
|
||||
|
||||
|
||||
I [i]really dislike[/i] using a [b]_model[/b] suffix on my Model names, so instead I shop around for synonyms (where applicable) or just rely on the fact that my models (which typically front several database tables) don't really need to clash with my controllers (which present a user perspective of a particular resource).
|
||||
I [i]really dislike[/i] using a **_model** suffix on my Model names, so instead I shop around for synonyms (where applicable) or just rely on the fact that my models (which typically front several database tables) don't really need to clash with my controllers (which present a user perspective of a particular resource).
|
||||
|
||||
Model and Controller names, as well as table and column names in my DB, are consistently singular.
|
||||
|
||||
Controllers tend to be [b]nouns[/b], and their methods tend to be [b]verbs[/b]. This aligns with the 'controller is a resource manager', as well as the 'method is a way of doing something' approaches. People who don't follow this approach, as a [i]very[/i] general rule, at least if the forums are indicative - are usually much more confused about their controller design.
|
||||
Controllers tend to be **nouns**, and their methods tend to be **verbs**. This aligns with the 'controller is a resource manager', as well as the 'method is a way of doing something' approaches. People who don't follow this approach, as a [i]very[/i] general rule, at least if the forums are indicative - are usually much more confused about their controller design.
|
||||
|
||||
|
||||
|
||||
@ -104,7 +104,7 @@ All that's required on your end is to put in those comment blocks that you've pr
|
||||
|
||||
With CodeIgniter, or I guess any framework, the trick is to only include the bits of the framework that you need to in order to have [i]your[/i] code doco make sense without overloading it with the framework's methods and classes. In my case I want CI's Controller and Model, but none of the other CI libraries included in my documentation set.
|
||||
|
||||
My phpdoc shell script (for Debian GNU/Linux, but would work on any distro I guess, and probably OSX - but no idea how you'd go about doing this on MS-Windows) lives in my project root directory, and the output is to a peer directory. In this case my project is in [b]/var/www/devel/pdb[/b] and my phpdoc dumps its output into [b]/var/www/devel/pdbdoc[/b].
|
||||
My phpdoc shell script (for Debian GNU/Linux, but would work on any distro I guess, and probably OSX - but no idea how you'd go about doing this on MS-Windows) lives in my project root directory, and the output is to a peer directory. In this case my project is in **/var/www/devel/pdb** and my phpdoc dumps its output into **/var/www/devel/pdbdoc**.
|
||||
|
||||
I run this manually, but it's an ideal candidate for a cron job - the thing takes about 4 seconds on a 2Ghz box with 2GB.
|
||||
|
||||
|
@ -13,7 +13,7 @@ You want to know the kinds of things that long-time CodeIgniter users set up on
|
||||
|
||||
Basically you want to know what other people do, so you can pinch all the ideas that you think might work for you.
|
||||
|
||||
[i][b]Important:[/b] this is [b]not[/b] a tutorial on setting up auth libraries, configuring specific plug-ins, and so on - that stuff is much better covered by the wiki pages specific to that auth library, or that plug-in. This is much more a personal 'This is what I do after installing a clean CI environment and before I start doing Actual Stuff'.[/i]
|
||||
[i]**Important:** this is **not** a tutorial on setting up auth libraries, configuring specific plug-ins, and so on - that stuff is much better covered by the wiki pages specific to that auth library, or that plug-in. This is much more a personal 'This is what I do after installing a clean CI environment and before I start doing Actual Stuff'.[/i]
|
||||
|
||||
|
||||
|
||||
@ -22,24 +22,24 @@ Basically you want to know what other people do, so you can pinch all the ideas
|
||||
|
||||
|
||||
Things you can expect to learn in here:
|
||||
[b]o[/b] Wow -- nearly everyone uses MY_Controller - why doesn't CI just ship with an empty one?
|
||||
[b]o[/b] Oh, you can do the same thing to MY_Model?
|
||||
[b]o[/b] Documentation tools - aren't they for Big Projects with Lots Of Forgetful People only?
|
||||
[b]o[/b] Code versioning systems - aren't they for Big Projects with Lots Of Clumsy People only?
|
||||
[b]o[/b] Gosh - NetBeans can do auto-complete on CI's helpers and library methods?
|
||||
**o** Wow -- nearly everyone uses MY_Controller - why doesn't CI just ship with an empty one?
|
||||
**o** Oh, you can do the same thing to MY_Model?
|
||||
**o** Documentation tools - aren't they for Big Projects with Lots Of Forgetful People only?
|
||||
**o** Code versioning systems - aren't they for Big Projects with Lots Of Clumsy People only?
|
||||
**o** Gosh - NetBeans can do auto-complete on CI's helpers and library methods?
|
||||
|
||||
|
||||
|
||||
## The approaches
|
||||
|
||||
|
||||
[b]o[/b] [[I have the welcome page - but now what - jedd | Jedd's take]] - MY_Controller & MY_Model extensions, view sub-directories, version tracking with git, phpdoc ...
|
||||
[b]o[/b] [[I have the welcome page - but now what - your-CI-login-name-goes-here | {Your CI login-name goes here} take?]] - description of your approach goes here ...
|
||||
**o** [[I have the welcome page - but now what - jedd | Jedd's take]] - MY_Controller & MY_Model extensions, view sub-directories, version tracking with git, phpdoc ...
|
||||
**o** [[I have the welcome page - but now what - your-CI-login-name-goes-here | {Your CI login-name goes here} take?]] - description of your approach goes here ...
|
||||
|
||||
|
||||
|
||||
[color=purple][b]Note to would-be contributors[/b] - it'd be just fantastic if you'd spend the time sharing your approaches with the world, but please resist the temptation to provide a link to another site. First, sites come and go, and dead links are a real pain in the proverbial. Second, off-site material doesn't get discovered by searches within the wiki. Third, the world has enough web pages that are 'lists of links' - we don't need to add to the collection. And finally - the whole idea of this collection of Approaches is so that users can see what [b]you[/b] do - so can you please put your name on anything you contribute, so people can PM you if they want to clarify something?[/color]
|
||||
[color=purple]**Note to would-be contributors** - it'd be just fantastic if you'd spend the time sharing your approaches with the world, but please resist the temptation to provide a link to another site. First, sites come and go, and dead links are a real pain in the proverbial. Second, off-site material doesn't get discovered by searches within the wiki. Third, the world has enough web pages that are 'lists of links' - we don't need to add to the collection. And finally - the whole idea of this collection of Approaches is so that users can see what **you** do - so can you please put your name on anything you contribute, so people can PM you if they want to clarify something?[/color]
|
||||
|
||||
|
||||
|
||||
[b][color=grey][i]We probably [/i]don't[i] want to automatically insert category/subcategory listing here - as it'd be nice for each of us to summarise / differentiate our approach - git .v. svn , netbeans .v. eclipse , phpdoc .v. whatever others user, etc.[/color][/i][/b]
|
||||
**[color=grey][i]We probably [/i]don't[i] want to automatically insert category/subcategory listing here - as it'd be nice for each of us to summarise / differentiate our approach - git .v. svn , netbeans .v. eclipse , phpdoc .v. whatever others user, etc.[/color][/i]**
|
@ -14,7 +14,7 @@ ssh into your web host.
|
||||
|
||||
(If you don't have SSH, get a new web host. If this is beyond your competence, then it's feasible to modify your local copy of the relevant file, and upload it, and then repeat that to undo the change - but it's a bit more faffing around.)
|
||||
|
||||
Rename the [b]index.php[/b] file in the application's root directory - to, say, [b]index.foo[/b].
|
||||
Rename the **index.php** file in the application's root directory - to, say, **index.foo**.
|
||||
|
||||
This alone will take you off the air. For added points, you can pop in a temporary file - either index.php or index.html (both should work equally well), with contents like this (adjust to taste)
|
||||
|
||||
|
@ -10,7 +10,7 @@ This approach relies on a) comfort with the command line, and b) use of [i].htac
|
||||
## Approach
|
||||
|
||||
|
||||
If you are using the mod_rewrite method to hide the index.php in your url as detailed in the section [b]"Removing the index.php file"[/b] on [[http://codeigniter.com/user_guide/general/urls.html]], you can use the same [i].htaccess[/i] file to specify a file used for site offline maintenance.
|
||||
If you are using the mod_rewrite method to hide the index.php in your url as detailed in the section **"Removing the index.php file"** on [[http://codeigniter.com/user_guide/general/urls.html]], you can use the same [i].htaccess[/i] file to specify a file used for site offline maintenance.
|
||||
|
||||
I use a slightly different [i].htaccess[/i] file but to the same effect.
|
||||
|
||||
|
@ -118,4 +118,4 @@ To put the site online again, change it back to: $config['is_offline'] = FALSE;
|
||||
|
||||
Just edit the echo statement in the function show_site_offline(). This function is located in application/hooks/site_offline_hook.php
|
||||
|
||||
[i][color=purple][b]Note to PHP4 users[/b] This is build for PHP5, if you want to use this, then rename the contructor to "site_offline_hook". That should be all, but this is untested![/color][/i]
|
||||
[i][color=purple]**Note to PHP4 users** This is build for PHP5, if you want to use this, then rename the contructor to "site_offline_hook". That should be all, but this is untested![/color][/i]
|
@ -12,8 +12,8 @@ You want to drop your site down, take it off-line, for maintenance, upgrades, be
|
||||
|
||||
The two broad types of approach are:
|
||||
|
||||
[b]o[/b] Provide a web tool to give admins the ability to bring a site up or down
|
||||
[b]o[/b] Rely on command line (eg. ssh) access to the web server
|
||||
**o** Provide a web tool to give admins the ability to bring a site up or down
|
||||
**o** Rely on command line (eg. ssh) access to the web server
|
||||
|
||||
The pros of the former is that any idiot can do it. The downside, of course, is that any idiot can do it.
|
||||
|
||||
@ -23,15 +23,15 @@ The pros of the latter is that it's a simple and immediately effective change, a
|
||||
## The approaches
|
||||
|
||||
|
||||
[b]o[/b] [[I want to take my site offline for maintenance - jedd | Jedd's take]] - using CLI and a file/name swap,
|
||||
[b]o[/b] [[I want to take my site offline for maintenance - rogierb | Rogierb's take]] - using a pre-system hook
|
||||
[b]o[/b] [[I want to take my site offline for maintenance - natebot | Natebot's take]] - using .htaccess
|
||||
[b]o[/b] [[I want to take my site offline for maintenance - your-CI-login-name-goes-here | {Your CI login-name goes here} take?]] - description of your approach goes here ...
|
||||
**o** [[I want to take my site offline for maintenance - jedd | Jedd's take]] - using CLI and a file/name swap,
|
||||
**o** [[I want to take my site offline for maintenance - rogierb | Rogierb's take]] - using a pre-system hook
|
||||
**o** [[I want to take my site offline for maintenance - natebot | Natebot's take]] - using .htaccess
|
||||
**o** [[I want to take my site offline for maintenance - your-CI-login-name-goes-here | {Your CI login-name goes here} take?]] - description of your approach goes here ...
|
||||
|
||||
|
||||
|
||||
|
||||
[i][color=purple][b]Note to would-be contributors[/b] - it'd be just fantastic if you'd spend the time sharing your approaches with the world, but please resist the temptation to provide a link to another site. First, sites come and go, and dead links are a real pain in the proverbial. Second, off-site material doesn't get discovered by searches within the wiki. Third, the world has enough web pages that are 'lists of links' - we don't need to add to the collection. And finally - the whole idea of this collection of Approaches is so that users can see what [b]you[/b] do - so can you please put your name on anything you contribute, so people can PM you if they want to clarify something?[/color][/i]
|
||||
[i][color=purple]**Note to would-be contributors** - it'd be just fantastic if you'd spend the time sharing your approaches with the world, but please resist the temptation to provide a link to another site. First, sites come and go, and dead links are a real pain in the proverbial. Second, off-site material doesn't get discovered by searches within the wiki. Third, the world has enough web pages that are 'lists of links' - we don't need to add to the collection. And finally - the whole idea of this collection of Approaches is so that users can see what **you** do - so can you please put your name on anything you contribute, so people can PM you if they want to clarify something?[/color][/i]
|
||||
|
||||
|
||||
[b][i][color=grey]Need to automatically insert category/subcategory listing here somehow, later - for the moment I'll handcode in the first couple of links[/color][/i][/b]
|
||||
**[i][color=grey]Need to automatically insert category/subcategory listing here somehow, later - for the moment I'll handcode in the first couple of links[/color][/i]**
|
@ -1,12 +1,12 @@
|
||||
[[Category:Approaches::Header and Footer and Menu on every page]]
|
||||
|
||||
[b]Overview[/b]
|
||||
**Overview**
|
||||
A very simple but neat way to add some "constant" content to every page by
|
||||
overriding the "view" function in CI's "Loader" class. This enables content
|
||||
such as headers / footers to be added to some or all pages without hacking
|
||||
any of CI's system files or changing all your existing controllers.
|
||||
|
||||
[b]Approach (brief)[/b]
|
||||
**Approach (brief)**
|
||||
The ubiquitous $this->load->view() function is overridden using CI's inbuilt
|
||||
mechanism for dynamically replacing it's code (i.e.
|
||||
[url="http://codeigniter.com/user_guide/general/core_classes.html"]extending
|
||||
@ -17,7 +17,7 @@ customising further. For example, code could be added to alter the static
|
||||
pages that are provided (instead of turning the function on or off as is
|
||||
presently the case).
|
||||
|
||||
[b]Approach (in detail)[/b]
|
||||
**Approach (in detail)**
|
||||
The code below is valid when the following assumptions are made:
|
||||
+ A complete page can be constructed from three views, "header", "content"
|
||||
and "footer"
|
||||
@ -40,7 +40,7 @@ content:
|
||||
$this->load->view('content', $data);
|
||||
```
|
||||
|
||||
[b]What's Going On[/b]
|
||||
**What's Going On**
|
||||
As seasoned coders will easily see, we've derived a new class from
|
||||
"CI_Loader" in which we've overridden the existing function, "view()". A
|
||||
feature of CI is that you can replace any of the existing core classes by
|
||||
@ -64,7 +64,7 @@ changing (or may not work at all) for versions prior to 2.0.0 and, of
|
||||
course, future versions are also subject to change (although I'd expect the
|
||||
approach to be reasonably robust).
|
||||
|
||||
[b]Downsides[/b]
|
||||
**Downsides**
|
||||
The main problem with this technique is that things become more complicated
|
||||
if you need to construct pages from more than one view: every call to view()
|
||||
will add all the static content or none of it to the output page (depending
|
||||
|
@ -14,7 +14,7 @@ In this example the text input box is named "s":
|
||||
|
||||
```
|
||||
|
||||
After typing in the searchbox the words "duffy duck" and click the search button you will go to an url like this: http://www.myserver.com/my_controller/my_function/[color=green][b]?s=duffy+duck[/b][/color]
|
||||
After typing in the searchbox the words "duffy duck" and click the search button you will go to an url like this: http://www.myserver.com/my_controller/my_function/[color=green]**?s=duffy+duck**[/color]
|
||||
|
||||
The browser does this automaticly if you set method="get" in the form. But codeigniter form_open() doesnt support this so you will have to write the form manually:
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
Don’t you just hate it, when you move from development server to production server that you have to change the $config[’base_url’] setting?
|
||||
|
||||
Well I do. Because I do it a lot, specially when I’m demoing a web application, that’s why I added this code to the [b]config.php[/b]
|
||||
Well I do. Because I do it a lot, specially when I’m demoing a web application, that’s why I added this code to the **config.php**
|
||||
```php
|
||||
|
||||
$config['base_url'] = "http://".$_SERVER['HTTP_HOST'];
|
||||
|
@ -35,7 +35,7 @@ if ( ! function_exists('bbcode'))
|
||||
|
||||
Features
|
||||
|
||||
[b][/b] Bold
|
||||
**** Bold
|
||||
[i][/i] Italic
|
||||
http://url/ Url
|
||||
<img src="" alt="" /> Image
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
|
||||
|
||||
[b]Current Version: [url=http://ciex.levallois.biz/downloads/]0.9.2 beta (download here)[/url][/b]
|
||||
**Current Version: [url=http://ciex.levallois.biz/downloads/]0.9.2 beta (download here)[/url]**
|
||||
|
||||
CIEX (CIEXtended) is a PHP framework based on CI which includes by default an extremely light-weight ORM (object-relational mapping).
|
||||
|
||||
@ -13,14 +13,14 @@ The goal of CIEX is to extend what we think CI has missed, and to add some imple
|
||||
As CIEX is based on CodeIgniter, it also has an extremely small footprint, in fact probably smaller than CodeIgniter as CIEX has been optimized thoroughly. You should also find that CIEX is easier to use, and more convenient. Some of the missed features in CodeIgniter has been implemented/changed in CIEX, which will make your job (as web developers) more efficient and with ease.
|
||||
|
||||
|
||||
[b]New Features Include:[/b]
|
||||
- [b]$_GET[/b] or [b]$this->input->get()[/b] can now be used in conjunction with friendly URLs
|
||||
**New Features Include:**
|
||||
- **$_GET** or **$this->input->get()** can now be used in conjunction with friendly URLs
|
||||
- PHP v5.3 compatible
|
||||
- [b]Improved File Upload class, with allow all, disallowed types, MIME/File Extension (or both) checking![/b]
|
||||
- **Improved File Upload class, with allow all, disallowed types, MIME/File Extension (or both) checking!**
|
||||
- More MIME types available and ready to use
|
||||
|
||||
|
||||
[b]Features:[/b]
|
||||
**Features:**
|
||||
- Modular code separation
|
||||
- File structure re-organized
|
||||
- Optimizations and tweaks
|
||||
@ -29,7 +29,7 @@ As CIEX is based on CodeIgniter, it also has an extremely small footprint, in fa
|
||||
|
||||
-------------------------------
|
||||
|
||||
[b]Server Requirements:[/b]
|
||||
**Server Requirements:**
|
||||
- PHP 5 or later
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]Please note that the wiki tutorial is outdated, please visit the [url=http://kromack.com/developpement-php/codeigniter/ckeditor-helper-for-codeigniter/]CKEditor helper homepage[/url] to read the up-to-date tutorial.[/b]
|
||||
**Please note that the wiki tutorial is outdated, please visit the [url=http://kromack.com/developpement-php/codeigniter/ckeditor-helper-for-codeigniter/]CKEditor helper homepage[/url] to read the up-to-date tutorial.**
|
||||
|
||||
[i]Changelog[/i]
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
I have noticed many posts about the repopulation of selects, checkboxes and radios. In particular, the repopulation of multiple select items and using the set_select() method does not work without defining it in the form_validation->set_rules().
|
||||
|
||||
[b]This article deals with the repopulation of mulitple select values.[/b]
|
||||
**This article deals with the repopulation of mulitple select values.**
|
||||
It relates to the library form_validation and the helper form_helper and the methods set_select() and form_dropdown().
|
||||
|
||||
[b]Reference example code:[/b]
|
||||
**Reference example code:**
|
||||
```php
|
||||
|
||||
# controller : register
|
||||
@ -39,7 +39,7 @@ else
|
||||
|
||||
```
|
||||
|
||||
[b]Frequently encountered problems:[/b]
|
||||
**Frequently encountered problems:**
|
||||
- form_dropdown() cannot be used with set_select() and therefore values will always be re-populated with default data.
|
||||
- If the select item is not defined in the form validation rules repopulation does not occur. The fix is to add a 'dummy' rule (if it is not required).
|
||||
```php
|
||||
@ -49,15 +49,15 @@ $this->form_validation->set_rule('interests[]','Interests','');
|
||||
|
||||
In short it is difficult to create a solution without having to write a custom helper or callback function to validate multiple selects. This is especially true if the list of values are dynamically created or is very long - since each option must be declared and repopulated manually.
|
||||
|
||||
[b]Solution[/b]
|
||||
**Solution**
|
||||
The solution to all of the above problems is to use the form_dropdown() function and modify it to manually check the $_POST for selected values. This can easilly be achieved by using a MY_form_helper and overriding the form_dropdown() method.
|
||||
|
||||
You can also preserve the original function and use a prefix my_form_dropdown() if you do not want to preserve the CI core code.
|
||||
|
||||
The solution is described below:
|
||||
[quote]
|
||||
1. Create a file in your application/helpers directory called [b]MY_form_helper[/b].
|
||||
2. Copy the [b]form_dropdown()[/b] function in the form_helper file (system/helpers).
|
||||
1. Create a file in your application/helpers directory called **MY_form_helper**.
|
||||
2. Copy the **form_dropdown()** function in the form_helper file (system/helpers).
|
||||
3. Look for the following two lines of code.
|
||||
```php
|
||||
|
||||
@ -112,7 +112,7 @@ Notes
|
||||
- Minimal modifications, no hacks and no extra methods needed
|
||||
- Works with optgroups.
|
||||
|
||||
[b]Example Usage:[/b]
|
||||
**Example Usage:**
|
||||
In the reference example above, the following could be used.
|
||||
```php
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]June 5, 2012[/b]
|
||||
**June 5, 2012**
|
||||
|
||||
Community Auth hasn't been maintained in over a year and a half. At some point in the future, I'd love to rebuild the entire application, because I've got better ideas and important changes to make.
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
This is an easy way to integrate Amfphp with CI, without the need to modify core libraries by using hooks. This article is an expansion of my [url=http://codeigniter.com/forums/editreply/385743/]forum post here[/url] .
|
||||
|
||||
[b]Note:[/b] see this later [url=http://codeigniter.com/forums/viewreply/465708/]post[/url] for clarifications on some parts of Noinx's setup
|
||||
**Note:** see this later [url=http://codeigniter.com/forums/viewreply/465708/]post[/url] for clarifications on some parts of Noinx's setup
|
||||
|
||||
It seems that CI will output headers even if no views are defined, causing errors. The following prevents output from displaying when using Amfphp, but allows output for standard page display.
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
[[Category:Config]] | [[Category:Config::Community]] | [[Category:Config::Cron]]
|
||||
|
||||
This is a simple bootstrapper file that you can use to directly run your CodeIgniter controllers from the commandline. It's a [b]very easy[/b] and elegant solution for using CI controllers for cron jobs. It also supports [b]logging[/b].
|
||||
This is a simple bootstrapper file that you can use to directly run your CodeIgniter controllers from the commandline. It's a **very easy** and elegant solution for using CI controllers for cron jobs. It also supports **logging**.
|
||||
|
||||
## Installation
|
||||
|
||||
|
||||
1) Copy the code at the bottom of this code and save it in a file called [b]cron.php[/b] anywhere on your server (but not in the document root!).
|
||||
1) Copy the code at the bottom of this code and save it in a file called **cron.php** anywhere on your server (but not in the document root!).
|
||||
|
||||
2) Set the CRON_CI_INDEX constant to the full absolute file/path of your CodeIgniter index.php file
|
||||
|
||||
@ -44,7 +44,7 @@ You can use this file to call any controller function:
|
||||
### Troubleshooting
|
||||
|
||||
|
||||
[b]"I get this error when I try to execute ./cron.php:"[/b]
|
||||
**"I get this error when I try to execute ./cron.php:"**
|
||||
```php
|
||||
Invalid interpreter: /usr/bin/php^M
|
||||
```
|
||||
@ -59,14 +59,14 @@ rm cron.old
|
||||
|
||||
```
|
||||
|
||||
[b]cron.php bombs around line 111:[/b]
|
||||
**cron.php bombs around line 111:**
|
||||
```php
|
||||
require(CRON_CI_INDEX); // Main CI index.php file[/cron]
|
||||
This would only happen if you don't have the path to your application's main [b]index.php[/b] defined correctly at line 24:
|
||||
This would only happen if you don't have the path to your application's main **index.php** defined correctly at line 24:
|
||||
[code]define('CRON_CI_INDEX', '/var/www/vhosts/intranet/index.php'); // Your CodeIgniter main index.php file
|
||||
```
|
||||
|
||||
[b]"I don't get any errors or output and the script doesn't seem to run. What would cause this?"[/b]
|
||||
**"I don't get any errors or output and the script doesn't seem to run. What would cause this?"**
|
||||
Apparently some authentication libraries, such as Michael Wales' Erkana authentication library, cause this sort of behaviour (it's possible that any code that depends on sessions could cause this). Just use some conditional logic testing to see if the CRON constant is defined before auto-loading any authentication libraries.
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@ RewriteCond $1 !^(index\.php|public|user_guide|robots\.txt)
|
||||
RewriteRule ^(.*)$ /index.php?/$1 [L]
|
||||
```
|
||||
|
||||
[b]NOTE: The previous solution also works for ICDSoft hosting.[/b]
|
||||
**NOTE: The previous solution also works for ICDSoft hosting.**
|
||||
### Solution 2
|
||||
|
||||
1. Open system/application/config/config.php
|
||||
|
@ -15,7 +15,7 @@ I really like some of the features in it, [url=http://phplens.com/lens/adodb/doc
|
||||
|
||||
### Source
|
||||
|
||||
[b]system/application/init/init_adodb.php[/b]
|
||||
**system/application/init/init_adodb.php**
|
||||
```php
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
@ -87,9 +87,9 @@ $config['adodb']['debug'] = false;
|
||||
|
||||
All values are optional.
|
||||
|
||||
[b]dsn[/b] can be any valid DSN string, as described at [url=http://phplens.com/lens/adodb/docs-adodb.htm#connect_ex]http://phplens.com/lens/adodb/docs-adodb.htm#connect_ex[/url]. If not specified, the settings in config/database.php are used.
|
||||
[b]db_var[/b] if true will set $this->db to be a reference to $this->adodb, overwriting CodeIgniter's database object. Defaults to false.
|
||||
[b]debug[/b] sets ADOdb debug mode, defaults to false.
|
||||
**dsn** can be any valid DSN string, as described at [url=http://phplens.com/lens/adodb/docs-adodb.htm#connect_ex]http://phplens.com/lens/adodb/docs-adodb.htm#connect_ex[/url]. If not specified, the settings in config/database.php are used.
|
||||
**db_var** if true will set $this->db to be a reference to $this->adodb, overwriting CodeIgniter's database object. Defaults to false.
|
||||
**debug** sets ADOdb debug mode, defaults to false.
|
||||
|
||||
You can get going very fast:
|
||||
```php
|
||||
|
@ -7,9 +7,9 @@
|
||||
|
||||
Action Message Format(AMF) is a binary file format representing a serialized ActionScript object. The AMF file type is used throughout the Flash Player for data storage and data exchange. For example in the Flash Player AMF is used in SharedObjects, RemoteObjects, LocalConnection, ByteArray, RTMP, and all RPC operations. Some of the benefits of AMF include:
|
||||
|
||||
[b]*File Size[/b] - AMF objects are very small and are compressed using zlib.
|
||||
[b]*Fast Serialization/ Deserialization[/b] - AMF is transformed using native C code in the Flash Player making it very fast. The AMF format was designed to serialize and deserialize quickly under low memory and slower CPU conditions making it perfect for the web. AMF data is parsed directly into objects, meaning there is no lag for interpretation or parsing of AMF making the creation of objects complete in a single pass.
|
||||
[b]*Native Types and Custom classes supported[/b] - You can serialize any object in Flash Player with the only exception being a displayObject.you can also map serialized objects back to custom class instanced provided the custom class is in the Flash Player when the AMF object is deserialized.
|
||||
***File Size** - AMF objects are very small and are compressed using zlib.
|
||||
***Fast Serialization/ Deserialization** - AMF is transformed using native C code in the Flash Player making it very fast. The AMF format was designed to serialize and deserialize quickly under low memory and slower CPU conditions making it perfect for the web. AMF data is parsed directly into objects, meaning there is no lag for interpretation or parsing of AMF making the creation of objects complete in a single pass.
|
||||
***Native Types and Custom classes supported** - You can serialize any object in Flash Player with the only exception being a displayObject.you can also map serialized objects back to custom class instanced provided the custom class is in the Flash Player when the AMF object is deserialized.
|
||||
|
||||
AMF existed in ActionScript 2 and was just called AMF as of ActionScript 3 the AMF protocol has been updated and is referred to as AMF3. For historical reasons the original AMF format is now referred to as AMF0. One of the main upgrades to AMF3 is that the object is now zlib compressed for faster transfer do to the smaller file size and the additional of data types that were released with ActionScript 3.
|
||||
|
||||
@ -30,13 +30,13 @@ W: [url=http://www.coolfiremedia.com]www.coolfiremedia.com[/url]
|
||||
|
||||
### Part 1: Download and integrate the Zend Framework
|
||||
|
||||
[b](A)[/b] Start by visiting [url=http://framework.zend.com]framework.zend.com[/url] and download the current minimal package, which at the time of authoring is 1.7.2. This will provide you with all the core components needed to implement AMF into your project. Once unzipped you should create the following folder and copy over your Zend framework files. Make sure the Zend package contains the AMF directory.
|
||||
**(A)** Start by visiting [url=http://framework.zend.com]framework.zend.com[/url] and download the current minimal package, which at the time of authoring is 1.7.2. This will provide you with all the core components needed to implement AMF into your project. Once unzipped you should create the following folder and copy over your Zend framework files. Make sure the Zend package contains the AMF directory.
|
||||
|
||||
```php
|
||||
system->application->libraries->Zend
|
||||
```
|
||||
|
||||
[b](B)[/b] Now update your config file to enable hooks if this has not been done already.
|
||||
**(B)** Now update your config file to enable hooks if this has not been done already.
|
||||
|
||||
```php
|
||||
|
||||
@ -46,7 +46,7 @@ $config['enable_hooks'] = TRUE;
|
||||
|
||||
```
|
||||
|
||||
[b](C)[/b] Define a generic hook pre-controller for using Zend and other frameworks
|
||||
**(C)** Define a generic hook pre-controller for using Zend and other frameworks
|
||||
|
||||
```php
|
||||
|
||||
@ -61,7 +61,7 @@ $hook['pre_controller'][] = array(
|
||||
|
||||
```
|
||||
|
||||
[b](D)[/b] Create the app_hook described in the pre-controller to make sure your Zend files are located and loaded correctly in the include path.
|
||||
**(D)** Create the app_hook described in the pre-controller to make sure your Zend files are located and loaded correctly in the include path.
|
||||
|
||||
```php
|
||||
|
||||
@ -78,7 +78,7 @@ class App_hook
|
||||
|
||||
```
|
||||
|
||||
[b](E)[/b] Finally, create a library file that you can use to load Zend classes or other framework classes that you may install later. There are a lot of different options here, but I typically like to load an array through the constructor or individual items through the load method shown below. Use whatever method suits you best.
|
||||
**(E)** Finally, create a library file that you can use to load Zend classes or other framework classes that you may install later. There are a lot of different options here, but I typically like to load an array through the constructor or individual items through the load method shown below. Use whatever method suits you best.
|
||||
|
||||
```php
|
||||
|
||||
@ -108,7 +108,7 @@ class Apps
|
||||
### Part 2: Load Zend AMF and create a Remoting Class
|
||||
|
||||
|
||||
[b](A)[/b] In your application directory, create a new controller called "remote.php" and implement Zend AMF by loading the server class and creating a new AMF Server object. In the setClass method, use "$this" so the server knows to find the requested method in the Remote controller itself.
|
||||
**(A)** In your application directory, create a new controller called "remote.php" and implement Zend AMF by loading the server class and creating a new AMF Server object. In the setClass method, use "$this" so the server knows to find the requested method in the Remote controller itself.
|
||||
|
||||
Then call the handle() method which will process the incoming AMF request and return the data to your Flash application. At this point you should also be able to point your browser to this controller and receive the message "Zend AMF Endpoint" which lets you know that everything is running as expected.
|
||||
|
||||
@ -197,7 +197,7 @@ class AmfModel extends Model
|
||||
|
||||
### Part 3: Create a new Flash CS3 application and test the connection
|
||||
|
||||
[b](A)[/b] Open Flash CS3 and create a new ActionScript 3 Flash File. Then open the actions panel and enter the following code.
|
||||
**(A)** Open Flash CS3 and create a new ActionScript 3 Flash File. Then open the actions panel and enter the following code.
|
||||
|
||||
```php
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
This page describes a heavily modified version of the great [[ActiveRecord_Class]] library. Please note that some of the methods and functionality of the original are deprecated. Also, the original library was trying to replicate Ruby on Rails' look'n'feel. This is no longer the case with this mod.
|
||||
|
||||
[b]Last updated on 19 Jan 2008.[/b]
|
||||
**Last updated on 19 Jan 2008.**
|
||||
|
||||
### Changelog
|
||||
|
||||
@ -15,7 +15,7 @@ This page describes a heavily modified version of the great [[ActiveRecord_Class
|
||||
#### Version 0.5
|
||||
|
||||
* Added: query modifiers (see below).
|
||||
* Changed: the code structure. [b]Warning![/b] Some method name were changed.
|
||||
* Changed: the code structure. **Warning!** Some method name were changed.
|
||||
|
||||
|
||||
### Three modifiers to rule all queries
|
||||
@ -23,7 +23,7 @@ This page describes a heavily modified version of the great [[ActiveRecord_Class
|
||||
|
||||
This library introduces the concept of query modifiers. Basically, a query modifier is a method you can chain to modify the result of any find*() method call. To better explain this we need an example application.
|
||||
|
||||
Let's pretend we are developing a simple book management system for a library. The system will track books and their authors. Each book title and author are stored as separate records in two tables: [b]books[/b] and [b]authors[/b]. A book can have multiple authors, that is why we've got a [b]authors_books[/b] relationship table. Also, a book belongs to a genre, thus we have [b]genres[/b] table.
|
||||
Let's pretend we are developing a simple book management system for a library. The system will track books and their authors. Each book title and author are stored as separate records in two tables: **books** and **authors**. A book can have multiple authors, that is why we've got a **authors_books** relationship table. Also, a book belongs to a genre, thus we have **genres** table.
|
||||
|
||||
We create three models:
|
||||
```php
|
||||
@ -69,7 +69,7 @@ foreach($books as $book)
|
||||
echo '<li>'.$book->name.' ('.$book->genre_name.')</li>';
|
||||
echo '</ul>';
|
||||
```
|
||||
If you have more than one table your table [b]belongs_to[/b], instead of joining_*() each table you can use joining_related() method.
|
||||
If you have more than one table your table **belongs_to**, instead of joining_*() each table you can use joining_related() method.
|
||||
|
||||
#### Counting related
|
||||
|
||||
@ -95,8 +95,8 @@ foreach($books as $book)
|
||||
echo '</ul>';
|
||||
```
|
||||
|
||||
[b]Warning![/b] You cannot use counting_*() and concatenating_*() together.
|
||||
[b]Warning![/b] concatenating_*() is only available for MySQL version 4.1 and higher
|
||||
**Warning!** You cannot use counting_*() and concatenating_*() together.
|
||||
**Warning!** concatenating_*() is only available for MySQL version 4.1 and higher
|
||||
|
||||
### Other notable changes
|
||||
|
||||
@ -137,9 +137,9 @@ You no longer need to specify your $this->_class_name and $this->_table, unless
|
||||
|
||||
* Only tested using MySQL DB driver.
|
||||
|
||||
* CodeIgniter's own ActiveRecord library is no longer required. Use [b]where()[/b], [b]like()[/b], [b]having()[/b], [b]limit()[/b], [b]group_by()[/b], order_by() methods to set query clauses, group and sort.
|
||||
* CodeIgniter's own ActiveRecord library is no longer required. Use **where()**, **like()**, **having()**, **limit()**, **group_by()**, order_by() methods to set query clauses, group and sort.
|
||||
|
||||
* You can [b]count[/b],[b]sum[/b],[b]average[/b],[b]concatenate[/b] any number of columns. You can also count only those records that satisfy an arbitrary condition.```php
|
||||
* You can **count**,**sum**,**average**,**concatenate** any number of columns. You can also count only those records that satisfy an arbitrary condition.```php
|
||||
|
||||
|
||||
$this->book
|
||||
@ -172,7 +172,7 @@ echo $this->book->name;
|
||||
|
||||
```
|
||||
|
||||
* You can specify columns to be selected using [b]select()[/b] method. [b]select(null)[/b] returns nothing.
|
||||
* You can specify columns to be selected using **select()** method. **select(null)** returns nothing.
|
||||
|
||||
* You can create vary complex join statements, join distant relatives, perform count_*(), sum_*() and other operations on joined tables using new join syntax: ```php
|
||||
|
||||
@ -195,7 +195,7 @@ $member = $this->member
|
||||
|
||||
```
|
||||
|
||||
* Implement [b]serialize()[/b] and [b]unserialize()[/b] methods in your own model to serialize data when you save() or update() and unserialize it when retrieved from the database using find_*() methods. ```php
|
||||
* Implement **serialize()** and **unserialize()** methods in your own model to serialize data when you save() or update() and unserialize it when retrieved from the database using find_*() methods. ```php
|
||||
|
||||
function serialize ( &$data )
|
||||
{
|
||||
|
@ -63,7 +63,7 @@ class Appvar
|
||||
|
||||
```
|
||||
|
||||
[b]Usage[/b]
|
||||
**Usage**
|
||||
* Put this code into Appvar.php in your libraries folder.
|
||||
* If needed, change the $appVarPath variable to a path of your choice, remember to make sure PHP has write-privileges to that path. The object will write and read this file, which is basically a serialized array.
|
||||
* Load the object using 'autoload' /or/ within the controller:
|
||||
|
@ -2,7 +2,7 @@ The Asset Helper is designed to make keeping track of those pesky JavaScript, im
|
||||
|
||||
By using Asset Helper they can be easily stored on the site in a seperate folder and will also give you a firm structure to keep your files all organised logically.
|
||||
|
||||
[b]Folder Structure[/b]
|
||||
**Folder Structure**
|
||||
|
||||
[quote]/
|
||||
-- css/
|
||||
@ -22,7 +22,7 @@ By using Asset Helper they can be easily stored on the site in a seperate folder
|
||||
This folder structure should make sense to you. Basically you have your generic files (logos, general stylesheets, banners, buttons, etc) and you have page specific ones, such as sub-page backgrounds and section headers. These go in a module in the asset folder named whatever you want (makes sense to give it the same name as your controller though eh?).
|
||||
|
||||
|
||||
[b]Useage[/b]
|
||||
**Useage**
|
||||
```php
|
||||
$this->load->helper('asset');
|
||||
|
||||
|
@ -36,7 +36,7 @@ assets/shared/flash[/pre]
|
||||
|
||||
## The files
|
||||
|
||||
[b]application>config>assets.php[/b]
|
||||
**application>config>assets.php**
|
||||
```php
|
||||
<?php
|
||||
$config["assets_folder"] = "assets";
|
||||
@ -56,7 +56,7 @@ $config["asset_types"] = array(
|
||||
?>
|
||||
```
|
||||
|
||||
[b]application>controllers>asset_controller.php[/b]
|
||||
**application>controllers>asset_controller.php**
|
||||
```php
|
||||
<?php
|
||||
|
||||
@ -85,7 +85,7 @@ class Asset_controller extends Controller {
|
||||
?>
|
||||
```
|
||||
|
||||
[b]application>libraries>Assets.php[/b]
|
||||
**application>libraries>Assets.php**
|
||||
```php
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
|
@ -17,7 +17,7 @@ I've written a small sample controller which illustrates everything for you, jus
|
||||
|
||||
Don't be silly and try the sample controller before installing the modified libraries as it won't work :P
|
||||
|
||||
Create a new controller file and call it [b]test.php[/b]
|
||||
Create a new controller file and call it **test.php**
|
||||
fill the following codes:
|
||||
|
||||
```php
|
||||
@ -107,7 +107,7 @@ class test extends controller{
|
||||
## Attention!
|
||||
|
||||
|
||||
[b]after applying this contribution you have to note some changes:[/b]
|
||||
**after applying this contribution you have to note some changes:**
|
||||
|
||||
1- due to the fact that we can't use brackets [ ] into a class variable, we can't access $this->validation->mycheckbox[element1]_error anymore to print the field error, so use $this->validation->error('mycheckbox[element1]') instead.
|
||||
|
||||
@ -122,13 +122,13 @@ class test extends controller{
|
||||
all you need is to create two files under your "application/libraries" folder,
|
||||
and name them:
|
||||
|
||||
[b]MY_Input.php[/b]
|
||||
[b]MY_Validation.php[/b]
|
||||
**MY_Input.php**
|
||||
**MY_Validation.php**
|
||||
|
||||
|
||||
fill the following codes:
|
||||
|
||||
[b]MY_Input.php Codes[/b]
|
||||
**MY_Input.php Codes**
|
||||
```php
|
||||
|
||||
<?php
|
||||
@ -347,7 +347,7 @@ class MY_Input extends CI_Input{
|
||||
|
||||
|
||||
|
||||
[b]MY_Validation.php[/b]
|
||||
**MY_Validation.php**
|
||||
```php
|
||||
|
||||
<?php
|
||||
@ -666,7 +666,7 @@ var $_value = array();
|
||||
```
|
||||
|
||||
|
||||
[b]Congratulations, now you are able to access, validate and redefine assosiative arrays elements with no limits![/b]
|
||||
**Congratulations, now you are able to access, validate and redefine assosiative arrays elements with no limits!**
|
||||
|
||||
|
||||
[[Category:Contributions::Libraries::Miscallenous]]
|
@ -1,9 +1,9 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[[File:bashkir.zip|Version 1.7.1]] translated by marselester
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available.
|
||||
[/quote]
|
||||
|
@ -1,15 +1,15 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[[File:basque_2.0.2.zip|Version 2.0.2]] translated by Ander Goñi
|
||||
[[File:basque_1.7.2.zip|Version 1.7.2]] translated by Ander Goñi
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available.
|
||||
[/quote]
|
||||
|
||||
[b]Tags[/b]
|
||||
**Tags**
|
||||
Euskera
|
||||
Euskara
|
||||
ISO 639-1 Code: eu
|
||||
|
@ -1,9 +1,9 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[url=http://www.derekallard.com/img/post_resources/bulgarian.zip]Version 1.5.x[/url]
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available.
|
||||
[/quote]
|
||||
|
@ -18,7 +18,7 @@ Upload the Minify folder to your libraries folder. This is built using CI2 packa
|
||||
Below is an overview of different usages:
|
||||
|
||||
|
||||
[b]Minify JS file[/b]
|
||||
**Minify JS file**
|
||||
|
||||
```php
|
||||
|
||||
@ -28,7 +28,7 @@ echo $this->minify->js->min($file);
|
||||
|
||||
```
|
||||
|
||||
[b]Minify CSS file[/b]
|
||||
**Minify CSS file**
|
||||
|
||||
```php
|
||||
|
||||
@ -38,7 +38,7 @@ echo $this->minify->css->min($file);
|
||||
|
||||
```
|
||||
|
||||
[b]Minify and combine an array of files.[/b] Useful if you need files to be in a certain order.
|
||||
**Minify and combine an array of files.** Useful if you need files to be in a certain order.
|
||||
|
||||
```php
|
||||
|
||||
@ -47,7 +47,7 @@ $this->minify->combine_files(array('test/css/calendar.css', 'test/css/colorbox.c
|
||||
|
||||
```
|
||||
|
||||
[b]Minify and save a physical file[/b]
|
||||
**Minify and save a physical file**
|
||||
|
||||
```php
|
||||
|
||||
@ -58,7 +58,7 @@ $this->minify->save_file($contents, 'test/css/all.css');
|
||||
|
||||
```
|
||||
|
||||
[b]Minify an entire directory.[/b] The second param is an array of ignored files.
|
||||
**Minify an entire directory.** The second param is an array of ignored files.
|
||||
|
||||
```php
|
||||
|
||||
|
@ -4,11 +4,11 @@
|
||||
#### [color=green]Latest release: [url=http://cimyadmin.net/wiki/Download/]0.3b4[/url] (Feb 2nd, 2011, 11:11PM)[/color]
|
||||
|
||||
|
||||
The days of [b]PHPMyAdmin[/b] are numbered, and the count-down just reached 0. I appreciate what [b]PHPMyAdmin[/b] has done for the community, but all good things must come to an end. With death, comes rebirth. [b]CIMyAdmin[/b] is the new child. A cleaner, faster, better, stronger MySQL Administration tool. [b]CIMyAdmin[/b] is built on the light-weight [url= http://codeigniter.com/] Code Igniter Framework[/url]. it is designed with simplicity, elegance, and power in mind. It isn't tied to stigmas of the past, and in looking to the future, supports the latest and greatest of technologies. For those of you running on legacy systems, you're limited to legacy software.
|
||||
The days of **PHPMyAdmin** are numbered, and the count-down just reached 0. I appreciate what **PHPMyAdmin** has done for the community, but all good things must come to an end. With death, comes rebirth. **CIMyAdmin** is the new child. A cleaner, faster, better, stronger MySQL Administration tool. **CIMyAdmin** is built on the light-weight [url= http://codeigniter.com/] Code Igniter Framework[/url]. it is designed with simplicity, elegance, and power in mind. It isn't tied to stigmas of the past, and in looking to the future, supports the latest and greatest of technologies. For those of you running on legacy systems, you're limited to legacy software.
|
||||
|
||||
It's time for a breath of fresh air. It's time for [url=http://cimyadmin.net/]CIMyAdmin[/url]!
|
||||
|
||||
[b]Features[/b]
|
||||
**Features**
|
||||
* Lightweight / small footprint
|
||||
* Clean interface
|
||||
* Skinnable (clean xhtml)
|
||||
@ -16,11 +16,11 @@ It's time for a breath of fresh air. It's time for [url=http://cimyadmin.net/]CI
|
||||
* Super easy to install
|
||||
* Secure
|
||||
--------------------------
|
||||
[b]Server Requirements:[/b]
|
||||
**Server Requirements:**
|
||||
* PHP 5.0.2+
|
||||
* MySQL 4.1+
|
||||
|
||||
[b]Client Requirements:[/b]
|
||||
**Client Requirements:**
|
||||
* Firefox 2.0+
|
||||
* or Safari 2.0+
|
||||
* JavaScript Enabled
|
||||
|
@ -12,7 +12,7 @@ This can be very problematic: if you're caching CSS, for example, you want the c
|
||||
### Compatibility
|
||||
|
||||
|
||||
The following code is compatible and tested with [b]CodeIgniter 1.6.3 and 1.7.0[/b], if you want instructions for an older version of CodeIgniter, please view an older revision of this page. Thanks to [url=http://codeigniter.com/forums/member/67455/] Aquillyne[/url] for the idea and the previous version.
|
||||
The following code is compatible and tested with **CodeIgniter 1.6.3 and 1.7.0**, if you want instructions for an older version of CodeIgniter, please view an older revision of this page. Thanks to [url=http://codeigniter.com/forums/member/67455/] Aquillyne[/url] for the idea and the previous version.
|
||||
|
||||
### Advantages over built-in cache
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[[File:chinese_traditional_1.7.2.zip]] Chinese Traditional translated by achi
|
||||
Version 1.7.1 Chinese Traditional translated by achi
|
||||
@ -7,7 +7,7 @@ Version 1.7.0 Chinese Traditional translated by achi
|
||||
[url=http://my.opera.com/yarco/homes/blog/chinese.tar.gz]Version 1.3.3[/url] translated by yarco
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
[url=http://codeigniter.org.cn/user_guide]http://codeigniter.org.cn/user_guide[/url] CodeIgniter Chinese User Guide
|
||||
[/quote]
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[url=http://file.pulc.eu/ci_czech_1.7.1.zip]Version 1.7.1[/url] translated by Petr Pulc (UTF8)
|
||||
[url=http://file.pulc.eu/ci_czech_1.7.0.zip]Version 1.7.0[/url] translated by Petr Pulc (UTF8)
|
||||
@ -7,7 +7,7 @@
|
||||
[[File:czech.zip|Version 1.6.2]] translated by bretik (Note: mixed UTF8 & CP1250)
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
by Petr Pulc, [url=http://ci.pulc.eu]http://ci.pulc.eu[/url]:
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[url=http://www.filepanda.com/get/yldxxzk0/]Version 1.5.4[/url] translated by Zacharias
|
||||
[url=http://mirror.ordo.dk/codeigniter.com/danish_1.5.x.zip]Version 1.5.x[/url] translated by daath
|
||||
[url=http://joakimkejser.dk/media/diverse/danish_1.7.2.zip]Version 1.7.2[/url] translated by Joakim Kejser
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available.
|
||||
[/quote]
|
||||
|
@ -1,7 +1,7 @@
|
||||
[b]Introduction[/b]
|
||||
**Introduction**
|
||||
A while ago i was wild about [url=http://codeigniter.com/forums/viewthread/80439/]customizing codeigniter.php[/url] but it's possible to do this with hooks too and this is where the defaults library comes in
|
||||
|
||||
[b]The code[/b]
|
||||
**The code**
|
||||
|
||||
config/defaults.php :
|
||||
```php
|
||||
@ -100,7 +100,7 @@ class Defaults
|
||||
|
||||
```
|
||||
|
||||
[b]Installation[/b]
|
||||
**Installation**
|
||||
_ config/config.php setting enable_hooks to true
|
||||
_ config/hooks.php
|
||||
```php
|
||||
@ -117,7 +117,7 @@ $hook['post_controller'] = array('class' => 'Defaults',
|
||||
|
||||
```
|
||||
|
||||
[b]Usage[/b]
|
||||
**Usage**
|
||||
If you use the config file as it is you can create following file structure
|
||||
|
||||
application
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]Introduction[/b]
|
||||
**Introduction**
|
||||
|
||||
I noticed my view files get confusing because of all the little checks that have to be made when displaying values. For example
|
||||
```php
|
||||
@ -19,7 +19,7 @@ array(
|
||||
```
|
||||
This is why i created the display helper.
|
||||
|
||||
[b]Code[/b]
|
||||
**Code**
|
||||
The code is split up in two parts. There are constants and there is the display_helper.php file
|
||||
|
||||
The constants are added to the config/constants.php files and make it easier for you to change the default value where ever you used it.
|
||||
@ -83,7 +83,7 @@ function display_isset($value,$str='')
|
||||
```
|
||||
It are only a few functions but they make view files a lot easier to read.
|
||||
|
||||
[b]Usage[/b]
|
||||
**Usage**
|
||||
The example view code with the helper is
|
||||
```php
|
||||
|
||||
@ -113,7 +113,7 @@ An example of the display_isset function
|
||||
|
||||
```
|
||||
|
||||
[b]Updates[/b]
|
||||
**Updates**
|
||||
29-08-2008 : added replacement parameter to display function. Usage ;
|
||||
```php
|
||||
display($row['start_date'],DEFAULT_DATE,date('Y-m-d'))
|
||||
|
@ -1,9 +1,9 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
See [[Language_Translations]]
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available.
|
||||
[/quote]
|
||||
|
@ -1,8 +1,8 @@
|
||||
[b]Intro[/b]
|
||||
**Intro**
|
||||
I was writing a Session class and looking thought CI's default Session class and noticed it would set a new cookie every time you set/unset and userdata or flashdata and i started to think about the hooking feature and thought why not make it dynamic so any class can insert a hook on the fly. With this ability the session class could add a hook 'post_controller' so it would be able to send only one cookie. The best part is you don't have to enable hooking for this to work. Just drop the file in to your application's library directory. It works as an extension of CI's hooks class.
|
||||
|
||||
|
||||
[b]The bad news[/b]
|
||||
**The bad news**
|
||||
You can only hook the hooks that haven't happened yet.
|
||||
|
||||
Hooks that can be hooked..
|
||||
@ -16,7 +16,7 @@ If you extended Input, or Language you can hook lists 1 and 2.
|
||||
If you extended Config, URI, Router, or Output you can hook lists 1, 2, and 3.
|
||||
|
||||
|
||||
[b]Example[/b]
|
||||
**Example**
|
||||
```php
|
||||
|
||||
$hook['classref'] = &$this;
|
||||
@ -27,7 +27,7 @@ if($GLOBALS['EXT']->add_hook('post_controller', $hook) == false)
|
||||
|
||||
```
|
||||
|
||||
[b]Files[/b]
|
||||
**Files**
|
||||
MY_Hooks.php
|
||||
```php
|
||||
|
||||
@ -138,6 +138,6 @@ class MY_Hooks extends CI_Hooks {
|
||||
```
|
||||
|
||||
If there are any bugs and question feel free to pm/email me.
|
||||
[b]Author:[/b] [url=http://codeigniter.com/forums/member/90431/]dazoe[/url]
|
||||
**Author:** [url=http://codeigniter.com/forums/member/90431/]dazoe[/url]
|
||||
|
||||
[[Category:Contributions::Libraries::Miscallenous]]
|
@ -8,9 +8,9 @@ Licensed under [url=http://www.gnu.org/licenses/lgpl.html/]GNU Lesser General Pu
|
||||
|
||||
Please note that this class requires PHP 5.1.0 with SimpleXML and libxml and the cURL extension.
|
||||
|
||||
[b]For more details, support, feature request or packaged downloads please see[/b] the [url=http://www.kromack.com/feedburner-library-for-php-and-codeigniter/]FeedBurner Library for PHP and CodeIgniter[/url] dedicated page on my blog.
|
||||
**For more details, support, feature request or packaged downloads please see** the [url=http://www.kromack.com/feedburner-library-for-php-and-codeigniter/]FeedBurner Library for PHP and CodeIgniter[/url] dedicated page on my blog.
|
||||
|
||||
[b]FAQ[/b]
|
||||
**FAQ**
|
||||
|
||||
- If a path related error occurs when enabling cache, please ensure to add the final trailing slash to $path (e.g. ./folder/sub-folder/final-folder/).
|
||||
|
||||
@ -18,7 +18,7 @@ Please note that this class requires PHP 5.1.0 with SimpleXML and libxml and the
|
||||
|
||||
|
||||
|
||||
[b]How to use :[/b]
|
||||
**How to use :**
|
||||
|
||||
```php
|
||||
|
||||
@ -53,7 +53,7 @@ class Test extends Controller {
|
||||
```
|
||||
|
||||
|
||||
[b]Library's code (system/application/libraries/Feedburner.php):[/b]
|
||||
**Library's code (system/application/libraries/Feedburner.php):**
|
||||
|
||||
```php
|
||||
|
||||
|
@ -5,21 +5,21 @@ Released: October 26 2009
|
||||
CI Version: Tested with CodeIgniter 1.7.2
|
||||
Author: [url=http://toomanytabs.com]Ollie Rattue[/url]
|
||||
|
||||
[b]A Code Generator for CodeIgniter Forms[/b]
|
||||
**A Code Generator for CodeIgniter Forms**
|
||||
|
||||
[b]The problem[/b]
|
||||
**The problem**
|
||||
|
||||
Building validated forms in Code Igniter using the form_validation library takes too long. To build a form with the form validator and form libraries you need to enter the same value in multiple places; 3 times in the view, the label, the fields error message, and the field itself, again in the controller, once more in the model, and finally you need to setup the database schema to accept these values. This is repetitive and dull.
|
||||
|
||||
[b]The solution[/b]
|
||||
**The solution**
|
||||
|
||||
Build a little application to automate the large majority of this process. You enter the field names, types, labels and validation rules and it generates all the code for a working validated form.
|
||||
|
||||
[b]Considerations[/b]
|
||||
**Considerations**
|
||||
|
||||
Forms tend to have some bespoke element (AJAX, sessions, custom callbacks etc). Often libraries and scripts tend to try and do the whole process and thus force you into a mold. FormIgniter should simply write 4 files; the MVC and the db schema and then get out of the way.
|
||||
|
||||
[b]Where can I find this?[/b]
|
||||
**Where can I find this?**
|
||||
|
||||
Live application - [url]http://formigniter.org/app[/url]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[url=https://github.com/tomcode/ci-french-language-set/zipball/v2.1.2]Version v2.1.2[/url] Version 2.1.2 same as Version 2.1.0
|
||||
[url=https://github.com/tomcode/ci-french-language-set/zipball/v2.1.1]Version v2.1.1[/url] Version 2.1.1 same as Version 2.1.0
|
||||
@ -16,7 +16,7 @@ Version 1.7.2 same as Version 1.7.1
|
||||
[url=http://tomcode.com/inside/codeigniter/zips/ci_v1.5_lang_french_corr.zip]Version 1.5.x[/url] translated by tomcode (Note: fixed one left accent in db_lang.php of metalking's version)
|
||||
|
||||
|
||||
[b]CodeIgniter language repository[/b]
|
||||
**CodeIgniter language repository**
|
||||
[quote]
|
||||
[url=https://github.com/tomcode/ci-french-language-set]github.com/tomcode/ci-french-language-set[/url]
|
||||
[/quote]
|
||||
|
@ -1,10 +1,10 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[url=http://www.derekallard.com/img/post_resources/galician1_6_1.zip]Version 1.6.1[/url]
|
||||
[url=http://www.derekallard.com/img/post_resources/galician1_5_3.zip]Version 1.5.3[/url]
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available.
|
||||
[/quote]
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[url=https://github.com/tomcode/ci-german-language-set/zipball/v2.1.2]Version v2.1.2[/url] Version 2.1.2 same as Version 2.1.0
|
||||
[url=https://github.com/tomcode/ci-german-language-set/zipball/v2.1.1]Version v2.1.1[/url] Version 2.1.1 same as Version 2.1.0
|
||||
@ -18,12 +18,12 @@ Version 1.7.3 - no changes
|
||||
[url=http://tomcode.com/inside/codeigniter/zips/ci_german_translations_1.3.3_v1.zip]Version 1.3.3[/url] translated by tomcode
|
||||
[/quote]
|
||||
|
||||
[b]CodeIgniter language repository[/b]
|
||||
**CodeIgniter language repository**
|
||||
[quote]
|
||||
[url=https://github.com/tomcode/ci-german-language-set]github.com/tomcode/ci-german-language-set[/url]
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available.
|
||||
[/quote]
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[url=/wiki/File:greek_v1_1.7.2.zip/]Version 1.7.2[/url] translated by Iraklis Mathiopoulos
|
||||
[/quote]
|
||||
@ -7,7 +7,7 @@
|
||||
[[File:greek_v2.0.2.1.zip]] [CI Version 2.0.2 - Language Revision 1] translated by osci
|
||||
[/quote]
|
||||
|
||||
[b]Notes[/b]
|
||||
**Notes**
|
||||
Όλα τα αρχεία έχουν UTF-8 encoding.
|
||||
|
||||
Μερικά λήμματα έχουν μείνει αμετάφραστα για λόγους κοινής λογικής: Η μετάφραση πρέπει να μας βοηθάει και όχι να προσπαθούμε να καταλάβουμε τη εννοεί ο ποιητής. Παραδείγματα είναι τα λήμματα IP,HTML,URL. Λήμματα στα οποία υπάρχει ελληνική μετάφραση η οποία δεν είναι δημοφιλής έχω προσθέσει και τον αγγλικός όρο σε παρένθεση. Πχ. Επιφόρτωση(upload) Διακομιστής(server) Μεταφόρτωση(Download).
|
||||
@ -20,7 +20,7 @@
|
||||
Με βάση τα αρχεία της έκδοσης 1.7.2 έγινε και η αναβάθμιση στην έκδοση 2.0.2
|
||||
Ισχύουν τα παραπάνω.
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available.
|
||||
[/quote]
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
|
||||
[quote]
|
||||
[[File:hungarian-1.7.1.zip|Version 1.7.1]] translated by Edmond
|
||||
@ -11,7 +11,7 @@
|
||||
[[File:hungarian163.zip|Version 1.6.3]] translated by Thoer
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available.
|
||||
[/quote]
|
||||
|
@ -7,7 +7,7 @@ This helper function, written by [url=http://www.twitter.com/seangates]Sean Gate
|
||||
|
||||
This could easily be done in each controller, but I decided to write a small helper.
|
||||
|
||||
[b]NOTE:[/b] The "if" statement also includes a check for the script being located in a subdomain path. This is for a "dev" and "staging" setup where the the dev and staging servers are subdomains of the main URL. This is specific to MediaTemple's (dv) v3.0 servers using Plesk.
|
||||
**NOTE:** The "if" statement also includes a check for the script being located in a subdomain path. This is for a "dev" and "staging" setup where the the dev and staging servers are subdomains of the main URL. This is specific to MediaTemple's (dv) v3.0 servers using Plesk.
|
||||
|
||||
```php
|
||||
|
||||
|
@ -51,7 +51,7 @@ This article will assume you haven't already extended the CI model. If you have,
|
||||
|
||||
Create a new class in application/libraries. Name it MY_Model.php . Insert the following code.
|
||||
|
||||
[b]Note:[/b] There is an assumption that you have not changed the configuration value 'subclass_prefix'. If you have, use your custom subclass prefix instead of 'MY_'.
|
||||
**Note:** There is an assumption that you have not changed the configuration value 'subclass_prefix'. If you have, use your custom subclass prefix instead of 'MY_'.
|
||||
|
||||
```php
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
[b]CodeIgniter language packs (with working link)[/b]
|
||||
**CodeIgniter language packs (with working link)**
|
||||
[quote]
|
||||
[url=http://www.invernomuto.net/images/stories/applicazioni/codeigniter/italian_1.7.x.zip]CodeIgniter 1.7.x[/url] translated by invernomuto
|
||||
[/quote]
|
||||
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available.
|
||||
[/quote]
|
||||
|
@ -1,11 +1,11 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[url=http://codeigniter.jp/download]Version 2.0.1[/url]
|
||||
[url=http://codeigniter.com/wiki/c51c620f073c36e235a9f066bff05e02/]Version 1.7.0[/url]
|
||||
[url=http://www.cilab.info/data/japanese_translations1.5.zip]Version 1.5.x[/url]
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
[url=http://codeigniter.jp/user_guide_ja/]Version 2.0.1[/url]
|
||||
[url=http://userguide.cilab.info/]Version 1.5.4[/url]
|
||||
|
@ -1,11 +1,11 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[url=http://www.codeigniter-kr.org/source/download/373/682]Version 1.7.2 UTF-8 1.0[/url] ([[File:CI-1.7.2-Korean-UTF8-1.0.zip]]) | [url=http://www.codeigniter-kr.org/source/view/373/page/1]cleansugar[/url] 번역
|
||||
[url=http://www.codeigniter-kr.org/source/download/228/438]Version 1.7.2 UTF-8[/url] ([[File:korean.zip]]) | [url=http://www.codeigniter-kr.org/source/view/228/page/1]corean[/url]님께서 수고해주셨습니다.
|
||||
[url=http://codeigniter-kr.org/source/download/47/103]Version 1.7.1 UTF-8 1.1[/url] ([[File:ci-1.7_.1-korean-UTF8-1_.1_.zip]]) | [url=http://codeigniter-kr.org/source/view/47/page/3]cleansugar[/url] 번역
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
[url=http://codeigniter-kr.org/user_guide/]Version 1.7.2[/url] | 케이든님께서 수고해주셨습니다.(추가번역)
|
||||
[url=http://codeigniter-kr.org/user_guide_1.7.1/]Version 1.7.0[/url] | [url=http://day.pe.kr]최용운[/url]님께서 수고해주셨습니다.
|
||||
|
@ -1,9 +1,9 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[[File:CI_1.6.3_latvian_utf8_encoded.zip|Version 1.6.3]] translated by Skuja
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available.
|
||||
[/quote]
|
||||
|
@ -1,6 +1,6 @@
|
||||
[b]Current version:[/b] [[File:Matchbox-RC2.zip | RC2]]
|
||||
[b]Forum Thread:[/b] [url]http://codeigniter.com/forums/viewthread/128084/[/url]
|
||||
[b]Last update:[/b] 2009-09-18
|
||||
**Current version:** [[File:Matchbox-RC2.zip | RC2]]
|
||||
**Forum Thread:** [url]http://codeigniter.com/forums/viewthread/128084/[/url]
|
||||
**Last update:** 2009-09-18
|
||||
|
||||
Matchbox is a set of extended libraries that lets you organize your application in small components (modules). These modules have several advantages, the main one being portability. Modules are stored in their own folders and so they can be reused in other applications or shared between users by copying just that one folder.
|
||||
|
||||
@ -9,31 +9,31 @@ Matchbox is a set of extended libraries that lets you organize your application
|
||||
If you can run CodeIgniter, you've already met the server requirements, thus all you have to do is download and unzip the latest version of Matchbox right into your application directory.
|
||||
[[File:Matchbox-RC2.zip | Download Matchbox RC2]]
|
||||
|
||||
To test your installation, open up your browser and test the uri [b]http://yoursite.com/pathto/index.php/matchbox/[/b].
|
||||
To test your installation, open up your browser and test the uri **http://yoursite.com/pathto/index.php/matchbox/**.
|
||||
|
||||
If you see the Matchbox dashboard, you've successfully installed Matchbox!
|
||||
|
||||
If it's not working see [b]Troubleshooting[/b] further down this page, or if that doesn't answer your questions, ask them in the [url=argh]forum thread[/url].
|
||||
If it's not working see **Troubleshooting** further down this page, or if that doesn't answer your questions, ask them in the [url=argh]forum thread[/url].
|
||||
|
||||
## Usage
|
||||
|
||||
Installing Matchbox won't effect your current application, though. Any controllers in the [b]APPPATH/controllers/[/b] will work like they used to. To start modulizing your application you have to create a module.
|
||||
Installing Matchbox won't effect your current application, though. Any controllers in the **APPPATH/controllers/** will work like they used to. To start modulizing your application you have to create a module.
|
||||
|
||||
### Creating a module
|
||||
|
||||
To make a new module, you create a new folder in the [b]APPPATH/modules/[/b] directory. For instance, creating the directory [b]APPPATH/modules/my_new_module/[/b] results in a new module named 'my_new_module'.
|
||||
To make a new module, you create a new folder in the **APPPATH/modules/** directory. For instance, creating the directory **APPPATH/modules/my_new_module/** results in a new module named 'my_new_module'.
|
||||
|
||||
Within this folder you place additional folders for each type of resource you need in the module. Often you'll want controllers in your module, in which case you make a 'controllers' folder in your module directory. You can also add folders for config files, helpers, languages, libraries, models, plugins and views. Your module folder should like a lot like your application directory.
|
||||
|
||||
### Controllers in modules
|
||||
|
||||
So you've got a module directory with a [b]controllers/[/b] folder, and now you want to make a controller to place there. Luckily, module controllers are no different from regular controllers, so if you want to test Matchbox right away, you can go ahead and copy one of your exsisting controllers to your module (or just create a new one).
|
||||
So you've got a module directory with a **controllers/** folder, and now you want to make a controller to place there. Luckily, module controllers are no different from regular controllers, so if you want to test Matchbox right away, you can go ahead and copy one of your exsisting controllers to your module (or just create a new one).
|
||||
|
||||
To access your controller, you go to [b]http://example.com/index.php/MODULE-NAME/CONTROLLER-NAME/[/b]. Basically the only difference from accessing a regular controller, is that you have to add the module name before the controller name in the uri. If you only type in [b]http://example.com/index.php/MODULE-NAME/[/b] and not the controller name, Matchbox will try to load the controller with the same name as the module (unless [b]strict mode[/b] is enabled, which is explained futher down the page). This default controller can be customized, though, which is explained a litle further down the page.
|
||||
To access your controller, you go to **http://example.com/index.php/MODULE-NAME/CONTROLLER-NAME/**. Basically the only difference from accessing a regular controller, is that you have to add the module name before the controller name in the uri. If you only type in **http://example.com/index.php/MODULE-NAME/** and not the controller name, Matchbox will try to load the controller with the same name as the module (unless **strict mode** is enabled, which is explained futher down the page). This default controller can be customized, though, which is explained a litle further down the page.
|
||||
|
||||
### Resources in modules
|
||||
|
||||
Where things start to get interesting, is when you need to load resources or helpers from your controllers. If the resource is located in the same module or in your application directory, they can be loaded as usual (unless [b]strict mode[/b] is enabled, which is explained futher down the page).
|
||||
Where things start to get interesting, is when you need to load resources or helpers from your controllers. If the resource is located in the same module or in your application directory, they can be loaded as usual (unless **strict mode** is enabled, which is explained futher down the page).
|
||||
|
||||
However, if you need to load resource from another module than the one the controller resides in you'll have to tell Matchbox what module to look inside. You do this by either adding the module name as the last argument when using regular load calls.
|
||||
```php
|
||||
@ -48,17 +48,17 @@ $this->load->module_model('my_other_module', 'blog_model');
|
||||
|
||||
You can also make custom routes.php and autoload.php configuration files for your modules. Simply copy a regular CodeIgniter routes.php or autoload.php into your modules config directory and edit them to your liking.
|
||||
|
||||
The [b]default_controller[/b] you set in the module routes.php file will be used instead of the module name when typing only the module name as the uri. So if you go to [b]http://example.com/index.php/MODULE-NAME/[/b] it will attempt to load said default controller.
|
||||
The **default_controller** you set in the module routes.php file will be used instead of the module name when typing only the module name as the uri. So if you go to **http://example.com/index.php/MODULE-NAME/** it will attempt to load said default controller.
|
||||
|
||||
You can of course also add custom routes like in the regular routes.php.
|
||||
|
||||
## Configuration
|
||||
|
||||
You can configure your Matchbox installation by editing the [b]application/config/matchbox.php[/b] file. The file contains three configurable items; the 'strict' variable, 'paths' array and 'callers' array. All three are explained below.
|
||||
You can configure your Matchbox installation by editing the **application/config/matchbox.php** file. The file contains three configurable items; the 'strict' variable, 'paths' array and 'callers' array. All three are explained below.
|
||||
|
||||
### Module directories
|
||||
|
||||
By default, modules are located only in [b]APPPATH/modules/[/b], however this can be configured using the 'paths' config item in the matchbox configuration file. So if you want modules in both your application and system folders change the config item to the following.
|
||||
By default, modules are located only in **APPPATH/modules/**, however this can be configured using the 'paths' config item in the matchbox configuration file. So if you want modules in both your application and system folders change the config item to the following.
|
||||
```php
|
||||
$config['paths'] = array(APPPATH.'modules', BASEPATH.'modules');
|
||||
```
|
||||
@ -67,16 +67,16 @@ $config['paths'] = array(APPPATH.'modules', BASEPATH.'modules');
|
||||
|
||||
Matchbox is able to determine where a certain load call originates from using backtraces. What this means, is that even your request starts in a regular controller, and that controller loads a library in a module and that library attempts to load a model, Matchbox will now that the calling library is located in a certain module and attempt to find the model accordingly.
|
||||
|
||||
[b]However[/b], if you have, say, a custom view library that you call instead of the regular loading of views, and that library is located in your application folder then if a module controller calls said library to load a view in the same module, then Matchbox will think that the view is located in your application directory, because the final view request comes from the custom view library located in the application folder.
|
||||
**However**, if you have, say, a custom view library that you call instead of the regular loading of views, and that library is located in your application folder then if a module controller calls said library to load a view in the same module, then Matchbox will think that the view is located in your application directory, because the final view request comes from the custom view library located in the application folder.
|
||||
|
||||
To remedy this, you can add your custom view library the the [b]caller[/b] configuration array in the matchbox configuration file.
|
||||
To remedy this, you can add your custom view library the the **caller** configuration array in the matchbox configuration file.
|
||||
```php
|
||||
$config['callers'] = array(APPPATH.'libraries/Custom_view_lib.php');
|
||||
```
|
||||
|
||||
### Strict mode
|
||||
|
||||
In the Matchbox configuration file is a [b]strict[/b] config item than can be either TRUE or FALSE.
|
||||
In the Matchbox configuration file is a **strict** config item than can be either TRUE or FALSE.
|
||||
|
||||
By default strict mode is disabled. This means that Matchbox will do several additional checks when performing searches for controllers and other resources. For instance, when the uri only contains a module name, Matchbox will attempt to find a controller with the same name as the module, but not with strict mode enabled. More importantly, with strict mode enabled, $this->load->something calls will only search for resources in the current module (and system directory) but not in the application directory. So if a module controller needs to load a helper from the application directory you must specifically do it like so:
|
||||
```php
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]CodeIgniter language packs:[/b]
|
||||
**CodeIgniter language packs:**
|
||||
[quote]
|
||||
[url=http://files.davidsteinsland.net/CodeIgniter_1.7.2_-_norwegian.zip]CodeIgniter 1.7.2[/url]
|
||||
[/quote]
|
||||
|
@ -3,7 +3,7 @@
|
||||
[[File:MDB2.zip]]
|
||||
|
||||
<br>
|
||||
[b]Tutorials Created By Intekhab A Rizvi[/b]<br>
|
||||
**Tutorials Created By Intekhab A Rizvi**<br>
|
||||
<p>I use codeigniter frequently for my project, but what i always need to do is use Pear MDB2 insist of codeigniter ADR, so below is some simple step by which you can use PEAR MDB2 in your codeigniter framework.</p>
|
||||
|
||||
<b>Step 1</b> : Install Pear and add pear folder in your php.ini files include option.
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[url=http://www.kishmate.com/CodeIgniter/language/1.7.1_persian.zip]Version 1.7.1[/url] translated by Borzoo Mossavari
|
||||
[url=http://www.kishmate.com/CodeIgniter/language/1.7.0_persian.zip]Version 1.7.0[/url] translated by Borzoo Mossavari
|
||||
@ -6,7 +6,7 @@
|
||||
[url=http://www.kishmate.com/CodeIgniter/language/1.6.2_persian.zip]Version 1.6.2[/url] translated by Borzoo Mossavari
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available.
|
||||
[/quote]
|
||||
|
@ -10,13 +10,13 @@ The forum thread mentioned above discusses the established need for a supported
|
||||
### The key question
|
||||
|
||||
|
||||
[b]Question:[/b] Why a commercial product?
|
||||
**Question:** Why a commercial product?
|
||||
|
||||
or as it was asked in the forums...
|
||||
|
||||
Why not just open up the code?
|
||||
|
||||
[b]Answer:[/b] [url=http://codeigniter.com/forums/viewreply/465207/]Forum Post[/url]
|
||||
**Answer:** [url=http://codeigniter.com/forums/viewreply/465207/]Forum Post[/url]
|
||||
|
||||
## Resources
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[url=http://prdownloads.sourceforge.net/rkcmf/polish_code_igniter.zip?download]Version 1.3.3[/url] translated by riklaunim, groadin
|
||||
[/quote]
|
||||
@ -15,7 +15,7 @@
|
||||
[url=http://www.sinsoft.pl/files/codeigniter-1.7.2-polish-utf8.zip]Version 1.7.2[/url] translated by sinsoft
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available.
|
||||
[/quote]
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
PT-BR
|
||||
[[File:pt-br_2.1.0_utf8.zip | Version 2.1.0 (pt-br)]] | Revised 29.11.2011 | UTF-8 | by Matheus G. Bombonato
|
||||
@ -15,7 +15,7 @@ PT-PT
|
||||
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available.
|
||||
[/quote]
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
|
||||
[quote]
|
||||
[url=http://codeigniter.com/wiki/File:romanian-1.7.1.zip/]Version 1.7.x[/url] translated by Edmond.
|
||||
@ -12,7 +12,7 @@
|
||||
[url=http://www.derekallard.com/img/post_resources/romanian.zip]Version 1.5.x[/url] translated by Marius Visan
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available.
|
||||
[/quote]
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[[File:CI-Russian-2.0.0.zip|Version 2.0]]
|
||||
[/quote]
|
||||
@ -15,7 +15,7 @@
|
||||
[url=http://rmcreative.ru/files/translations/ci_russian_162.rar]Version 1.6.2[/url] translated by Alexei Shulga / Alexander 'Sam Dark' Makarov
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
[url=http://code-igniter.ru/]Russian community translation[/url]
|
||||
[/quote]
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
|
||||
[quote]
|
||||
[[File:ci_slovak_utf_1.7.1_corrected_by_tio289.zip|Version 1.7.1 (UTF8) - Corrected]] translated by Andrej Szolgay, corrected by Kristián Feldsam
|
||||
@ -7,7 +7,7 @@
|
||||
[[File:ci_slovak_utf_1.7.1.zip|Version 1.7.1 (UTF8)]] translated by Andrej Szolgay
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available.
|
||||
[/quote]
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
|
||||
From now on the language pack is available on [url=https://github.com/Coccodrillo/Slovenski-prevod-za-Codeigniter]GitHub[/url], this is a direct download link to [url=https://github.com/Coccodrillo/Slovenski-prevod-za-Codeigniter/tarball/master]latest available translation[/url]. I will use tags to keep track of versions, and post them below.
|
||||
|
||||
@ -22,7 +22,7 @@ From now on the language pack is available on [url=https://github.com/Coccodrill
|
||||
[[File:slovenian.zip|Version 1.7.2 (UTF8)]] translated by Coccodrillo
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available.
|
||||
[/quote]
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[url=http://dl-web.dropbox.com/get/common/spanish_ci_1.7.2.rar?w=1aa52722]Version 1.7.2[/url] translated by ReyPM (aka ReynierPM)
|
||||
[url=http://www.4shared.com/file/57477180/a1c0f41f/163_spanish.html]Version 1.6.3[/url] translated by Miguel Herrero
|
||||
@ -9,7 +9,7 @@
|
||||
[url=http://www.semjanelas.net/codeigniter/ci_spanish_1.3.3.zip]Version 1.3.3[/url] translated by ReynierPM
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
[url=http://www.areadepruebas.com.ar/]Version 2.1.0[/url] translated by seacat
|
||||
[url=http://www.areadepruebas.com.ar/]Version 2.0.3[/url] translated by seacat
|
||||
|
@ -1,9 +1,9 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[url=http://www.derekallard.com/blog/post/swedish-language-pack-for-codeigniter-16/]Version 1.6.x[/url] translated by Mikael Johansson
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available.
|
||||
[/quote]
|
||||
|
@ -1,4 +1,4 @@
|
||||
Title: [b]Total Shop UK eCommerce[/b]
|
||||
Title: **Total Shop UK eCommerce**
|
||||
Version: 1.0
|
||||
Homepage: [url]http://www.totalshopuk.com/[/url]
|
||||
Download From: [url]http://sourceforge.net/projects/totalshopuk/files/[/url]
|
||||
@ -7,11 +7,11 @@ How to install: [url]http://www.youtube.com/watch?v=4PDbmBsow_s[/url]
|
||||
|
||||
Total Shop UK eCommerce is finally ready for its first initial public trials.
|
||||
|
||||
[b]What is it?[/b]
|
||||
**What is it?**
|
||||
|
||||
Total Shop UK is an eCommerce project for developers written in PHP for the CodeIgniter framework. It’s not like other eCommerce projects that provide you with loads of unnecessary features.
|
||||
|
||||
[b]Features:[/b]
|
||||
**Features:**
|
||||
|
||||
* Search Engine Optimised (SEO)
|
||||
* Ajax Functionality
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[[File:turkish_210.zip|Version 2.1.0]] Translated by Mustafa NAVRUZ
|
||||
[[File:CI-RC-V202-Turkish_Lang_Pack.zip|Version Reactor 2.0.2]] translated by Mustafa NAVRUZ
|
||||
@ -10,7 +10,7 @@
|
||||
[[File:turkish_153_windows1254.zip|Version 1.5.3]] translated by M.Musa Ülker - musaulker (Note: Windows-1254 Encoded)
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
[url]http://codeigniter.gen.tr/user_guide[/url]
|
||||
[/quote]
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
I have created a URL Redirecting service using CodeIgniter 1.7.1. If you are interested in the source, let me know and I will post the controllers and models.
|
||||
|
||||
The site is called [b]9source[/b]. The URL is [url=http://9src.com]http://9src.com[/url]
|
||||
The site is called **9source**. The URL is [url=http://9src.com]http://9src.com[/url]
|
||||
|
||||
It was actually very easy to create. The hardest part was generating the short URL. I had to come up with a way to create a unique identifier, and keep it short. I came up with the idea of just starting the first one at 'a' (url of http://9src.com/a) and then "add" 1 to it each time. URLs would end up looking like this:
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[[File:CI_Ukrainian_1.7.0.zip|Version 1.7.0]] by Paul V. Drozd aka Angmarian
|
||||
[/quote]
|
||||
|
@ -73,7 +73,7 @@ $db['vbulletin']['dbcollat'] = "utf8_general_ci";
|
||||
|
||||
```
|
||||
|
||||
[b]Important![/b] Make sure that you reconfigure your default database [b]not to use persistent database connection[/b] otherwise CI will not be able to handle this dual DB solution.
|
||||
**Important!** Make sure that you reconfigure your default database **not to use persistent database connection** otherwise CI will not be able to handle this dual DB solution.
|
||||
|
||||
#### Step 4.
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
[b]Vietnamese language packs[/b]
|
||||
**Vietnamese language packs**
|
||||
[quote]
|
||||
[[File:vietnamese.zip|Version 1.7.2]] translated by Nguyễn Đình Trung <nguyendinhtrung141@gmail.com>
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available
|
||||
[/quote]
|
||||
|
@ -4,10 +4,10 @@ The Random Plugin for CodeIgniter is a simple plugin that allow to generate rand
|
||||
|
||||
It's composed by two functions, the first help you to generate random strings, and the second to generate random int.
|
||||
|
||||
[b]Plugin home :[/b] [url=http://www.kromack.com/codeigniter/plugin-random-pour-codeigniter/]Random Plugin[/url]
|
||||
**Plugin home :** [url=http://www.kromack.com/codeigniter/plugin-random-pour-codeigniter/]Random Plugin[/url]
|
||||
|
||||
|
||||
[b]How to use :[/b]
|
||||
**How to use :**
|
||||
|
||||
```php
|
||||
|
||||
@ -23,7 +23,7 @@ echo generateInt(8);
|
||||
```
|
||||
|
||||
|
||||
[b]Plugin's code :[/b]
|
||||
**Plugin's code :**
|
||||
|
||||
```php
|
||||
|
||||
|
@ -1,19 +1,19 @@
|
||||
[i]reCAPTCHA[/i] addon is originally written by [url=http://codeigniter.com/forums/member/69892/]vendiddy[/url] ([url=http://codeigniter.com/forums/viewthread/94299/]T[/url]) but, it's using old validation class.
|
||||
This one is packed and it uses new version of validation class.
|
||||
[i]reCAPTCHA [b]2[/b][/i] is rewritten version of old reCAPTCHA and it uses new version of validation class (form_validation).
|
||||
[i]reCAPTCHA **2**[/i] is rewritten version of old reCAPTCHA and it uses new version of validation class (form_validation).
|
||||
This package includes ReadMe and with Quick Start guide.
|
||||
|
||||
|
||||
[style=codeblock][b][u]Important![/u][/b] You must have account on reCAPTCHA.NET to get public and private keys. Without keys, this addon won't work!![/style]
|
||||
[style=codeblock]**[u]Important![/u]** You must have account on reCAPTCHA.NET to get public and private keys. Without keys, this addon won't work!![/style]
|
||||
|
||||
---------------------------------------------------------------------------------------------------------
|
||||
[size=4][u][b]Information[/b][/u][/size]
|
||||
[b]Author:[/b] [url=http://codeigniter.com/forums/member/78099/]Blazeme[/url]
|
||||
[b]Version:[/b] 1.0
|
||||
[b]CI version:[/b] 1.7
|
||||
[b]Topic:[/b] [url=http://codeigniter.com/forums/viewthread/96365/]Here[/url]
|
||||
[size=4][u]**Information**[/u][/size]
|
||||
**Author:** [url=http://codeigniter.com/forums/member/78099/]Blazeme[/url]
|
||||
**Version:** 1.0
|
||||
**CI version:** 1.7
|
||||
**Topic:** [url=http://codeigniter.com/forums/viewthread/96365/]Here[/url]
|
||||
|
||||
[size=4][u][b]Changelog[/b][/u][/size]
|
||||
[size=4][u]**Changelog**[/u][/size]
|
||||
```php
|
||||
|
||||
Version 1.0:
|
||||
@ -22,6 +22,6 @@ Version 1.0:
|
||||
```
|
||||
|
||||
|
||||
[size=6][b][[File:recaptcha.zip|DOWNLOAD]][/b][/size]
|
||||
[size=6]**[[File:recaptcha.zip|DOWNLOAD]]**[/size]
|
||||
|
||||
[[Category:Contributions::Libraries::Miscallenous]]
|
@ -4,10 +4,10 @@ The unicode2iso Plugin for CodeIgniter is a simple plugin that allow you to cove
|
||||
|
||||
You have to set manually in $retrieve all HTML elements wich you allow to be retrieved.
|
||||
|
||||
[b]Plugin home :[/b] [url=http://www.kromack.com/codeigniter/plugin-unicode2iso-pour-codeigniter/]unicode2iso Plugin[/url]
|
||||
**Plugin home :** [url=http://www.kromack.com/codeigniter/plugin-unicode2iso-pour-codeigniter/]unicode2iso Plugin[/url]
|
||||
|
||||
|
||||
[b]How to use :[/b]
|
||||
**How to use :**
|
||||
|
||||
```php
|
||||
|
||||
@ -22,7 +22,7 @@ echo unicode2iso($yourString);
|
||||
```
|
||||
|
||||
|
||||
[b]Plugin's code :[/b]
|
||||
**Plugin's code :**
|
||||
|
||||
```php
|
||||
|
||||
|
@ -25,18 +25,18 @@ Co-Author: Pat Andrew ( [url]http://patandrew.com[/url] )
|
||||
|
||||
|
||||
|
||||
[size=5][b]Installation:[/b][/size]
|
||||
[size=5]**Installation:**[/size]
|
||||
----------------------------------------------------------------------
|
||||
|
||||
|
||||
[size=4][b]Step 1.[/b][/size]
|
||||
Upload the vBuser files to their respective folders from [b]application/[/b]
|
||||
[size=4]**Step 1.**[/size]
|
||||
Upload the vBuser files to their respective folders from **application/**
|
||||
|
||||
|
||||
|
||||
|
||||
[size=4][b]Step 2.[/b][/size]
|
||||
Add the following to the config file: [b]hooks.php[/b]
|
||||
[size=4]**Step 2.**[/size]
|
||||
Add the following to the config file: **hooks.php**
|
||||
|
||||
```php
|
||||
|
||||
@ -60,26 +60,26 @@ Add the following to the config file: [b]hooks.php[/b]
|
||||
|
||||
|
||||
|
||||
[size=4][b]Step 3.[/b][/size]
|
||||
Modify [b]config/vbuser.php[/b] and add your Forum URL, and default avatar path. Also modify any other features you need.
|
||||
[size=4]**Step 3.**[/size]
|
||||
Modify **config/vbuser.php** and add your Forum URL, and default avatar path. Also modify any other features you need.
|
||||
|
||||
|
||||
|
||||
[size=4][b]Step 4.[/b][/size]
|
||||
[size=4]**Step 4.**[/size]
|
||||
Implement in your CI powered pages and Enjoy!
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[size=5][b]Usage:[/b][/size]
|
||||
[size=5]**Usage:**[/size]
|
||||
----------------------------------------------------------------------
|
||||
|
||||
|
||||
Set up a form as seen in [b]example/views/login.php[/b] that points to your processing controller/function. I have created a simple processing controller called [b]example/controllers/process.php[/b] for login and logout procedures. You may use them or edit them as you wish.
|
||||
Set up a form as seen in **example/views/login.php** that points to your processing controller/function. I have created a simple processing controller called **example/controllers/process.php** for login and logout procedures. You may use them or edit them as you wish.
|
||||
|
||||
|
||||
User data will be stored in an array [b]$this->vbuser->info;[/b]
|
||||
User data will be stored in an array **$this->vbuser->info;**
|
||||
|
||||
|
||||
You can get a user's avatar url with:
|
||||
@ -91,12 +91,12 @@ $this->vbuser->getAvatar($this->vbuser->info['userid']);
|
||||
|
||||
|
||||
|
||||
[size=4][b]Download:[/b][/size]
|
||||
[size=4]**Download:**[/size]
|
||||
----------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
[size=3][b][url=http://codeigniter.com/wiki/552550cf455f7f2247c226b35a010b30/]Download this package![/url][/b][/size]
|
||||
[size=3]**[url=http://codeigniter.com/wiki/552550cf455f7f2247c226b35a010b30/]Download this package![/url]**[/size]
|
||||
|
||||
|
||||
[[Category:Contributions::Libraries::Authentication]]
|
@ -3,7 +3,7 @@
|
||||
<h3>3D Pie Chart Library</h3>
|
||||
This library is an implementation of the [url=http://www.peters1.dk/webtools/php/lagkage.php?sprog=en]Script to 3D pie chart with PHP[/url] by [url=http://www.peters1.dk]Rasmus Petersen[/url] - all credits go to him.
|
||||
|
||||
[b]My changes[/b]
|
||||
**My changes**
|
||||
* Accepts data and labels as arrays
|
||||
* Allows TTF fonts in the labels (optional)
|
||||
* Handles direct stream output or save to file
|
||||
|
@ -1,6 +1,6 @@
|
||||
[[Category:Core]] | [[Category:Core::Database]] | [[Category:Core::Community]]
|
||||
|
||||
This is a replacement of the [b]system/database/DB_active_rec.php[/b] file, allowing you to use several CI Active Record threads at the same time without overlapping. See the relevant [url=http://codeigniter.com/forums/viewthread/54113/]forum thread[/url].
|
||||
This is a replacement of the **system/database/DB_active_rec.php** file, allowing you to use several CI Active Record threads at the same time without overlapping. See the relevant [url=http://codeigniter.com/forums/viewthread/54113/]forum thread[/url].
|
||||
|
||||
Sample code:
|
||||
```php
|
||||
@ -28,7 +28,7 @@ $result = $query->first_row();
|
||||
$this->db->set_identifier('default');
|
||||
```
|
||||
|
||||
Some apps (like Rapyd in dataset.php around line 253) tweak some AR variables without using the public functions. You'll have to hack them if you want to use the new [b]DB_active_rec.php[/b]. For example in Rapyd, the lines
|
||||
Some apps (like Rapyd in dataset.php around line 253) tweak some AR variables without using the public functions. You'll have to hack them if you want to use the new **DB_active_rec.php**. For example in Rapyd, the lines
|
||||
|
||||
```php
|
||||
// ...
|
||||
|
@ -8,7 +8,7 @@ This alternate pagination lib (Requires PHP5) uses page numbers in the URI as op
|
||||
|
||||
This is the library init code
|
||||
|
||||
[b]application/init/init_altpage.php[/b]
|
||||
**application/init/init_altpage.php**
|
||||
```php
|
||||
<?php if (!defined('BASEPATH')) exit('Direct access not permitted!');
|
||||
|
||||
@ -27,7 +27,7 @@ $obj->ci_is_loaded[] = 'altpage';
|
||||
|
||||
This is the lib itself.
|
||||
|
||||
[b]application/libraries/altpage.php[/b]
|
||||
**application/libraries/altpage.php**
|
||||
```php
|
||||
<?php
|
||||
/* CI License & stuff */
|
||||
@ -111,7 +111,7 @@ class Altpage {
|
||||
|
||||
Here's the simple controller
|
||||
|
||||
[b]application/controllers/testpagination.php[/b]
|
||||
**application/controllers/testpagination.php**
|
||||
```php
|
||||
<?php
|
||||
|
||||
@ -139,7 +139,7 @@ Here's the example view in [url=http://course-works.com/customized-paper]customi
|
||||
|
||||
[url=http://www.unitransservice.org]English Translations[/url]
|
||||
|
||||
[b]application/views/pgtest.php[/b]
|
||||
**application/views/pgtest.php**
|
||||
```php
|
||||
<html>
|
||||
<head>
|
||||
|
@ -94,7 +94,7 @@ The usage is simple:
|
||||
```
|
||||
|
||||
|
||||
Here's [b]MY_Validation.php[/b] in its entirety:
|
||||
Here's **MY_Validation.php** in its entirety:
|
||||
|
||||
```php
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
[[Category:Core::Deprecated]]
|
||||
|
||||
[b]Note:[/b] This patch has been removed in favour of using [[ConfigLoadPatch]]
|
||||
**Note:** This patch has been removed in favour of using [[ConfigLoadPatch]]
|
||||
|
||||
### Migrating
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
[[Category:Core::Cache]]
|
||||
The way CodeIgniter does Query Caching (namely Controller-based caching) [b]works fine with small and decentralized pages[/b] where all controllers are pretty much independent.
|
||||
But as soon as you have a [b]model that's shared[/b] by a handful of controllers, you [b]end up with a big mess[/b].
|
||||
The way CodeIgniter does Query Caching (namely Controller-based caching) **works fine with small and decentralized pages** where all controllers are pretty much independent.
|
||||
But as soon as you have a **model that's shared** by a handful of controllers, you **end up with a big mess**.
|
||||
|
||||
Just take a model for generating the data for a tag cloud that's displayed on every page.
|
||||
You would end up with dozens of duplicates and handling those caches would suck as hell.
|
||||
|
||||
I got pretty sick of this and thus I of re-wrote pretty much CI's entire caching storage mechanisms.
|
||||
Using my code CI now supports [b]several[/b] different ways to cache database queries.
|
||||
Using my code CI now supports **several** different ways to cache database queries.
|
||||
|
||||
See this [url=http://codeigniter.com/forums/viewthread/78146/]topic[/url] for ongoing discussions.
|
||||
|
||||
|
@ -4,16 +4,16 @@ This page will keep track of all Regex improvements. Once the code improvement h
|
||||
DO NOT EDIT SUBMITTED CODE. IF YOU THINK OF A BETTER IMPROVEMENT, MARK THE CURRENT CODE AS "NOT APPROVED" AND SUBMIT YOUR OWN.
|
||||
|
||||
****************************************************************************************************
|
||||
[b][color=red]NOT ADDED[/color][/b] [b]system/helpers/string_helper.php - line 70[/b]
|
||||
**[color=red]NOT ADDED[/color]** **system/helpers/string_helper.php - line 70**
|
||||
****************************************************************************************************
|
||||
[b][color=green]SUGGESTED BY:[/color][/b] Geert De Deckere
|
||||
**[color=green]SUGGESTED BY:[/color]** Geert De Deckere
|
||||
****************************************************************************************************
|
||||
[b][color=green]APPROVED BY:[/color][/b]
|
||||
**[color=green]APPROVED BY:[/color]**
|
||||
****************************************************************************************************
|
||||
[b][color=red]NOT APPROVED BY:[/color][/b]
|
||||
**[color=red]NOT APPROVED BY:[/color]**
|
||||
****************************************************************************************************
|
||||
|
||||
[b][color=red]BEFORE:[/color][/b] 10000 iterations take about [b]0.0873 seconds[/b]
|
||||
**[color=red]BEFORE:[/color]** 10000 iterations take about **0.0873 seconds**
|
||||
```php
|
||||
|
||||
function reduce_double_slashes($str)
|
||||
@ -24,7 +24,7 @@ function reduce_double_slashes($str)
|
||||
```
|
||||
|
||||
|
||||
[b][color=green]AFTER:[/color][/b] 10000 iterations take about [b]0.0429 seconds[/b]
|
||||
**[color=green]AFTER:[/color]** 10000 iterations take about **0.0429 seconds**
|
||||
```php
|
||||
|
||||
function reduce_double_slashes($str)
|
||||
@ -37,18 +37,18 @@ function reduce_double_slashes($str)
|
||||
|
||||
|
||||
|
||||
[b]Just copy and paste the template below to add your own addition.[/b]
|
||||
**Just copy and paste the template below to add your own addition.**
|
||||
|
||||
****************************************************************************************************
|
||||
[b][color=red]NOT ADDED[/color][/b] [b]system/REPLACE/REPLACE.php - line ??[/b]
|
||||
**[color=red]NOT ADDED[/color]** **system/REPLACE/REPLACE.php - line ??**
|
||||
****************************************************************************************************
|
||||
[b][color=green]SUGGESTED BY:[/color][/b]
|
||||
**[color=green]SUGGESTED BY:[/color]**
|
||||
****************************************************************************************************
|
||||
[b][color=green]APPROVED BY:[/color][/b]
|
||||
**[color=green]APPROVED BY:[/color]**
|
||||
****************************************************************************************************
|
||||
[b][color=red]NOT APPROVED BY:[/color][/b]
|
||||
**[color=red]NOT APPROVED BY:[/color]**
|
||||
****************************************************************************************************
|
||||
[b][color=red]BEFORE:[/color][/b]
|
||||
**[color=red]BEFORE:[/color]**
|
||||
```php
|
||||
|
||||
//put the original code here
|
||||
@ -56,7 +56,7 @@ function reduce_double_slashes($str)
|
||||
```
|
||||
|
||||
|
||||
[b][color=green]AFTER:[/color][/b]
|
||||
**[color=green]AFTER:[/color]**
|
||||
```php
|
||||
|
||||
//put the replaced code here
|
||||
|
@ -30,7 +30,7 @@ Create a /pdo/ subdirectory, as in:
|
||||
CodeIgniter/system/database/drivers/pdo/
|
||||
```
|
||||
|
||||
Unzip pdo_sqlite_driver.zip into the new directory [b]/pdo/[/b].
|
||||
Unzip pdo_sqlite_driver.zip into the new directory **/pdo/**.
|
||||
|
||||
Un-comment the PHP5 PDO database interface drivers in PHP.ini
|
||||
```php
|
||||
|
@ -2,9 +2,9 @@
|
||||
|
||||
This language class extension allows you to automatically prefix all site urls with a language abbreviation that is pre-defined in your config file or from a link and automatically load the corresponding language translation file, the route will then be corrected by the route regex for everything to work as normal.
|
||||
|
||||
Somewhere in the site you can provide the user with links allowing them to change their desired language name. http://domain.tld/[color=red][b]en[/b][/color]/controller/method, http://domain.tld/[color=red][b]es[/b][/color]/controller/method, http://domain.tld/[color=red][b]de[/b][/color]/controller/method
|
||||
Somewhere in the site you can provide the user with links allowing them to change their desired language name. http://domain.tld/[color=red]**en**[/color]/controller/method, http://domain.tld/[color=red]**es**[/color]/controller/method, http://domain.tld/[color=red]**de**[/color]/controller/method
|
||||
|
||||
[b]application/config/routes.php[/b]
|
||||
**application/config/routes.php**
|
||||
```php
|
||||
|
||||
//route example: http://domain.tld/en/controller => http://domain.tld/controller
|
||||
@ -13,7 +13,7 @@ $route['(\w{2})'] = $route['default_controller'];
|
||||
|
||||
```
|
||||
|
||||
[b]application/config/config.php[/b]
|
||||
**application/config/config.php**
|
||||
```php
|
||||
|
||||
/*
|
||||
@ -40,7 +40,7 @@ $config['lang_ignore'] = TRUE;
|
||||
|
||||
```
|
||||
|
||||
[b]application/core/MY_Lang.php[/b]
|
||||
**application/core/MY_Lang.php**
|
||||
```php
|
||||
|
||||
<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
|
||||
|
@ -13,11 +13,11 @@ Code Igniter comes with various libraries that you can use on-demand. You can al
|
||||
```
|
||||
$this->load->library('samplelib');
|
||||
```
|
||||
CI first checks to see if a [b]method[/b] is defined for loading that library. In this case, it will look for a method called _init_samplelib() within your application controller (although this isn't documented in the User Guide yet).
|
||||
CI first checks to see if a **method** is defined for loading that library. In this case, it will look for a method called _init_samplelib() within your application controller (although this isn't documented in the User Guide yet).
|
||||
|
||||
If it doesn't find that, it will search for a [b]file[/b] within application/init called "init_samplelib" (with EXT as the extension).
|
||||
If it doesn't find that, it will search for a **file** within application/init called "init_samplelib" (with EXT as the extension).
|
||||
|
||||
The advantage of both of these techniques is that you can then load a library with [i]any name that you desire[/i]. Why is this cool? Because it simplifies [b]version management[/b].
|
||||
The advantage of both of these techniques is that you can then load a library with [i]any name that you desire[/i]. Why is this cool? Because it simplifies **version management**.
|
||||
|
||||
With a growing community and access to new tools for distributing add-ons for Code Igniter, versioning is going to become really important.
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
[b]CodeIgniter language packs[/b]
|
||||
**CodeIgniter language packs**
|
||||
[quote]
|
||||
[url=http://php.com.hr/download/codeigniter_croatian.zip]Version 1.6.2[/url] translated by Zoran Vucinic
|
||||
[/quote]
|
||||
|
||||
[b]User Guide translations[/b]
|
||||
**User Guide translations**
|
||||
[quote]
|
||||
None available.
|
||||
[/quote]
|
@ -1,7 +1,7 @@
|
||||
Extends the functionality of the CI_Log class by allowing users to choose which threshold levels they want to log, rather than logging all the way up to the given threshold value.
|
||||
|
||||
|
||||
[b]Usage[/b]
|
||||
**Usage**
|
||||
|
||||
|
||||
Create a file named Log.php in application/libraries/ and paste the script below into it:
|
||||
@ -161,7 +161,7 @@ $config['log_threshold'] = array(3);
|
||||
```
|
||||
|
||||
|
||||
[b]Note:[/b] If you wish to retain the original functionality of the $config['log_threshold'] variable, simply pass an integer as the value:
|
||||
**Note:** If you wish to retain the original functionality of the $config['log_threshold'] variable, simply pass an integer as the value:
|
||||
|
||||
|
||||
```php
|
||||
|
@ -1,8 +1,8 @@
|
||||
This extension to the core Validation class provides a method for setting custom error messages per field. CodeIgniter's default behaviour is to set errors based on the validation rule that failed to be satisfied. These can be customized, but not per field.
|
||||
|
||||
Note that errors configured with this new method will be displayed [b]regardless[/b] of what rule was unsatisfied, so it is good practice to make your custom errors very clear as to what is required.
|
||||
Note that errors configured with this new method will be displayed **regardless** of what rule was unsatisfied, so it is good practice to make your custom errors very clear as to what is required.
|
||||
|
||||
Here's the code which you can save in [b]application/libraries/MY_Validation.php[/b], or, if you're already extending Validation, add this method to your extension.
|
||||
Here's the code which you can save in **application/libraries/MY_Validation.php**, or, if you're already extending Validation, add this method to your extension.
|
||||
|
||||
```php
|
||||
<?php
|
||||
@ -35,9 +35,9 @@ class MY_Validation extends CI_Validation {
|
||||
}
|
||||
```
|
||||
|
||||
[size=4][b]How to use set_errors()[/b][/size]
|
||||
[size=4]**How to use set_errors()**[/size]
|
||||
|
||||
This extension creates a [b]$this->validation->set_errors()[/b] method. Because the run() method generates the error string based on your rules, this method [b]MUST[/b] be called [b]AFTER[/b] $this->validation->run() and [b]BEFORE[/b] your store or print $this->validation->error_string.
|
||||
This extension creates a **$this->validation->set_errors()** method. Because the run() method generates the error string based on your rules, this method **MUST** be called **AFTER** $this->validation->run() and **BEFORE** your store or print $this->validation->error_string.
|
||||
|
||||
Consider this in a controller:
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
This Mod was inspired by the original [[DB Session]] by Dready.
|
||||
[b]Last updated on 2 April 2008.[/b]
|
||||
**Last updated on 2 April 2008.**
|
||||
|
||||
|
||||
Created in March 2008, it takes the new version of CodeIgniter's 1.6.1 Session class and combines DB Session with some newly revised functions.
|
||||
|
@ -8,7 +8,7 @@ Tested on:
|
||||
[DMZ] 1.7.1 (http://www.overzealous.com/dmz/pages/download.html)
|
||||
|
||||
|
||||
[b]What is is? HMVC for DMZ Modular Separation 1.0[/b]
|
||||
**What is is? HMVC for DMZ Modular Separation 1.0**
|
||||
I always used the DMZ with CodeIgniter for organizing and developing my application, then I discovered that the Modular Separation helps organize my application further.
|
||||
But although the Modular Separation ja is well compatible with the DMZ, DMZ but not load the 'DMZ_Models' in the folder of a module and then I had the idea of editing to make it
|
||||
|
||||
@ -21,7 +21,7 @@ Mas embora o Modular Separation ja seja bem compativel com o DMZ, mas o DMZ não
|
||||
Criticas e sugestões me contate
|
||||
[/i]
|
||||
|
||||
[b]How to use:[/b]
|
||||
**How to use:**
|
||||
Copy the original datamapper.php file from libraries directory and paste on your libraries module diretory and then edit it like this:
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
(Now with [b]_iterated[/b] support)
|
||||
(Now with **_iterated** support)
|
||||
|
||||
[b][color=red]ATTENTION:[/color][/b] this extension is third-party, so don't bother Phill with questions about it.
|
||||
**[color=red]ATTENTION:[/color]** this extension is third-party, so don't bother Phill with questions about it.
|
||||
|
||||
Features are:
|
||||
|
||||
@ -16,13 +16,13 @@ Features are:
|
||||
|
||||
This extension works in the similar way as original HTML Form extension.
|
||||
|
||||
All it does is provide [b]render_table()[/b] method that builds html code based on settings given by user. It can save some time for you and make table-generation part of the view more readable. Extension is shipped with two table templates: object_per_row and object_per_column.
|
||||
All it does is provide **render_table()** method that builds html code based on settings given by user. It can save some time for you and make table-generation part of the view more readable. Extension is shipped with two table templates: object_per_row and object_per_column.
|
||||
|
||||
Docs are included in [url=http://codeigniter.com/wiki/File:dmz_htmltable_0_1_1.zip/]Distrib[/url].
|
||||
|
||||
[b]Installation:[/b] To make HTML Table available, copy application folder’s content from distrib into your application folder.
|
||||
**Installation:** To make HTML Table available, copy application folder’s content from distrib into your application folder.
|
||||
|
||||
[b][color=red]WARNING![/color][/b]
|
||||
**[color=red]WARNING![/color]**
|
||||
If you have your own MY_html_helper, be careful not to rewrite it with same file from this distrib, just append your own with it’s content.
|
||||
|
||||
MY_html_helper contains one single function wrap() that makes output of optional parts of page more convinient. It’s used in table templates.
|
||||
|
@ -126,4 +126,4 @@ if ( ! function_exists('readfile_chunked'))
|
||||
|
||||
```
|
||||
|
||||
Use it like: [b]force_download('test.txt', './uploads/test.txt');[/b]
|
||||
Use it like: **force_download('test.txt', './uploads/test.txt');**
|
@ -52,8 +52,8 @@ $route['foo/(:any)'] = 'test/testFunc/$1';
|
||||
...
|
||||
|
||||
```
|
||||
- Go to [b]http://www.example.com/index.php/test/redirect[/b]. Replace example.com with your server name
|
||||
- You should be redirected to [b]http://www.example.com/index.php/foo/bar[/b]
|
||||
- Go to **http://www.example.com/index.php/test/redirect**. Replace example.com with your server name
|
||||
- You should be redirected to **http://www.example.com/index.php/foo/bar**
|
||||
|
||||
## Download
|
||||
|
||||
@ -61,7 +61,7 @@ $route['foo/(:any)'] = 'test/testFunc/$1';
|
||||
|
||||
## Changelog
|
||||
|
||||
[b]2009.03.31[/b] by AJ Heller <aj@drfloob.com>
|
||||
**2009.03.31** by AJ Heller <aj@drfloob.com>
|
||||
Fixed a bug that did not handle unordered backreferences correctly (when $2 comes before $1, for example. Bug reported by Johan André [url=http://codeigniter.com/forums/viewthread/80283/#552682]View original report[/url]
|
||||
|
||||
## Code
|
||||
|
@ -1,8 +1,8 @@
|
||||
[color=gray][b]@description:[/b][/color] Vat number ID validation for Europe, it can validate with regex acording to this: http://ec.europa.eu/taxation_customs/vies/faqvies.do and also using their online database http://ec.europa.eu/taxation_customs/vies/
|
||||
[color=gray]**@description:**[/color] Vat number ID validation for Europe, it can validate with regex acording to this: http://ec.europa.eu/taxation_customs/vies/faqvies.do and also using their online database http://ec.europa.eu/taxation_customs/vies/
|
||||
|
||||
[color=gray][b]@depends on:[/b][/color] http://codeigniter.com/wiki/Curl_library/
|
||||
[color=gray]**@depends on:**[/color] http://codeigniter.com/wiki/Curl_library/
|
||||
|
||||
[b]Config:[/b]
|
||||
**Config:**
|
||||
```php
|
||||
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
@ -13,7 +13,7 @@ $config['vat_checker_requester_vat'] = '000000000';
|
||||
|
||||
```
|
||||
|
||||
[b]Library:[/b]
|
||||
**Library:**
|
||||
```php
|
||||
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
@ -1,9 +1,9 @@
|
||||
[size=4][b][color=red]Note: links to developer's site and file download are dead. Please update with new links[/color][/b][/size]
|
||||
[size=4]**[color=red]Note: links to developer's site and file download are dead. Please update with new links[/color]**[/size]
|
||||
|
||||
FLV Player Class to play the video flash on your application, by http://www.dwi.web.id/.
|
||||
Download here: [strike]http://www.dwi.web.id/public/files/ci_flv_player.zip[/strike]
|
||||
|
||||
[b]Mirror:[/b] [url=http://pixelsandcode.net/downloads]http://pixelsandcode.net/downloads[/url]
|
||||
**Mirror:** [url=http://pixelsandcode.net/downloads]http://pixelsandcode.net/downloads[/url]
|
||||
|
||||
*--------------------------------------------------------------------------------------------------------
|
||||
INSTALLATION:
|
||||
|
@ -29,13 +29,13 @@ $this->firephp->log('ding');
|
||||
### Included files
|
||||
|
||||
|
||||
[b]Core[/b]
|
||||
**Core**
|
||||
|
||||
/system/application/config/fireignition.php - Config value (fireignition_enabled) to enable/disable
|
||||
/system/application/libraries/Firephp_fake.php - FirePHP Fake Library to disallow the library and mantain interface
|
||||
/system/application/libraries/MY_Controller.php - Controller extension
|
||||
|
||||
[b]Example[/b]
|
||||
**Example**
|
||||
|
||||
/system/application/controllers/welcome.php - How to use
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user