Yiiframework.co.il Code is now open sourced!

@sapporoguy

You need to use it like so:

<?php echo User::hashPassword(‘123456’, ‘admin@admin.com’); ?>

then what ever the above line outputs put in the password column for the admin user. Make sure that his email address (the admin user) is admin@admin.com

Then try to login.

@Chris i just browsed that site and everything seems to work for me, every page i tried from the navigation worked. What didn’t work exactly?

How did you login?

Lol, awesome!

Posted a few seconds late it seems:)

Hey sap, if your having issues with pages missing etc…try this (.htaccess):

Compress JS/CSS/XML files

<IfModule mod_deflate.c>

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript

</IfModule>

Disallow listing directories and files

Options -Indexes

Disallow access to svn folders

<FilesMatch "\.svn/.*">

order deny,allow

deny from all

</FilesMatch>

Disallow access to htaccess file

<Files .htaccess>

order deny,allow

deny from all

</Files>

Rewrite Engine

<IfModule mod_rewrite.c>

RewriteEngine On

No subdomain, redirect to subdomain

[color="#800080"]RewriteCond %{HTTP_HOST} ^YOUR DOMAIN GOES HERE$ [NC][/color]

[color="#9932CC"]RewriteRule ^(.*)$ YOUR DOMAIN GOES HERE$1 [R=301,L][/color]

WWW to subdomain

[color="#9932CC"]RewriteCond %{HTTP_HOST} ^YOUR DOMAIN GOES HERE$ [NC][/color]

[color="#9932CC"]RewriteRule ^(.*)$ http://YOUR DOMAIN GOES HERE/$1 [R=301,L][/color]

RewriteCond %{REQUEST_FILENAME} \.(js|ico|gif|jpg|png|css|pdf|doc)$ [OR]

RewriteCond %{REQUEST_FILENAME} favicon.ico$ [OR]

RewriteCond %{REQUEST_FILENAME} -s [OR]

RewriteCond %{REQUEST_FILENAME} -l [OR]

RewriteCond %{REQUEST_FILENAME} -d

Redirect all incoming urls to the application

RewriteRule ^.*$ - [NC,L]

RewriteRule ^.*$ index.php [NC,L]

</IfModule>

Changing the domain values fixed my issues :)

Sweet!

I wonder if your htaccess, the original And the one I posted make that a difference?

I’m not sure

@vince - is the forum functional or did I screw something up?

It worked for me when i tried it couple of hours ago.

and it works now too. i see: "There are not topics posted yet. Be the first to post."

Just uploaded it to github

Cool, thanks Vince.

EDIT:

My first time using GIT.

I forked, created a new issue, branched, pushed and then sent a pull request, however there are now 2 issues.

Is that how it’s meant to work?

That’s fine i just reviewed it and merged your pull request. Basically you create one issue for each pull request. but that’s not that big of a deal.

Thank you. Looking forward to research it.

I got the error with nginx.

Fatal error: Call to a member function createCommand() on a non-object in /home/rogerli/work/yiicoilcms/protected/components/CustomUrlManager.php on line 19

Could any one show me how to fix the subdomain issue?

Thanks,

Roger

The requested URL /yiiadmin/he/register was not found on this server.

:S

help

Hello Vince, I’m using a CMS tool and I’m really enjoying it. Congrats. Insert another language (Portuguese - BR) and most URLs are working perfectly, but some URLs are not adding the full path, for example:

http://site.local/documentation/guide/topic/basics.mvc

If I put:

http://site.local/pt_br/documentation/guide/topic/basics.mvc

functions normally.

I researched the code and really should be some adjustment in CustomUrlManager.php but could not change the path so that works.

Another doubt: the language of URLs can be deleted?

Again congratulations and I thank the attention.

i am getting error

PHP error

Declaration of Settings::model() should be compatible with CActiveRecord::model($className = ‘CActiveRec…’)

can anyone give clue what is wrong with it?

Fixed. See

Looks good, thank you for updates Vince, and good website to study.

after I use project file in github,I get these errors:

1-at first,in importing insert.sql I get this error:

#1452 - Cannot add or update a child row: a foreign key constraint fails (yiimysite4.authitemchild, CONSTRAINT authitemchild_ibfk_1 FOREIGN KEY (parent) REFERENCES authitem (name) ON DELETE CASCADE ON UPDATE CASCADE)

2-when I continue with this error in inserting,when i check http://localhost/yiiProject(mySite2)/

I get this error:

Fatal error: Class ‘CLocale’ not found in C:\wamp\www\yiiProject(mySite2)\protected\models\Newsletter.php on line 61

can you help me?

thanks

thanks…

thank you very much

this is what I am searching for long time…