Vince
(Vadimg88)
April 2, 2012, 10:28pm
81
@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?
Lol, awesome!
Posted a few seconds late it seems:)
vapor
(Chrisseman)
April 2, 2012, 10:48pm
84
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?
vapor
(Chrisseman)
April 2, 2012, 11:04pm
86
I’m not sure
@vince - is the forum functional or did I screw something up?
Vince
(Vadimg88)
April 2, 2012, 11:57pm
87
It worked for me when i tried it couple of hours ago.
Vince
(Vadimg88)
April 2, 2012, 11:58pm
88
and it works now too. i see: "There are not topics posted yet. Be the first to post."
Vince
(Vadimg88)
April 4, 2012, 12:00am
89
Just uploaded it to github
outrage
(Site Sense Web)
April 4, 2012, 10:07pm
90
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?
Vince
(Vadimg88)
April 5, 2012, 12:01am
91
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.
rogerlzp
(Rogerlzp)
April 19, 2012, 3:03pm
93
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
aaalucard
(Temerario86)
May 1, 2012, 7:47am
94
The requested URL /yiiadmin/he/register was not found on this server.
:S
help
hav_jf
(Huascarav)
October 15, 2012, 12:18pm
95
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?
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
outrage:
Thanks for your post, I was also having problems with custom pages.
I made a small change to your solution though to allow urls with dashes like the ‘about-us’ page.
Use this line instead:
$urlrules = array_merge( $urlrules, array( "<alias:[0-9a-zA-Z_\-]+>/*"=>'site/custompages/index') );
Note:
Anyone still struggling with the custom pages, please ensure that you edit one of the pages and then submit it (you don’t need to make a change).
This will delete the existing url cache and your pages should be viewable.
thanks…
thank you very much
this is what I am searching for long time…