<?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: […]
All posts by TahaAli
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 ” . […]
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. […]
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 […]
How To Generate QR Code
TahaAli
How to generate Menu in Desktop Application
TahaAli
How To Create Dynamic Forms In Desktop Application
How to generate a SQL query for Client Update of Dynamic Forms TahaAli
How to make Production Plan
Navigation : MT–>Data Entry –> Production Plan TahaAli
How to generate new Qr code in FranscentAerosol
TahaAli
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