Cactivedataprovider With Cgridview Filter
I've spent hours reading forums etc. trying to see how to use a filter in CGridview when the dataProvider comes from CActiveDataProvider. It's so easy when you just say:...
View ArticleAr与Sql
什么是复杂情况下使用自己写SQL语句?是要返回来很多数据,还是说要关联很多表?抱歉,都自学的,很多概念都没有,希望哪位给说下。 我看使用YII框架做的商业软件YIIPIN 都是使用AR来进行数据库操作的。
View ArticleInsert Multiple Values From A Field
Hello. Some time ago a decison was made at my workplace to "get rid of' our Domino environment and to look at other development environments. The decsion was made to go with PHP and MS SQL and we chose...
View ArticleAjax From Submit
I have a d bootstrap form bootstrap.widgets.TbActiveForm and are using an ajaxSubmit button to save the data in the form. Is there a way to trigger this ajax submit via javascript? Paul.
View ArticleAjax Update
para master yii aku tanya nih disini saya menggunakan ajax untuk update jumlah diviewnya seperti ini <?php $this->breadcrumbs=array( 'Daftarusulans', ); $this->menu=array(...
View ArticleHow To Call Ajax
Hi, i need to display my file in single page. In my application i've some options, when i click option i need to display anothe page in the same page only. Here i'm attaching my files. Here i've...
View ArticleNeed Help For Complex Has_Many Relation Criteria
Hi How can I return the newest Post of the specific Author in Yii Blog Demo ?? in the User model we have /** * @return array relational rules. */ public function relations() { // NOTE: you may need to...
View ArticleProblem With Cuploadedfile And Android Http Request
Hi, i'm trying to upload a file named uploaded_file with an android http request. My environment is: MAMP 2.1.1 with PHP 5.4.4 and Mountain Lion 10.8.3, MySQL database UTF8 If i use move_uploaded_file,...
View ArticleGallery Manager extension
Often we have images gallery in our application. So I have written extension to manage images gallery. Features: * Optional image name/description * Multiple image upload in modern browsers(single...
View ArticleImproved Nested Queries In Cdbcriteria
$criteria=new CDbCriteria; $criteria->addCondition("active_to >= :active_to and job_id in(select distinct job_id from job_req_trade where trade_id in (select trade_id from user_trade where...
View ArticleYii Themes
hello, I created a little site where designers, (or whoever) can upload themes/skins etc that they designed especially for Yii applications. I've created some, to get everybody started, but as you'll...
View ArticleRelational Query With Cdbcriteria And Cactivedataprovider
Alright forgive me as I am still new to Yii. I am trying to use the yii generated search in the model for the admin page, however since each element has a uniqe number of objects "has_many"...
View ArticleТо Ли Я Пьян И Сонный, То Ли Странная Магия
Дело было так, создал я табличке в мускуле. Зашел в gii, создал модельку для нее. Затем пошел писать контролы и вьюшки для работы с этой таблицей. Все просто и элементарно. И вот практически завершив...
View ArticleCaching Breaks Fully Qualified Behavior Path.
When a behavior is fully qualified when it is attached to a CActiveRecord like this: public ExampleModel extends CActiveRecord { public function behaviors() { return array( 'ERememberFiltersBehavior'...
View ArticleJappendo Dengan Upload + Cjuidialog
permisi gan, saya lgi stuck ni,saya punya form tambah kya gni : lha msalahny : 1. ketika klik tombol "get dokter" yg kedua dengan CJuiDialog yg terisi tetep textfield pertama 2. upload file tidak...
View ArticleCheck Post Content-Length
Hello! I have a server with 2MB of max file size and max post size. I need to check on my Yii app if the filesize is bigger than 2MB and I have no idea of how to do that. I can't change server values,...
View ArticleHow to avoid gii console 403 error
A common stumbling block for using the yii framework is getting the 403 error "You are not allow to access this page" when setting up the gii module/console for access http : // {domain name}/{webapp...
View ArticleCall Views Of A Parent Directory
Hi, I have a controller (Admin/Management/UserController.php). This Controller is in a sub-sub directory and I want to call a view (Sites/User.php) which does not belong to the dirctory of the...
View ArticleHow To Define Data Option In Ajaxsubmitbutton
I am trying to submit a form via ajax hence I am using ajaxSubmitButton along with CActiveForm. However, I would like to pass additional data along with the submit. How do I add that. Here is what I...
View ArticleAutomated Migration
Hi there Guys, As the application I'm developing is expanding across multiple sites, each with its own database, I'm having a few issues with database migration. What I'd like to do is to automate the...
View Article