From 5a519db2c4884a3972dd33e09d0b3a314aa222e2 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Sat, 12 Jan 2013 04:19:19 +0200 Subject: Implement autoload model aliasing (#2117) --- application/config/autoload.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'application') diff --git a/application/config/autoload.php b/application/config/autoload.php index 40f0a6520..5a20c943a 100644 --- a/application/config/autoload.php +++ b/application/config/autoload.php @@ -148,12 +148,16 @@ $autoload['language'] = array(); | ------------------------------------------------------------------- | Prototype: | -| $autoload['model'] = array('model1', 'model2'); +| $autoload['model'] = array('first_model', 'second_model'); | +| You can also supply an alternative model name to be assigned +| in the controller: +| +| $autoload['model'] = array('first_model' => 'first'); */ $autoload['model'] = array(); /* End of file autoload.php */ -/* Location: ./application/config/autoload.php */ +/* Location: ./application/config/autoload.php */ \ No newline at end of file -- cgit v1.2.3-24-g4f1b