Questions tagged [yii1.x]

Old version of PHP framework Yii.

Yii Framework

Yii is a generic Web programming framework, meaning that it can be used for developing all kinds of Web applications using PHP. Because of its component-based architecture and sophisticated caching support, it is especially suitable for developing large-scale applications such as portals, forums, content management systems (CMS), e-commerce projects, and so on.

Yii 1 is the first version of the Yii framework. Yii 1.0 was released in December 2008 and it is no longer supported. Yii 1.1 was released in January 2010 and reached the end of life in November 2015. Since then it only receives security bugfixes and fixes that improve compatibility with new versions of PHP. In October 2014 the successor of Yii 1.1 was released: .

Official documentation can be found in the Definitive Guide to Yii 1.1. Further important resources:

270 questions
-1
votes
1 answer

Yii 1.1 - A non well formed numeric value encountered

I have an error "A non well formed numeric value encountered" in this code on my localhost: Yii::app()->cache->set($cache_key, $res, 60*60*24*3); It obviously points to "60*60*24*3". I know I can typecast it to integer and problem is solved, but…
Abay
  • 11
  • 3
-1
votes
1 answer

Yii 1 Yii::import doen'ts work but include do

I have change my provider and i have this error now Fatal error: Class 'GxController' not found in /home/clients/bbbf03544f22c763cd3acfefa31454be/web/protected/controllers/SiteController.php on line 6 i used to import like this…
user2869049
  • 129
  • 1
  • 9
-1
votes
1 answer

Dropdown with data from db with yii1.1

I want to create a dropdown list with data from a relational table. I have a tbl_stock, and on that table I have a relation to other table typeStock, and these connection mades the "type of stock" on the tbl_stock. So I want to create a dropdownList…
-1
votes
1 answer

Yii CGridView column names from two tables using ids

index.php widget('zii.widgets.grid.CGridView', array( 'dataProvider' => $dataProvider, 'columns' => array( array( 'header' => 'User Name', 'value' =>…
Mallesh
  • 1
  • 2
-1
votes
2 answers

Call to a member function saveAs() on string in Yii

When i am trying to upload imgage file to projectfolder\uploaded directory i got error Fatal error: Call to a member function saveAs() on string My controller code is as below public function actionStore() { $model = new Article; …
Nileshsinh Rathod
  • 948
  • 1
  • 17
  • 37
-1
votes
1 answer

CSqlDataProvider in Yii1.1 giving wrong data even if it has working query in it

The below code is for a search function, and the query I am getting in $sql is working if I try in MySQL or phpMyAdmin, but $dataProvider->getData(); is empty here, and that too in few cases because in some cases it gives result and in few cases, it…
-1
votes
1 answer

Google search doesn't show Arabic home page search results in multilanguage website built with Yii1

I have built a multilanguage website using Yii1 PHP framework, it supports both Arabic and English. Every URL in the site has a form: www.example.com/lang/(title_of_page OR something like slug for the articles/news) Except home page for English and…
-1
votes
1 answer

how to remove html tags in ImperaviRedactorWidget in yii framework

How to remove html tags in ImperaviRedactorWidget in yii framework so as to prevent script alert tags from displaying when the widget is used in yii? (striptags don't work for this widget)
Sam Prasad
  • 31
  • 3
-1
votes
1 answer

show dynamic result using javascript

In my _value form table 3 input as voltage ,type and length AS show image.r,x,b value came from type table as type select. Value Submit page not refresh on submit on submit temp result=r*length Again when enter value and submit then show second…
-1
votes
1 answer

Which one is a best file up-loader extension for Yii1.x framework?

I am using coco file up-loader extension in my Yii1.x framework but its not working properly. 1: Like if I want to delete a uploaded file name from status area its not working. 2: I am not able to make a limit to upload files if I want to edit a…
-1
votes
1 answer

How to concatenate two rows of a table in sql query?

in my employees table i have three fields first_name, last_name, middle_name. I used an csqldataprovider as follows. I want to display an employee's fullname. ie, first_name+last_name+middle_name. so i tried like this…
Bloodhound
  • 2,906
  • 11
  • 37
  • 71
-1
votes
1 answer

which extension should i use for rating system in yii?

I am currently implementing rating and reviewing system in my project which is made in yii, netbeans. I want to use yii extension, but I do not have any idea,about any rating extension. Please I need your suggestions. which extension should I choose…
Usman Iqbal
  • 2,379
  • 5
  • 26
  • 50
-2
votes
1 answer

yii1.1: can not update a record without uploading an umage

I been trying to deal with a website that was written by another programmer. the website is built with yii 1.1.4 it seems that i can not update a "store" record without uploading a new picture every time. here is the message i get when i try to…
codingnighter2000
  • 497
  • 1
  • 7
  • 24
-3
votes
1 answer

Converting a Date Number String to Word in PHP

I have a PHP script outputting dates like this: 03/01/2023 Now I wish to make them output the above value as Zero Three/Zero One/Two Zero Two Three I have tried to create functions that return string data of that date number but did not get the…
-3
votes
1 answer

date('c') issue in Php 5.6

I am using Yii 1.6 Purchased application, hosted in Php 5.6 Server. I have a issue in date format, software using to save date DB using code date('c'). But this code got date below format : date('c') = 2016-12-28T06:32:32+00:00 Because above…
Biju s
  • 420
  • 1
  • 7
  • 16
1 2 3
17
18