Menu

Controller

Aruna Devi

Controller

The controller means it's control the module data to class.The controller has the methods which will be triggered when requested through action parameter. The controller use to developer for manuplating the modules. Example for the developer handled by the frameworkcontroller.
class ClsClient extends ClsNaanalController
{
stmt;
}
ClsClient has developer created controller
ClsNaanalController has frameWork controller .

Inputs are

1.mode


Mode represents the value of actions parameter in Url. Actions are create,update,insert,delete,preview,list


Example : unicomtech.in/naanal/index.php?page=client&action=insert

Here insert as mode




2.table


The Table created for module. so the table and module name are same

Example: module as client means table name also client


3.module


Module represent the value of page parameter in Url.

Example:unicomtech.in/naanal/index.php?page=client&action=insert
Here client as module name

Each file have seperate module folder.For example

  • naanal -- Appliation
    • module --folder
      • client --- module name
        • client_create

        • client_edit

        • client_list

        • ClsClient

        • ClsWClient



4.pdo


PDO – PHP Data Objects – is a database access layer providing a uniform method of access to multiple databases.


5.ControlPanel


A section of Application where group of users can login.The section of application where no login needed is called Guestpanel


6.redirect


The redirect url is used to direct the application to different url

Example:$this->redirect="page=client&action=list";


7.arrField


arrField contains all fields in the module table


8.itemPerPage


Number of records display in list view


9.objNaanalRequest


It have request method.$objNaanalRequest


10.objNaanalGet


It have get method.$objNaanalGet


11.objNaanalPost


It have post method.$objNaanalPost


12.arrNaanalData


input needed to request in naanalData


13.form


form is an instance of wrapper object


Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.