advertisement

Create custom params file in yii framework

50 %
50 %
advertisement
Information about Create custom params file in yii framework
Technology

Published on February 18, 2014

Author: ezeelive

Source: slideshare.net

Description

Most of yii beginner write parameter in main.php because thats pattern comes in installed yii framework. This is fine if you have less parameter but if you are building large web portal or application then it's very hard to manage every thing in mail.php because its main config file.
advertisement

Create custom params file in yii framework Yii framework is come with powerful inbuild features eg. 1. Model-View-Controller (MVC) design pattern 2. Database Access Objects (DAO) 3. Custom Query Builder, Active Record (AR) and DB Migration 4. Form input and validation 5. AJAX-enabled widgets 6. Authentication and authorization 7. Layout Skinning and theming 8. Web services 9. Internationalization (I18N) and localization (L10N) 10. Layered caching scheme 11. Error handling and logging 12. Security 13. Unit and functionality testing 14. Automatic code generation (Gii Module) 15. Friendly with third-party code 16. Detailed documentation 17. Extension library etc. Most of yii beginner write parameter in main.php because thats pattern comes in installed yii framework. This is fine if you have less parameter but if you are building large web portal or application then it's very hard to manage every thing in mail.php because its main config file. So the best way is create seperate params.php in the same directory and include it in you main.php

file. Check is below example of params.php and main.php files. config/main.php : 'params'=>require(dirname(__FILE__).'/params.php'), config/params.php : <?php return array( 'defaultPageSize'=>10, 'websiteName'=>'ezeelive.com', 'copyrightInfo'=>'Copyright &copy; '.date("Y").' Ezeelive Technologies. All Rights Reserved.', ... ); ?> Written By : Ezeelive Technologies

Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages

Create custom params file in yii framework - ezeelive

Ezeelive technologies leading yii framework development company from mumbai, we have highly expert yii php developers, hire yii developer in mumbai
Read more

Create custom params file in yii framework - Technology

Most of yii beginner write parameter in main.php because thats pattern comes in installed yii framework. This is fine if you have less parameter but if you ...
Read more

php - How To Use Custom Config File On Yii - Stack Overflow

I'm using Yii Framework and I have custom ... create in your custom config file array in params which key is myparams and get this like Yii::app()->params ...
Read more

How to create a Custom Pagination Widget for Yii Framework

How to create a Custom Pagination Widget for Yii Framework. ... that will create the actual URL * @param integer ... how to create custom Widgets by ...
Read more

Yii Framework Development Company in Mumbai

Hire yii framework development company in mumbai, ... (AR in Yii Framework) Ebean, Database objects, CakePHP, Propel and the best one Doctrine.
Read more

How to create a Custom Pagination Widget for Yii Framework ...

How to create a Custom Pagination Widget for Yii ... (in my case I saved a file named ... to create a Custom Pagination Widget for Yii Framework ...
Read more

Setting and getting systemwide static parameters - Yii

... Setting and getting systemwide static ... These options are available at runtime via the Yii::app()->params ... Our approach is to create a ...
Read more

UrlManager, yii\web\UrlManager - Yii Framework 2.0 API ...

Toggle navigation Yii Framework 2.0 API Documentation. ... Class yiiwebUrlManager. All Classes | Properties ... Creates a URL using the given route and ...
Read more

How to get configuration params in Controller Console in ...

... in Yii2 Framework i try below code but its not working Yii::$app->params ... in Console Controller in Yii2 Framework. ... Create a custom dialog box ...
Read more

Pass `$params` by reference to yii\\web\\UrlRuleInterface ...

... Yii 2 framework main development repo. ... Pass `$params` by reference to yiiwebUrlRuleInterface::createUrl() #6229.
Read more