Questions tagged [Yii] (6875)

6
answers

Php, change the values of $_SERVER or is it better mod_rewrite and analogues?

Is it safe to modify the array $_SERVER in the script? Or rather, REQUEST_URI, QUERY_STRING, and the like. Can php developers to continue to make $_SERVER readonly, can someone studied this issue and have information. Off the dock of this information I have not seen. Need to make some of rewrite without redirects transparen...
Arlene15 asked October 10th 19 at 14:00
2
answers

Videoprogramme mp4, 3gp, flv

Somehow the video had not previously encountered. There is a need to do can upload users website videos(convert them to a unified format is not possible). Project on Yii. Tried googling and tie some js players, but none of them properly did not work. Advise some sort of proven js pleerom, perhaps there is even extension und...
joanne_Pacocha8 asked October 10th 19 at 13:00
2
answers

Writing a CMS and framework?

Actually have long been engaged in writing their CMS (for specific needs) — I recently decided for myself to implement a less versatile CMS based on framework (YII). When he wrote the Foundation it became clear that resource consumption is unreasonably high, and beautifully implemented without changing the key techniques of...
Allene_Crona78 asked October 10th 19 at 08:21
3
answers

Saving XML from a template Yii

Good afternoon. Needed to give the user the XML file. Work in yii. For convenient made a few basic templates and fill them with information. Generate decided using $this->render('export_xml', array('data'=>$data)); In this regard, there are questions. render default loads the main layout, I want to avoid. Decided thi...
Scot.Wisoky asked October 10th 19 at 02:52
1
answer

Yii how to run the event once were found all records

There was a following problem. There is behaver that performs certain actions with the data at the end of the request (tobish when he worked all onAfterFind ). If you put the necessary actions in onAfterFind, all great, except for one fact: the number of queries increases, since each such action will fulfill one request, an...
Allene_Crona78 asked October 9th 19 at 22:10
1
answer

Generator model classes (and/or mappers) for Zend Framework

Are there any solutions ready to generate model classes with CRUD functionality (create, read, update, delete) or some ORM mappers for applications implemented on library Zend Framework, SQL database dump, similar to how it is implemented, for example, in Yii framework?
Kameron32 asked October 9th 19 at 20:04
2
answers

Features of SSI in Highload

Is: 1) in-house website on Yii, 2) the Forum is SMF 2.0 3) highload. Task: 1) to Link the Site and forum to achieve maximum performance 2) the Forum should be in the template. Embodiment: 1) to Divide template into 3 SSI ..... a)Header (unique to the user, 6-10 various options): script execution php using yii saving array o...
Salvatore.Rogahn7 asked October 9th 19 at 16:35
6
answers

Yii+Jquery $.post

Good afternoon. Trying to send data to the server method $.post View the <script> $('#add_element_btn').click(function() { $.post("<? echo Yii::app()->baseUrl; ?>/catalog/additem/", { uuid: <? echo $catalog->uuid; ?>, name : $('#input_name').val() }, function(data){ alert(data.status); }, "js...
ellen_Johns asked October 8th 19 at 07:38
1
answer

Yii search in many_to_many

Good night, tell experts in Yii. There is a catalog of CDs (Drivers), each drive there are genres (genres) (disk may belong to multiple genre). Connected them via many_to_many public function relations() { return array( 'genres' => array(self::many_many relations, 'Genres', 'drives_in_genres(driver_id,genre_id)'), ); }...
Mitchell_Zemlak16 asked October 8th 19 at 05:41
5
answers

On what topic you can write an article on Yii?

Most of the question stated in the title... I Want to write something, and Yii is the most commonly used tool. PS I'm writing a CMS on Yii (and this is not just another set of controllers and models), it is almost ready and it embodies all of my ideals (and relative to the admin too), the code I do open in the near future ...
Lydia.Littel asked October 8th 19 at 04:32