ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

EE Controller & Modal Custom PHP/MYSQL

February 19, 2011 9:23pm

Subscribe [1]
  • #1 / Feb 19, 2011 9:23pm

    alex00

    35 posts

    Can we still work with EE the same way as we do with Codeigniter as far as controller and modal goes. I’m thinking of trying out EE for a project, but I’m a little confused as to how to deal with custom php/mysql functions. For instance, Let’s say i want a user to upload images, videos, files, and all his uploads would get stored in a folder on the server named after his the user id. Is it easy to to work with EE and create a function to let the user upload to custom folder, then view his folder to see a list of uploaded images, or other files. In Normal CI we would have to work with controller, modal and view, but i don’t know how this works in EE. In addition how does creating custom database fields and tables work in EE so that we can store additional info relating to the user and access them later. Do i need to create a plug-in for this. I’m still new to EE and i want to make sure it’s works for my purpose.

  • #2 / Feb 21, 2011 3:00pm

    Brandon Jones

    5500 posts

    Hi alex00, and welcome to the forums!

    Your add-on controllers can load their own models, libraries, helpers, etc. Views are only used in the Control Panel. Part of your add-on is an update (UPD) file that can add or remove tables on install/uninstall.

    Our Developer Documentation should help get you up to speed. Let me know if you have any other questions!

  • #3 / Feb 21, 2011 8:11pm

    alex00

    35 posts

    I’m sorry I’m new to EE. What is add-on controllers. Your answer is not very clear and does not answer my question. Were do we insert custom php functions to do certain things like show content of a folder to a user.

  • #4 / Feb 21, 2011 8:36pm

    Brandon Jones

    5500 posts

    Hi alex00,

    I’m referring to controllers in the same sense as a CodeIgniter controller. Your add-on’s controller might have several methods, and EE will call the proper one based on what tag you’ve placed in a template. The Plugin documentation is the simplest example of this.

  • #5 / Feb 22, 2011 12:02pm

    Brandon Jones

    5500 posts

    Let me know if you have any other questions, alex00!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases