yii query
MY query is:- $sql = "SELECT * FROM `backup_history` WHERE DATE_FORMAT(datetime, '%Y-%m-%d' ) = '$current_date' AND `site_id`='$data[site_id]' "; How can I convert this query to run in Yii? does anyone...
View ArticleProfitaire.com - Online Accounting Application
Hello Everybody We have launched an online Accounting application, completely powered by the Yii framework: profitaire.com It is feature-rich, flexible and a highly configurable application. The...
View Article[ASK] JAppendo
Agan2 dan mastah2 semua.... Saya mau tanya nih. Kenapa ya jappendo saya yang kedetek cuma 1 row aja dan inputannya jadi luas=1 dan status=1? please help me... dah mentok nih. ini sintag di controller...
View ArticlePost Data Via Chtml::link To Action
I am trying to generate a PDF. I need the selected Row from my CGridView for data generation. I created this link to open the PDF in a new tab: echo CHtml::link('Generate PDF', array('generatePdf'),...
View ArticleMssql Incorrect Brackets
I am having some problems with Mssql 2008 and Yii Framework with incorrect bracket placement when using the query builder. $queryCommand = Yii::app()->db->createCommand(); $selectArray = array();...
View ArticleBest Way For Passing Variables Through Many Pages?
I have 3 models : User, Skill, Job with relationship : User---> Skill ---> Job. So if user create or update the User, the detail of user must be store somewhere or pass to Skill page. In Skill,...
View ArticleHow To Make And Manage The Configuration Data?
I have some data that should be used for initializing my web application: defaultModule = 2; defaultNumberTables= 4; currentNumberTables = 6; and so on I have other page called setting.php that allow...
View ArticleCjuidatepicker Date Format Problem
I am trying to format date correctly using CJuiDatePicker I wish for the date to be shown in uk format e.g. 31-07-2013 (dd-mm-yyyy) But I wish for the date to be posted into database using ISO 8601...
View ArticleIs There Any Very Simple Sample Of Ajax On Yii?
I try to follow the guide from yii wiki about ajax and javascript. Unfortunately, it is too complex to understand or able to run. Anyone has another sample that able to perform ajax + javascript on yii...
View ArticleYii And Oauth 2 Server
Hi there, has anyone played with Yii and OAuth 2 server yet ? I see there is a silex implementation here: https://github.com/bshaffer/oauth2-server-php , which can be used in Yii as well, anybody tried...
View ArticleModel -> Save Function Undefined?
I seem to be having an issue with my model->save() function being undefined. For logistics purposes this is what I am creating. I have an order form which displays a list of custom options &...
View ArticleMethods In Modules
Hi to Everyone which is the best place to create static (or not)v methods in a custom module ? How call this methods inside on module or from other controllers/modules? Thanks
View ArticleNice Url
Hi there! I wanna implement a new (article) system that is stored in database. Corresponding table name “page” has following fields: id, url, title, content, available. The url is something you wanna...
View ArticleSaimagedisplayer : Image Does Not Show
i use image-displayer extension. the image only show the title as picture. can anyone give me advice where i do wrong in my code _view.php <?php $this->widget('saimagedisplayer', array( 'image'...
View ArticleHow To Convert Date To Epoch?
Hi, I have a epoch 'expire' property/column in DB that I display in CGridView formatted as Date, but search wont work because the search refers to the epoch time. How could I use Search function with...
View ArticlePut Yii 1.1.x Development Branch On Hold.
Okay, so this might seem drastic, but i really think Yii 1.1.x branch development should be put on hold for now. All the core developers split their effort between Yii 1 and Yii 2 and that takes allot...
View ArticleView.php Value Of Related Table
Hello, I have a view that shows the values of a table, but I have a related table and one value should be taken from that related table. Currently the view shows fid_os of table server. But I need the...
View ArticleUser Logout
The function "logout" isn't working... yii::app()->user->logout(true) it's the login part: public function actionLogin() { if(!Yii::app()->user->isGuest) $this->redirect('index.html');...
View ArticlePhp Warning Session_Regenerate_Id(): Session Object Destruction Fail
Hello Sometime after logout and login I have this error QuotePHP warning session_regenerate_id() [<a href='function.session-regenerate-id'>function.session-regenerate-id</a>]: Session...
View ArticleYii Cgridview Selectionchanged
Hi I have a zii CGridView displaying dynamic rows from a database table. When the user selects a new row how do I update some Labels on the Page with fields from the row selected. I probably need to...
View Article