Has_Many Like A Has_One
Hello, I have the following database tables (models): USER id name GAME id name BET id user_id game_id value date I have a view where all games are listed, using: $games = Game::model()->findAll()...
View ArticleNewbie Here
I've recently started using Yii. My question is how do you automatically point your website to the default login page created by the yiic command?
View ArticleProblems With Many_Many Relations
Hi I've run into a little problem regarding Many_Many relation. 3 tables +----------------+ +----------------+ +----------------+ | Address | | AddressRel | | Company | +----------------+...
View ArticleYii::t() In Urlmanager Or I18N In Urls
Hello all, I am trying to translate url in urlManager in config file. 'urlManager'=>array( 'urlFormat'=>'path', 'showScriptName'=>false, 'rules'=>array(...
View ArticleAlias "ext.backtotop.backtotop" Is Invalid. Make Sure It Points To An...
hi i'm newer on yii when i attach theme for my fresh application .i edit config.php like this 'theme'=>'theme_name', i done this several time but now if i do this it display like this error...
View ArticleUwierzytelniony widzi jedynie swoje dane (posty, newsy, userów)
Witam. To mój pierwszy post na forum. Od kilku tygodni przyglądam się Yii i bardzo mi się spodobał. Przeszedłem przez lekturę 'Przewodnika' i 'zaimplementowałem' bloga ;-) W ramach dalszej nauki...
View ArticleHiding Parts Of A Model
Hi all, I would like to hide a few attributes in a view from the authenticated user and show them to an admin user. <div class="row"> <?php echo $form->labelEx($model,'riderPassword');...
View ArticleInner Join Relation Without Together
hello, i am trying to filter products by category using a scope and i do that by inner joining the categories the problem is it only works when i turn together on, which messes up pagination i recall...
View ArticleHow Use Two Layouts For Two Different Languages?
Hi, I'm creating a multi-language website.Primary language is English but I need to use different layouts for left-to-right languages. How ?
View Article3 Tables With An Intermediate Table
i have 3 tables: action(ID,Name), cycle(ID,Name) and category(ID,Name). these 3 tables are related with an intermediate table actCycleCat(actionID, cycleID, categoryID). is there any way to express the...
View Article[EXTENSION] EMultiSelect
Extension: http://www.yiiframework.com/extension/emultiselect/
View ArticleDate Picker
Hi I have added a date picker: <div class="row"> <?php echo $form->labelEx($model,'bookdate'); ?> <?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(...
View ArticlePikachoose Image Slider
I was wondering if anyone has gotten the pikachoose slider to work with Yii? I installed it and it shows the slider, but it doesn't actual slide the images. The next/previous links and arrows don't do...
View ArticleCgridview Filter With Multiple Models
Hello every1, i don't know if some of you have met a problem, when they have a CGridView with Models, that have a HAS_MANY relationship and you need to select 1 of this MANY objects. I would like just...
View ArticleAutocomplete, Convert Space(%) To + In Link
Hiii I have an autocomplete script which search for merchants in my system, and sends the user to a new page.. View: <?php $this->widget('ext.myAutoComplete', array( 'name' => 'merchantName',...
View ArticleYii User Extension
hi, I am using yii-user and right extensions. I cannot deny access to view list of access. i am using return array( array('allow', // allow only admin and user roles to perform 'index' and 'view'...
View Articleprovenienza
chissà che non possa tornare utile. ad usare un framework mvc php-based siamo veramente in pochi. Legnano (MI)
View ArticleExport to Excel or CSV from CGridView
Is there a way to export the data from a CGridView to either .xls or .csv? I would like to be able to filter and sort on a CGridView, then export my results. I have tried the csvout extension, which...
View ArticleEi18n Translation Module
I have just released a translation module: Ei18n. Description Ei18 is a translation module to allow Yii’ers to easily manage missing translations on application pages. It is heavily inspired by...
View ArticleProblem Loading Extension Resources From External Cdn
Hello, I'm using the JColorBox extension from time ago (but the problem is extended in general to all widgets or extensions). Last day I I did changed the resources location to load from a CDN instead...
View Article