yii

Which PHP framework should I choose between ZendFramework and YII?

Which PHP framework should I choose between ZendFramework or YII? Points I need to consider: Performance (assuming an accelerator is used) Documentation stability of framework less to code. ...

Experience using Yii framework for actual PHP project

I've been using Code Igniter for my PHP projects, when I start them from the beginning. It is very nice framework, saves me a lot of work and let me have low level access if I need to do something special. Code Igniter is also faster then similar frameworks by order of magnitude. I came across Yii framework which claims to be even fast...

Yii Framework

How do I setup Yii framework in Windows XP ?? Yii framework requires to be setup using command line, which I am not aware of, can you help ?? NTulip how kind of you to give such an awful answer. Anyways I am getting this message 'php.exe' is not recognized as an internal or external command, operable program or batch file. ...

how to setup url friendly in yii framework automatically ...

I just learning yii framework and read this tutorial about yii how to setup url but I have no idea, suppose i have 10 controllers, should I define one by one controllers in the config file ? is there a better way to setup url friendly like www.yoursite.com/yourController/yourAction/yourID for all controller ? I think codeigniter did ...

Creating a back link using Yii Framework?

I need to know how to create a back link in the action view of the Yii Framework. I want to use CHtml::link('Back',Yii::app()->request->urlReferrer); but this somehow just does not want to work? Quite new to this Framework. ...

Yii, yiic and console

In the installation instructions for Yii it is nescessary to use console and command line utility - yiic. Well, on my shared hosting I don't have ssh access. This is why I have following questions: How often and for what reasons will I have to use console? Is there a way to avoid using yiic? May I run yiic on local server and then ju...

Yii Framework Resources

Yii is a nice php framework. (In my un-experienced view). I was wondering if anybody knows any good resources for it? This is a community wiki. Self described as a high-performance component-based PHP framework best for developing large-scale Web applications. It has a rich set of features, is purely objected orientated and has a growi...

Yii framework Many to Many relationships..

What is the method to save and update Many to Many relationship in Yii framework? ...

Am I making the right choice in choosing Yii as my PHP Framework?

I am about to begin development of a new website and have been doing research on PHP Frameworks. I'm not an advanced PHP developer, but I have been developing web sites and apps (in asp.net) for a few years now. My website will primarily be AJAX-based (using jQuery) and making lots of calls to web services. After some research, here's ...

Yii framework - what is the file ".yii" in some folders

There is ".yii" file in the following folders: /assets/ /images/ /protected/commands/shell/ /protected/extensions/ /protected/messages/ /protected/runtime/ /protected/views/system/ /themes/classic/views/layouts/ /themes/classic/views/site/ /themes/classic/views/system/ What is it? ...

Views: Including multiple views in one view

I developed an application with different MVCs using the Yii Framework For example I created a crud layer for Student Contact details and Student Courses etc. All worked perfectly since each had its own menu, and when clicked eachs own view rendered. Now my client wants everything on one page, and is quite persistent, we are talking ...

Controller within another Controller

Is it possible to instantiate a Controller class within another controller class using the Yii Framework For example I have controller Student and and method actionShow of class student I have the following public function actionShow() { $student = $this->loadStudent(); $studentContact = new Student_ContactController;...

Yii framework - how to specify the same access rules for all controllers of the module?

I created module for admin specific operations. I don't want to write the same access rules for every controller, it's not pretty coding style. ...

Yii - modify response data

I need to dynamically generate title and meta tags in my application. So I need to get response object (f.e. like in symfony framework) and set corresponding data in section. How can I do this in Yii? ...

What's the proper way to work with assets in Yii?

I notice that Yii creates strange set of directories (names like 8523d23 or 10s89b92) in assets directory, and this even happens at runtime. For example, one of my tables got more than 10 records, pagination kicked-in and I got a new files in assets subdirectory named pager.css. When I move my site from testing to production, should I c...

what to do about Procedural code, business logic and queries in PHP

I have been tasked with supporting and maintaining several PHP/MySQL web apps (I use the term 'app' lossely) that seem to defy every known coding standard. The PHP code contains routines, procedures, business logic, and even queries - it's all in the code. There is no object-orientated programming, not even MVC, and certainly no separ...

How to specify a SEO friendly url like twitter www.twitter.com/<name> using YII framework

Hi, I am currently using the Yii framework, and I would like to know if anyone has any clue on how to setup a SEO friendly url like www.twitter.com/ automatically in Yii? I know how to do so this manually in the config/main.php but I would like to be able to dynamically generate it. I have been able to do it in Grails as well. In Yii, wh...

Solar PHP framework

We are currently looking joining an open source PHP farmework project instead of continuing to work on our own PHP MVC code. Likely candidates are Yii and Solar, because they appeal to our own coding style, have tackled issues that we feel need tackling. I realize there are plenty of PHP frameowrk related questions on SO already. Howeve...

Yii: Customize the results of CAutoComplete

Hi guys! I need to make a dropdown list using CAutoComplete. Everything is set and works fine, here is my code of the action: <?php public function actionSuggestCharacter() { if(Yii::app()->request->isAjaxRequest && isset($_GET['q'])) { $name = $_GET['q']; $criteria = new CDbCriteria; $c...

Fastest / Easiest method to develop a multi-user gaming engine in PHP/MySQL?

Hi, I'm an advanced designer, but also starting out a career in development: I'm a PHP intermediate user. I (unfortunately) learnt procedural development, and not OOP. My current project is a multi-user game web-app and I was developing procedurally only for my Boss to insist that it has to be OOP, so I needed to start learning OOP (I b...