Yii skeleton app

Quote

Quote

Does anyone know where I can download it ? I can't find it anywhere ..

Have a look at http://code.google.c…ource/checkout.

You can download the source via SVN there.

Greets

Thomas

Ecellent !

Got it now.

Update: added commenting system

Update:  Updated demo (the demo was using pretty old code - many improvements to test)

Great job. So you have not worked on the access rules stuff? I remember you plan to change the access rule.

Hi, I'm having issues with the email login recovery. I think protected/modules/email/models/Failedemail.php should be FailedEmail.php - is that correct?

Am I correct in that all I should have to do to get the emails to send (rather than operate in debug mode) is change protected/modules/email/components/Email.php line public $delivery='php';

i visited the download link but no downloads were found of the application

Quote

i visited the download link but no downloads were found of the application


svn checkout http://yii-skeleton-app.googlecode.com/svn/trunk/ yii-skeleton-app-read-only  


I think protected/modules/email/components/views/debug.php needs to be renamed to Debug.php

@amorangi

To put email into 'php' mode (as apposed to debug mode) you should change the value of the 'delivery' attribute within the module configuration.  Go to protected/config/main.php and you will see it

I think protected/modules/email/models/Failedemail.php should be FailedEmail.php - is that correct?

Yes, it should be, as it already is…? (http://code.google.com/p/yii-skeleton-app/source/browse/#svn/trunk/protected/modules/email)

If you are upgrading the skeleton application from an old version, make sure that the /extensions/email is deleted

@moho

What changes do you recommend I make to the access rules?

No, it’s still Failedemail.php instead of FailedEmail.php @ http://code.google.c…es/email/models

I didn’t see that other change in config/main.php for the email delivery - I’d changed protected/modules/email/components/Email.php, and after a really long wait (I think do to my server) the emails eventually were delivered. I take it the main.php is the correct place to change it though.

Turns out I was doing it the way you said after all

Ah, your right.  These mistakes only show up on linux so sometimes it takes awhile for me to notice… Here's the fix:

http://code.google.c…ce/detail?r=104

EDIT:

Also updated the wiki page:

http://code.google.c…ki/email_module

Should there be a table for comments in the sql provided?

I'm also having better luck with the old version of AutoTimestampBehaviour.php - like the version in the wiki. Why did you put the extra NULL tests in? Especially for modified, this should be updated whether it's null or not. Also i think the if else statements aren't the correct logic.

I've modified the AutoTimestampBehaviour for my own purposes (I like to have a created_by and modified_by in my tables as well) and it's working fine based on the older version.

The null check is for an attribute within the behavior, not the database value.  It makes something like this possible:

	public function behaviors(){


		return array(


			'AutoTimestampbehavior' => array(


				'class' => 'AutoTimestampbehavior',


				'created'=>'sent',


				'modified'=>null, //keeps value from being used (in this model I do not need/want a modified field)


			),


		);


	}	

Can you check to see if it works for modified? For myself I use this field, and the current state doesn't work.

You are right, it was broken.  Some reason php didn't like the way I nested the if statements… this works now:

http://code.google.c…ampbehavior.php

I am sorry.I have a very poor english.but I checkout from svn,right now. and run it.and i canot post Archive.then it display:

Description

The table "comment" for active record class "Comment" cannot be found in the database.

the 'Register' module display this:

CDbException

Description

CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 1364 Field 'about' doesn't have a default value

Oops, sorry! I forgot to include the comment table in the sql file.

http://code.google.c…ce/detail?r=110

Tell me if you still get the second error after this

.htaccess issue -> [Found Fix - See Below]

Here was the issue - I’m posting for anyone else who may come across the problem:

I was getting an interesting problem using the skeleton application. The whole thing worked fine except aside from the home link, no other link would work, it ends up page not found.

If I went in and turned the script name paths back on then the site worked fine. This implies something was up with the .htaccess file. I checked it out and it’s exactly identical to what it’s supposed to be, so there was no issue in that regard.

So then it clicked in, this URL re-write is for apache, I’m using a different web server. For the sake of posting information to help future folks with issues:

If you use Abyss Web Server as your web server, there’s a nice mod re-write application that one of the members made to help you convert through .htaccess files with url re-writing from apache to abyss.

In order to understand what to do once the mod shows you what configurations to change, go here: http://www.aprelium…g-tutorial.html

Hope that helps anyone who runs into the issue. The other benefit is, the .htaccess files don’t get tampered with, it’s strictly done in the web servers configurations. This means you can use it for your local testing and not have to worry about altering the .htaccess file when put out for production.

Jonah, how are you doing? Just got some time from two months of heavy work. And can play with Yii more.

I just re-visited the Google project page. I guess you want to update the link in the summary page that links to this thread, to reflect the new link after the implementation of the IP.Board.

Again,great job. I am pretty sure many people have been saying thank-for deep in their heart.

@whoopass thanks for sharing, might be helpful to some people

@moho Thanks! and thanks for pointing out the link was dead.

I checked in a few updates today! See the Google page: http://code.google.com/p/yii-skeleton-app/