Open Source Yii CMS - GXC CMS
#81
Posted 16 March 2012 - 02:43 AM
which SAMPLE CODE ..??
where I get a SAMPLE CODE?
sory, Iam newbie in Yii & GXC
#82
Posted 16 March 2012 - 05:25 AM
Jenengku dayat, on 16 March 2012 - 02:43 AM, said:
which SAMPLE CODE ..??
where I get a SAMPLE CODE?
sory, Iam newbie in Yii & GXC
Look Here
https://github.com/n...lock_output.php
Wiwo inc.
| Mobile: 919995504508
#83
Posted 16 March 2012 - 05:26 AM
Wiwo inc.
| Mobile: 919995504508
#84
Posted 16 March 2012 - 06:43 AM
Wiwo inc.
| Mobile: 919995504508
#85
Posted 17 March 2012 - 08:12 AM
when I finished successfully from installing gxc cms and I went to the backend/frontend it got the following error:
Strict Standards: Declaration of GxcUser::login() should be compatible with that of CWebUser::login() in C:\Program Files\EasyPHP\www\framework\gxc\core\cms1.0\components\user\GxcUser.php on line 167Error 500Declaration of GxcUser::login() should be compatible with that of CWebUser::login()
please help me.
thank you,
#88
Posted 27 March 2012 - 01:18 AM
function replaceTags($startPoint, $endPoint, $newText, $source) {
return preg_replace('#('.preg_quote($startPoint).')(.*)('.preg_quote($endPoint).')#si', '$1'.$newText.'$3', $source);
}
return preg_replace('#('.preg_quote($startPoint).')(.*)('.preg_quote($endPoint).')#si', '${1}'.$newText.'${3}', $source);
#90
Posted 02 April 2012 - 04:19 PM
I have:
gxc
-- core
----assets
----components
----extensions
----gii
----models
----modules
----widgets
----yii
--project
----avatar
----backend
----common
----frontend
----README
----resources
----thumbs
----tmp
Is this right?
When I try to install or even visit backend, I get:
http://gxc.local/project/backend/
backend index:
$yii=CORE_FOLDER.'/yii/framework/yii.php';
include(BeController.php): failed to open stream: No such file or directory in /Users/gxc/Sites/gxc/core/yii/framework/YiiBase.php on line 418
I know I'm doing something wrong but just not sure where to start looking since the instructions uses sample, demo or project
#91
Posted 03 April 2012 - 10:47 AM
I was trying to find out how to borrow the CMS ideas of Wordpress to make a nice CMS based on Yii. What you are doing is simliar to what i was seeking...
#92
Posted 06 April 2012 - 04:20 AM
primary(unique) key is (object_id,term_id) in table gxc_object_term;
(object_id,1) perhaps exist before updateall
protected function beforeDelete(){
// If this is the category : Uncategory - we won't delete it
if($this->term_id==1){
Yii::app()->controller->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
return false;
} else {
// If this category is not empty, first move all of its content to Uncategory
ObjectTerm::model()->updateAll(array('term_id'=>1),'term_id = :current_id',array(':current_id'=>$this->term_id));
return true;
}
my english is poor, so post two images
#96
Posted 06 April 2012 - 09:14 AM
jacmoe, on 09 February 2012 - 04:46 PM, said:
Nice, I was wondering how you did that in bugitor and the rest of your projects
#97
Posted 09 April 2012 - 01:37 AM
i think you put table struct in cache. how did you make it? where is the code?
thank you
#98
Posted 09 April 2012 - 08:10 AM
SapporoGuy, on 06 April 2012 - 05:20 AM, said:
( YOU NEED TO BE FAMILIAR WITH YII FRAMEWORK BEFORE WORKING WITH THIS CMS)
So at first, you have to clone the two source :
CORE : GXC-CMS (https://github.com/nganhtuan63/GXC-CMS) PROJECT NAME : Sample-Project ( https://github.com/n.../Sample-Project ) For example, after cloning in our www directory, we have this structure:
|-gxc
|————core
|-project
|————backend
|————common
|————frontend
From here, you need to configure some PATH to CORE Folder, and basic INFO LIKE SITE_NAME, SUPPORT_EMAIL,...! With this structure, you can create multiple projects that use the same CORE folder.
1/ In file Common/config.php
Browse to line 90 and change Database Information
For the first installation, make sure we don’t use session handle by Db, so comment these lines that use session db components on line 139
2/ In file Common/define.php and Common/define-test.php (*)
Edit basic Information that your site will use to run in official or developing mode
3/ In file frontend/index.php, backend/index.php ()**
Check to make sure that the PATH to CORE FOLDER is CORRECT on line 12 (*)(**) – In your local machine, when developing, you should create an index-test.php file in backend and frontend folder. In that file point to (FRONT|BACK)END/protected/config/test.php and use COMMON/define-test.php. You can reference these files examples at common/local/frontend-index-test.php and common/local/frontend-index-test.php.
When using index-test.php, please make sure to change .htaccess in FRONTEND|BACKEND to use index-test.php RewriteRule ^.$ index.php [L] ==> RewriteRule ^.$ index-tesxt.php [L] 4/ After edit all information, run **
Remove .locked file in Common folder
http://localhost/sam...d/beinstall/run to install Database script to start!
That’s all for setting up the first application. Hope it run well. Feel free to contact or add issue tickets to this project.
Have a nice day and happy coding you guys!
Yii based cms with mybb forum software integrated!
#99
Posted 11 April 2012 - 04:42 AM
This post has been edited by ekerazha: 11 April 2012 - 04:49 AM
#100
Posted 12 April 2012 - 06:22 AM
Tried that but cms1.0 folder is coming up from
Somewhere and not exactly sure ... Htaccess is suspect at the moment.

Help















