I recently created a project called Yii-App on GitHub to kickstart my development of smaller Yii applications. The main goal of the project is to provide a ready-to-use application template that includes my bootstrap extension and many other useful extensions. After reading this article you will be able to use this project as a starting point for all of your Yii projects.
Setting up your project using Yii-App is a breeze, it shouldn't take you more than a couple of minutes. Follow the steps below and you'll be ready in no time.
Yii-App comes with a toolbelt of extensions:
If you have any questions regarding the use of the extensions please consult the extension documentation. I have developed most of the extensions included so I'll keep them up-to-date and provide full support for them also in the future.
Thank you for reading. Feel free to leave your comments below.
Total 20 comments
i try to use dropdown menu in yii app...but the menu dont appear..i already try several time but no luck. any suggestion?
thank u
I've already install Yii-App without any problem. But when I go to the main web page I can't click on the link to other page. For example, login page. It is there in the page but when I click it the browser don't go to that page but the URL itself is fine when I type in the URL directly it's ok. I don't see any error on browser's console. Any idea what could be the problem. Thanks.
i already try the new yii-app. i can installed it well but unfortunately when i run it on the web the css n js file not running well it cause the application just show plain text. any suggestion to handle it?
i already fix it. i miss 1 step in compiling less with grunt...shame on me
Hi! this is really appreciable work.
The less issue should be fixed now, it was the less watcher. Seems that it was a bit too heavy to coup with compiling bootstrap over and over again. :)
Ok this is the problem: https://github.com/Crisu83/yii-app/issues/2
If you run the site on firefox 18.0.1 the site is very very very very very slow.
n is undefined
in bootstrap.less r.Parser/p.parse@http://localhost/spiga/web/assets/c3d30edf/less.min.js:8 w/<@http://localhost/spiga/web/assets/c3d30edf/less.min.js:8 a@http://localhost/spiga/web/assets/c3d30edf/less.min.js:8 x@http://localhost/spiga/web/assets/c3d30edf/less.min.js:8 w@http://localhost/spiga/web/assets/c3d30edf/less.min.js:8 r.Parser.importer@http://localhost/spiga/web/assets/c3d30edf/less.min.js:8 @http://localhost/spiga/web/assets/c3d30edf/less.min.js:8 e.Import@http://localhost/spiga/web/assets/c3d30edf/less.min.js:9 r.Parser/p.parsers.import@http://localhost/spiga/web/assets/c3d30edf/less.min.js:8 E@http://localhost/spiga/web/assets/c3d30edf/less.min.js:8 r.Parser/p.parsers.directive@http://localhost/spiga/web/assets/c3d30edf/less.min.js:8 E@http://localhost/spiga/web/assets/c3d30edf/less.min.js:8 r.Parser/p.parsers.primary@http://localhost/spiga/web/assets/c3d30edf/less.min.js:8 E@http://localhost/spiga/web/assets/c3d30edf/less.min.js:8 r.Parser/p.parse@http://localhost/spiga/web/assets/c3d30edf/less.min.js:8 w/<@http://localhost/spiga/web/assets/c3d30edf/less.min.js:8 a@http://localhost/spiga/web/assets/c3d30edf/less.min.js:8 x@http://localhost/spiga/web/assets/c3d30edf/less.min.js:8 w@http://localhost/spiga/web/assets/c3d30edf/less.min.js:8 g@http://localhost/spiga/web/assets/c3d30edf/less.min.js:8 r.refresh@http://localhost/spiga/web/assets/c3d30edf/less.min.js:9 @http://localhost/spiga/web/assets/c3d30edf/less.min.js:9 @http://localhost/spiga/web/assets/c3d30edf/less.min.js:9
I'll take a look at that extension, it looks great.
Hi Chris,
Yii-app is almost complete to what I usually use in developing new project. Just need very simple user management (just managing user+password and authentication) and input to sanitize request.
Do you consider to include input in yii-app?
Thanks,
Daniel
Here's the missing method, sorry about that:
Dear Can you please specify what should be inside /site/changeLanguage action of the controller. How to use the multilanguage extension.
Many thanks
We are actually having a meeting later this week with Antonio Ramirez (Lead developer of YiiBooster) to join our efforts. The plan is to make the two extensions compatible. And no, I will not change to use SASS because Bootstrap uses LESS and it's a core component in my Yii development.
I've fixed the assets issue now, it was my bad as I normally import the less files from assets but it doesn't work across different projects as the published assets folder will differ from project to project. I've added the bootstrap less files under less/bootstrap and import them from there. Now it seems to work fine. Sorry about the inconvenience.
And second question? Are you plannig to use SASS instead LESS?
Hi Chris83,
I know why. I think you shouldn't import file from
assetsfolder@Chris83 Hi Chris83,
I don't understand. the path of less js file in
assetsforder. Please show me how to fix it?Property "TbMenu.itemCssClass" is not defined.
app\extensions\bootstrap\widgets\TbBaseMenu.php(66)
Update yii to 1.1.13 and its works!
Hey, fix the assets paths in the less files and you should be fine.
I just download it and get issue as below
Leave a comment
Please login to leave your comment.