Xupload And File Type Problem
Hi, I have a problem with this extension. I want to add acceptFileTypes option to the fileupdaload jQuery function, witch is wrapped in teh eextension xUpload. the problem is that the acceptFileTypes...
View ArticleRelations, Scopes, Subqueries And Finder Params
Is possible to do that? public function scopes() { return array( 'completed'=>array( 'join'=>'INNER JOIN jobs_role j1 ON j1.job_id = '.$this->tableAlias.'.id', 'group' =>...
View ArticleDisplay Two Columns In A Listbox
I have a dropdown list in my view, it is populating from driver_master table, driver_master table contains first_name, last_name,driver_id etc., I want to show the first_name and last_name as display...
View ArticleHooks In Yii
Hi, I am building an application for multiple clients. I'd like to have one core application that serves as a basic core components and possibly some customisations for different clients to meet the...
View ArticleYiic Bug Or Something
Hi I have VPS and shell access (ofc). In folder /home/linkyplanet/public_html I have folder with name "framework" which is a framework folder from Yii.zip. When I go to that folder (from console) and...
View ArticleGeneral Object Design Question
Hello, Curious about how best to design a few classes. This is a simplified version, but just looking for concepts. Say I have 3 tables: Users, Departments, User_Departments. A Manager is able to add...
View ArticleChart To Pdf Export
Hi, i need to export some charts to pdf, i'm looking for a good extension (library) to do it, if someone can give a suggestion.
View ArticleActive Record Findall With Condition
I just learned how to add condition in the findall function. $doctors = MasterDoctor::model()->findAll(array("condition"=>"hospitalid = $model->hospitalid"));
View ArticleHow To Extend Capplication Class
hello all, can you please help me a little, how can i extend capplication class, i need some core thing there, that will be common in WebApplication and ConsoleApplication, and i also don't want to...
View ArticleHelp with MANY to MANY relationship deleting a record
I am having a hard time working with a many to many relationship. I have three tables (customer, customer_assignment and owner). Obviously, customer can have many owners and owners can have many...
View ArticlePhp Session
Hi, Current when i try to search on my web site using google, site:www.example.com The URL in my website in the ending will have a www.example.com/?PHPSESSID=7e1c3c3e2aeae519e00261b3c7171262 How can i...
View ArticleWill Yii-2.0 have Aspect Oriented aproach?
Main question will is will yii be supporting AOP in near future. Advantages is that features such as Debugging,Loging,Security rules, and other stuff will be written more easily and modification and...
View ArticleCdbconnection Failed :: Can't Connect To Localmysql Server Through Socket
Hello Yii Friends, I am getting a exception message in live server but I don't have any problem in my local machine. Such exception message generate randomly and I am not sure what is the reason for...
View ArticleWeird Characters In Url
Hi, Currently I'm facing some problem the URL, some weird characters is shown after enter the website url. this the snippet of the url: post/index#.UUBD_Vtp4QQ and below is the content for my htaccess:...
View ArticleHow To Save Tabular Input To Db?
Hi, I've been working through the tutorial on updating tabular input (http://www.yiiframew...1/en/form.table) and I've got the front end part working. I don't know how to write the controller though so...
View ArticleJust Learned
First should declare two variables in model public $from_date,$to_date; Then add following lines in the search function [model] if(!empty($this->to_date) && !empty($this->from_date)) {...
View ArticleCaptcha 'get A New Code' Does Not Work
Hi all, Instead of generating a fresh 'captcha' code when I click on 'Get a new Code' I get the below output: {"hash1":744,"hash2":744,"url":"\/test\/site\/captcha?v=51491e4327c85"} I am at a loss. I...
View ArticlePostgresql Hstore Support
I looking around for alternative for EAV design and found non sql database and postgresql - hstore to be the good solution. May i know whether yii activerecord support hstore out the box???
View ArticleObtaining Data From Another Table Cgridview Widget
Hello, I am currently trying to use the CGridView widget. I am posting as I am unsure as to how to get a column from another table (target_name from the target table) and have it displayed in the table...
View ArticleGroupgridview Extension
This extension allows to group data in your grid. 1. Download From Yii Website. 2. Extract In Extension Folder. 3. Put Below Code in Your Admin Page. $this->widget(‘ext.groupgridview.GroupGridView’,...
View Article