Yiiframework.co.il Code is now open sourced!

I see a lot of people are having problems with the sessions.

Maybe you should try this:

In the .htaccess file make sure to remove the following:




# No subdomain, redirect to subdomain

RewriteCond %{HTTP_HOST} ^yiiframework.co.il$ [NC]

RewriteRule ^(.*)$ http://he.yiiframework.co.il/$1 [R=301,L]


# WWW to subdomain

RewriteCond %{HTTP_HOST} ^www.yiiframework.co.il$ [NC]

RewriteRule ^(.*)$ http://he.yiiframework.co.il/$1 [R=301,L]



Obviously this will not work in your case.

Then in the protected/config/main.php file

You should see several occurrences of the following:




'domain' => '.' . $current_domain



Unless your testing this under a sub domain you should replace every occurrence of the above code to the following:




'domain' => $current_domain



By just removing the dot infront of the domain name the session should work. But still i am not sure if this will work under ‘localhost’ as the domain so you should try setting up a virtual host in any case.

Hope that helps.

Good application!

Is there any update?

Thanks for this Yii codes. It helped me a lot.

help me. i can’t login user admin .


INSERT INTO `members` (`username`, `email`, `password`, `joined`, `role`) VALUES ('admin', 'admin@admin.com', 'a95d69667de20f113fb11e1d6605ab1367c8eabd', 1272716496, 'admin');

i login admin@admin and password admin .

What for?

Log in with ‘admin’ - ‘admin’.

thank you so much for sharing:) I will for sure "borrow" some parts of it:D

Hmm, i’m having some issues… When clicking on a user profile or on a blogpost, I get this error: Error

Sorry, But the page you were looking for was not found.

I seem to get this error whit every page that uses the alias

Vince, you talked about "Dashboard" in your first post. Could you explain (just a few words) what a dashboard in your eyes is? And where can I find it in the demo?

Thx

Login - admin@admin.com pass:admin

Login - admin pass:admin

does not work!!!

CException

Sorry, You are not allowed to enter this section

Help me please…

id username seoname email password joined passwordreset data role ipaddress fbuid fbtoken fb_uid

		1	admin	admin	vadimg88@gmail.com	898ea48603ae634a5548c06cb2cae2a837edb641	1332104151	NULL	NULL	Admin	 	0	 	NULL


		2	admin	 	admin@admin.com	1b59f198918e701060615d9433028f620efadbad	1272716496	NULL	NULL	admin	 	0	 	NULL

admin/admin should work/ Try getting a fresh copy from code.google.com and insert the admin row again see if that works.

So where is the latest stable version at code.google.com or github?

CREATE TABLE IF NOT EXISTS forumtopics(

id INT( 10 ) NOT NULL AUTO_INCREMENT ,

title VARCHAR( 125 ) NOT NULL DEFAULT ‘’,

alias VARCHAR,

dateposted INT( 10 ) NOT NULL DEFAULT ‘0’,

authorid INT( 10 ) NOT NULL DEFAULT ‘0’,

languageCHAR( 3 ) NOT NULL DEFAULT ‘’,

views INT( 10 ) NOT NULL DEFAULT ‘0’,

replies INT( 10 ) NOT NULL DEFAULT ‘0’,

lastpostdate INT( 10 ) NOT NULL DEFAULT ‘0’,

lastpostauthorid INT( 10 ) NOT NULL DEFAULT ‘0’,

visible TINYINT( 1 ) NOT NULL DEFAULT ‘0’,

content TEXT NULL ,

PRIMARY KEY ( id ) ,

KEY title( title ) ,

KEY alias( alias ) ,

KEY language( language ) ,

KEY lastpostdate( lastpostdate ) ,

KEY dateposted( dateposted )

) ENGINE = INNODB

Ответ MySQL:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ’

dateposted int(10) NOT NULL default '0',


authorid int(10) NOT NULL default ' at line 5

Change the above

alias VARCHAR,

to

alias VARCHAR(125) NOT NULL default ‘’,

CREATE TABLE IF NOT EXISTS extensionscomments(

id INT( 10 ) NOT NULL AUTO_INCREMENT ,

postid INT( 10 ) NOT NULL DEFAULT ‘’,

authorid INT( 10 ) NOT NULL DEFAULT ‘0’,

postdate INT( 10 ) NOT NULL DEFAULT ‘0’,

visible TINYINT( 1 ) NOT NULL DEFAULT ‘0’,

COMMENT TEXT NULL ,

PRIMARY KEY ( id ) ,

KEY postid( postid ) ,

KEY authorid( authorid )

) ENGINE = INNODB;

Ответ MySQL:

#1067 - Invalid default value for ‘postid’

CREATE TABLE IF NOT EXISTS usercomments(

id INT( 10 ) NOT NULL AUTO_INCREMENT ,

userid INT( 10 ) NOT NULL DEFAULT ‘’,

authorid INT( 10 ) NOT NULL DEFAULT ‘0’,

postdate INT( 10 ) NOT NULL DEFAULT ‘0’,

visible TINYINT( 1 ) NOT NULL DEFAULT ‘0’,

COMMENT TEXT NULL ,

PRIMARY KEY ( id ) ,

KEY userid( userid ) ,

KEY authorid( authorid )

) ENGINE = INNODB;

Ответ MySQL:

#1067 - Invalid default value for ‘userid’




…

postid INT( 10 ) NOT NULL DEFAULT '0',

…

userid INT( 10 ) NOT NULL DEFAULT '0',



CException

Sorry, You are not allowed to enter this section.

Help please

ID username email password joined role

1 admin admin@admin.com a95d69667de20f113fb11e1d6605ab1367c8eabd 1272716496 admin

I suggest you read up some more about how Yii works in general… All of your errors were fairly easy to fix, would be nice if you did some effort yourself :confused:

But what exactly should I do? I have so far only been studying yii…