Hello, since all YII framework run under index.php
is there possible way to use Conventional Coding Style to mix with YII ?
i ask this because we already invest in a commercial module that 'upgrade' our dreamweaver to become a great shopping cart software.. but all the code is not using MVC at all... any idea to join/mix-up the technology ?
Page 1 of 1
Combining MVC Concept with Conventional Coding Style
#2
Posted 23 April 2010 - 05:24 AM
Yes, you can. To do so, you just need to insert the following code in your modules:
Then, you can access all available resources defined in your normal MVC part of the application via Yii::app().
Note that we don't call "run()" in the above because it would otherwise go through the normal MVC workflow.
require_once(path/to/yii.php); Yii::createWebApplication($config);
Then, you can access all available resources defined in your normal MVC part of the application via Yii::app().
Note that we don't call "run()" in the above because it would otherwise go through the normal MVC workflow.
Share this topic:
Page 1 of 1

Help











