Yii is a high-performance, component-based, open source PHP framework best for developing Web 2.0 applications.
0
votes
0answers
7 views
Yii ActiveRecord using scope with another scope
i want to use some scope if yii active record model in same model's another scope
see the following code, you will understand what i want to say?
public function scopes() {
return array(
...
1
vote
0answers
6 views
Yii / gii code generator customization : how to reuse the default templates?
I am starting to play with the code generators provided dy the Gii module.
I want to customize some of the CRUD generated files. The CRUD code generator stands in framework/gii/generators/crud and ...
0
votes
1answer
21 views
How redirect my own page?
I need to redirect to another my own page after saving the data.To do that i duplicate create.php and _from.php (create_1.php and _from_1.php).but when i redirect to it yii give error 404
...
0
votes
0answers
13 views
yii pdfable data getting cut off at bottom
I am creaing a pdf using pdfable in Yii. I have managed to create the pdf document however on each page there is data being cut off if I set a margin for the top and bottom of each page. In my ...
0
votes
1answer
20 views
Yii url routing not working on Mac OS X
I'm a newbie in php and Yii and this may come across as a very silly question. I am using the Yii framework on Mac OS X to develop a web application. The codebase that I'm working on, was setup on a ...
0
votes
0answers
14 views
Yii + Google Visualization
I hacked this Yii extension to make it work for AreaCharts, but am having trouble passing some of the options to it....
The chart displays fine, but when trying to add any hAxis options nothing seems ...
0
votes
2answers
29 views
How to redirect user after login YII?
I have got this action for login:
// if it is ajax validation request
if(isset($_REQUEST['ajax']) && isset($_REQUEST['users']))
{
//echo CActiveForm::validate($model);
...
0
votes
2answers
23 views
Yii Framework : Register CSS After Publishing Asset Folder
Kind of new to Yii. I'm trying to publish all files under the asset folder in a view.
Structure is like this :
/views/test
/views/test/assets
/views/test/assets/css
/views/test/assets/images
...
0
votes
1answer
17 views
Update Yii grid view on ajax call
Trying to update the contents of my grid view after an ajax call to an action that triggers some DB changes:
$.ajax({
'url': '" . $this->createUrl('//myController/myAction') . "',
'type': ...
0
votes
1answer
13 views
facebook oauth authentication with PHP + Yii doesn't return “code” parameter in response
I am using facebook oauth authentication with PHP + Yii.It was working perfectly till last month.But suddenly it doesn't return “code” parameter in response when we do callback request.What could be ...
1
vote
1answer
21 views
How to embed progress bar In Cgridview Column in Yii
as the title says, I'm embedding a CJuiProgressBar inside a CGridView column using the following syntax:
array (
'name'=>'cantidad_mails',
...
0
votes
1answer
44 views
How to get multiple table values to gridview?
I have two tables and i need to filter and put those two table data to gridview.i use joined two table like this
$student=new Student;
$marks=new AssimentMarks;
...
0
votes
1answer
17 views
yii pdfable outputting unwanted text
I have managed to create pdf file using pdfable in Yii. The problem with the pdf document is it is including the main menu as list items which it should not. Where is this coming from and how can I ...
0
votes
1answer
27 views
yii how to find a sum from a db table?
Hello everyone and thanks for reading
I have two tables ;
1st table is the main table and its where i have the costs ,
the 2nd table is a a table where i have the users associated to those costs . ...
0
votes
1answer
27 views
Store Statistical Data to Mysql with CronJob or Run a function to pull it every time?
I made an eCommerce application in PHP, I need to gather statistical data such as "New Customer, New Orders, Open Orders, Open Issues, etc.." and display it in the admin dashboard which we visit a lot ...