Sample Code For Function

<?php /** * Sample function class for Yii 1.x * * Usage: * – File: protected/controllers/functions/Orders/Test.php * – Call: $this->runFunction(‘test’, [$model]); */ class Test { public $controller; // auto assigned by runFunction() /** * Executes custom logic * @param mixed $model */ public function run($model) { echo “This is a test function running with model: […]

Read More

Sample Code For Action

<?php /** * Sample custom action for Yii 1.x * * Usage: * – Create file: protected/controllers/actions/Orders/TestAction.php * – Access via URL: index.php?r=orders/test */ class TestAction extends CAction { /** * This method is executed when the action is called. */ public function run() { echo “This is a test action running from ” . […]

Read More

Standard Code FOR Controller

<?php class TestController extends CController {     /**      * @var string the default layout for the views. Defaults to ‘column2’, meaning      * using two-column layout. See ‘protected/views/layouts/column2.php’.      */     //public $layout = ‘application.views.layouts.main’;     /**      * @var CActiveRecord the currently loaded data model instance. […]

Read More

Controller Refactoring Documentation

1. Overview Previously, controllers (e.g., OrdersController) contained hundreds of actions and functions in a single file. This made the codebase difficult to read, maintain, and scale. To improve structure, we have refactored the controller format. Now, each controller: Contains only core/major logic. Delegates Actions and Functions to separate files inside their respective folders. 2. New […]

Read More

Sales Return (MT2)

How To Make Sales Return Entry : Navigation: Sales->Transactions->Sales Return How To Return The Cartons : How To Get Dispatch Report : Updated video of Sales Return Page TahaAli

Read More