Yiiframework.co.il Code is now open sourced!
#81
Posted 02 April 2012 - 05:28 PM
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?
#84
Posted 02 April 2012 - 05:48 PM
# 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
RewriteCond %{HTTP_HOST} ^YOUR DOMAIN GOES HERE$ [NC]
RewriteRule ^(.*)$ YOUR DOMAIN GOES HERE$1 [R=301,L]
# WWW to subdomain
RewriteCond %{HTTP_HOST} ^YOUR DOMAIN GOES HERE$ [NC]
RewriteRule ^(.*)$ http://YOUR DOMAIN GOES HERE/$1 [R=301,L]
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

Yii based cms with mybb forum software integrated!
#85
Posted 02 April 2012 - 05:55 PM
I wonder if your htaccess, the original And the one I posted make that a difference?
#86
Posted 02 April 2012 - 06:04 PM
SapporoGuy, on 02 April 2012 - 05:55 PM, said:
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?
Yii based cms with mybb forum software integrated!
#88
Posted 02 April 2012 - 06:58 PM
#90
Posted 04 April 2012 - 05:07 PM
#91
Posted 04 April 2012 - 07:01 PM
#93
Posted 19 April 2012 - 10:03 AM
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
#94
Posted 01 May 2012 - 02:47 AM
:S
help
#95
Posted 15 October 2012 - 07:18 AM
Vince., on 02 April 2012 - 12:23 PM, said:
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/do...opic/basics.mvc
If I put:
http://site.local/pt...opic/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.
#96
Posted 23 December 2012 - 09:18 AM
PHP error
Declaration of Settings::model() should be compatible with CActiveRecord::model($className = 'CActiveRec...')
can anyone give clue what is wrong with it?
#98
Posted 03 January 2013 - 09:39 PM
#99
Posted 17 February 2013 - 01:32 PM
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
#100
Posted 20 March 2013 - 07:56 AM
outrage, on 29 March 2012 - 01:11 PM, said:
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..
Gaurish