We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Codeigniter with EE?

Development and Programming

Henrik Holben's avatar
Henrik Holben
8 posts
14 years ago
Henrik Holben's avatar Henrik Holben

Hello everyone 😊

I’m brand new to EE and just love it! the best thing I’ve ever done was to make the decision to upgrade to EE! I have a total newbee question regarding integrating CodeIgniter inside EE if at all possible?

When working before with PyroCMS I used CI thorugh Page Layout to use the CI Active Record Class and Form Validation directly in the Layout with “get instance()”

Worked beautiful and then you can write pure simple CI in your Templates!!

Is there a way to do the same with EE? Use all CI Classes and Liberary directly inside a a EE Template? without making it a Channel as a Model? I’m only interested in this because I just love how simple it is to write CI code! mainly to execute SQL commands with CI Active Records commands without making a Channel..

Am I wrong to think EE like this from a MVC perspective coming from CI like this: (M) = Channel and Content as my Models… (C) = EE as my new Controler replacement… (V) = Design and Templates as Views…

How can I use CI Database Active Class and let’s say use Form Validation Class and write pure simple and beautiful CI code inside my Design and Templates “Views”? How can you hack this with EE?

Hope someone can help me out with this!!

Best regards, Henrik

       
John Fuller's avatar
John Fuller
779 posts
14 years ago
John Fuller's avatar John Fuller

ExpressionEngine is built on CI, so yes, you can work all your CI magic inside templates. Best thing to do is read the developer documentation in the EE userguide and have fun.

I try to keep PHP outside of templates as much as possible, so you might consider extending EE by building add-ons.

ETA: Seriously, the best way to answer your other questions is to browse through the EE code. You will learn much more that way and it will help you with extending EE.

       
Henrik Holben's avatar
Henrik Holben
8 posts
14 years ago
Henrik Holben's avatar Henrik Holben

Thanks for the reply John!

Yes, thanks for the suggestion I just found the Developer section with tons of help with the Active Records Class among others the basics you use most of the time from CI! Great documentation in the Developer will definately read them all… though I confess online CI documentation is much better written than EE maybe the laziness factor of having this presented so beautiful in CI…

Yes, you’re right it’s best to avoid php in timeplates due to the Super Adsmin security risk… but coming from always hand-coding everything in CI MVC Active Records but just great to know it’s okay to write CI it’s just bloody brilliant to extend everything with Modules in EE… everything just works right out of the box no strees frustration wrestling to get things working… otherwise best to make everything Channels and fire them off with {exp:channel} commands in the template…

I have already gone through a bit of the EE oode and purchased the Beginners Study Guide Engine City Times to get a good Intro to EE and then follow it up next week with TrainEE Advanced Guide… worth the the little extra money to get those two tutorials…

Expressiion Engine absolutely awesome stuff 😊

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.