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

<p>Mode represents the value of actions parameter in Url. Actions are create,update,insert,delete,preview,list </p>
<p>Example : unicomtech.in/naanal/index.php?page=client&action=<b>insert</b><br/>

Here insert as mode



2.table

<p>The Table created for module. so the table and module name are same<br/>
Example: module as client means table name also client </p>

3.module

<p>Module represent the value of page parameter in Url.<br/>
Example:unicomtech.in/naanal/index.php?page=<b>client</b>&action=insert<br/> Here client as module name </br>

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

<p> PDO  PHP Data Objects  is a database access layer providing a uniform method of access to multiple databases. </p>

5.ControlPanel

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

6.redirect

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

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

7.arrField

<p>arrField contains all fields in the module table</p>

8.itemPerPage

<p>Number of records display in list view</p>

9.objNaanalRequest

<p>It have request method.$objNaanalRequest</p>

10.objNaanalGet

<p>It have get method.$objNaanalGet</p>

11.objNaanalPost

<p>It have post method.$objNaanalPost</p>

12.arrNaanalData

<p>input needed to request in naanalData</p>

13.form

<p>form is an instance of wrapper object</p>

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.