Code Igniter noob :) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Code Igniter noob :) (/showthread.php?tid=29789) |
Code Igniter noob :) - El Forum - 04-21-2010 [eluser]Mr. Gibon[/eluser] Thanks, i think my biggest problem is to understand how to build a website according to codeigniter framework. I heard about integrating joomla and ci, but IMO it is sense less to buying a used car while having all parts needed to build new one in garage. I will take a look into your files, big thanks i think it is easier to learn how to build website by viewing the source of made one. Code Igniter noob :) - El Forum - 04-22-2010 [eluser]Mr. Gibon[/eluser] hey, totalshopuk can you help me figure out why your shop system is redirecting me to www.localhost.com while basepatch is set to http://localhost ? Code Igniter noob :) - El Forum - 04-22-2010 [eluser]Total Shop UK[/eluser] Sure it's the .htaccess file, comment out the lines below Code: # RewriteCond %{HTTP_HOST} !^www\. Code Igniter noob :) - El Forum - 04-22-2010 [eluser]Mr. Gibon[/eluser] totalshopuk, can you describe in few words how the site is build? I mean the main structore, where you request data, through what files is data going into template, and how template is generated? I'm shocked, your shop is very great job! Code Igniter noob :) - El Forum - 04-22-2010 [eluser]Total Shop UK[/eluser] In short there are two main file for the template, top and bottom. Top contains Banner, Top Navigation, Left Side Bottom contains Right Side, Bottom Navigation, Footer The dynamic content goes in the middle. Code: <?php if (!isset($meta)) $meta=''; echo modules::run('_main/top',$meta); ?> Every data request uses Ajax - Login Example Code: function login(){ Controller _ajax Code: function login(){ Hope this helps a little. Code Igniter noob :) - El Forum - 04-26-2010 [eluser]Mr. Gibon[/eluser] I'm back, after long research, and almost switch to joomla, i decided to write website in ci. Question how to Code: <?php how to pass $data form controller/index to controller/about ? (In future values will be taken form DB) Is it a good way to build website? Code Igniter noob :) - El Forum - 04-26-2010 [eluser]Tominator[/eluser] Hi Mr. Gibon! Use this: http://ellislab.com/forums/viewthread/153269/ You can make it super easy: ver 1.3: PHP: Code: $id = 5; // you probably get this value from URI, or DB ... TPL (your_template.tpl): Code: <html> Is it cool, isn't it? Code Igniter noob :) - El Forum - 04-26-2010 [eluser]Mr. Gibon[/eluser] Sounds great, but what is the big difference between the build-in praser, and yours? However is it a good way to build website in one controller ( site/index , site/offer, site/contact etc etc)?? Code Igniter noob :) - El Forum - 04-26-2010 [eluser]Tominator[/eluser] Good question. There are some advantages: 1. It's got better system of replacing pseudo-varibales and cycles 2. It supports conditions and includes 3. It supports dynamically nested cycles too 4. Providing final solution for theming your page and accesing css/js/img ... Code Igniter noob :) - El Forum - 04-26-2010 [eluser]Mr. Gibon[/eluser] Thanks for reply, i will probably use this Parser. Still no answer for this: Is is a good way of building website based on code igniter, all in one controler like this Code: class Welcome extends Controller { |